@fluentui-react-native/tester 0.167.32 → 0.168.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/CHANGELOG.json +16 -1
  2. package/CHANGELOG.md +10 -2
  3. package/android/build.gradle +21 -5
  4. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  5. package/android/gradle/wrapper/gradle-wrapper.properties +3 -1
  6. package/android/gradle.properties +25 -10
  7. package/android/gradlew +28 -13
  8. package/android/gradlew.bat +19 -16
  9. package/android/settings.gradle +11 -2
  10. package/babel.config.js +1 -1
  11. package/index.js +5 -1
  12. package/ios/Podfile.lock +922 -254
  13. package/lib/E2E/src/FocusZone/pages/FocusZonePageObject.d.ts +8 -9
  14. package/lib/E2E/src/FocusZone/pages/FocusZonePageObject.d.ts.map +1 -1
  15. package/lib/E2E/src/common/BasePage.d.ts +5 -6
  16. package/lib/E2E/src/common/BasePage.d.ts.map +1 -1
  17. package/lib/E2E/src/common/BasePage.js +85 -23
  18. package/lib/E2E/src/common/BasePage.js.map +1 -1
  19. package/lib/fluent-tester/src/TestComponents/Button/E2EButtonTest.js.map +1 -1
  20. package/lib-commonjs/E2E/src/FocusZone/pages/FocusZonePageObject.d.ts +8 -9
  21. package/lib-commonjs/E2E/src/FocusZone/pages/FocusZonePageObject.d.ts.map +1 -1
  22. package/lib-commonjs/E2E/src/common/BasePage.d.ts +5 -6
  23. package/lib-commonjs/E2E/src/common/BasePage.d.ts.map +1 -1
  24. package/lib-commonjs/E2E/src/common/BasePage.js +85 -23
  25. package/lib-commonjs/E2E/src/common/BasePage.js.map +1 -1
  26. package/lib-commonjs/fluent-tester/src/TestComponents/Button/E2EButtonTest.js.map +1 -1
  27. package/macos/Podfile.lock +915 -253
  28. package/package.json +59 -58
  29. package/src/TestComponents/Button/E2EButtonTest.tsx +1 -1
  30. package/tsconfig.json +1 -1
package/CHANGELOG.json CHANGED
@@ -2,7 +2,22 @@
2
2
  "name": "@fluentui-react-native/tester",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 29 Mar 2024 18:05:03 GMT",
5
+ "date": "Thu, 11 Apr 2024 18:02:35 GMT",
6
+ "version": "0.168.0",
7
+ "tag": "@fluentui-react-native/tester_v0.168.0",
8
+ "comments": {
9
+ "minor": [
10
+ {
11
+ "author": "30809111+acoates-ms@users.noreply.github.com",
12
+ "package": "@fluentui-react-native/tester",
13
+ "commit": "6164473627c321b03d301376c48227f4abd8e947",
14
+ "comment": "Update to RN 0.73"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Fri, 29 Mar 2024 18:07:00 GMT",
6
21
  "version": "0.167.32",
7
22
  "tag": "@fluentui-react-native/tester_v0.167.32",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,20 @@
1
1
  # Change Log - @fluentui-react-native/tester
2
2
 
3
- This log was last generated on Fri, 29 Mar 2024 18:05:03 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 11 Apr 2024 18:02:35 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.168.0
8
+
9
+ Thu, 11 Apr 2024 18:02:35 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - Update to RN 0.73 (30809111+acoates-ms@users.noreply.github.com)
14
+
7
15
  ## 0.167.32
8
16
 
9
- Fri, 29 Mar 2024 18:05:03 GMT
17
+ Fri, 29 Mar 2024 18:07:00 GMT
10
18
 
11
19
  ### Patches
12
20
 
@@ -1,7 +1,14 @@
1
1
  buildscript {
2
- def androidTestAppDir = "../../../node_modules/react-native-test-app/android"
3
- apply(from: "${androidTestAppDir}/dependencies.gradle")
4
- apply(from: "${androidTestAppDir}/test-app-util.gradle")
2
+ apply(from: {
3
+ def searchDir = rootDir.toPath()
4
+ do {
5
+ def p = searchDir.resolve("node_modules/react-native-test-app/android/dependencies.gradle")
6
+ if (p.toFile().exists()) {
7
+ return p.toRealPath().toString()
8
+ }
9
+ } while (searchDir = searchDir.getParent())
10
+ throw new GradleException("Could not find `react-native-test-app`");
11
+ }())
5
12
 
6
13
  repositories {
7
14
  mavenCentral()
@@ -10,7 +17,7 @@ buildscript {
10
17
 
11
18
  dependencies {
12
19
  getReactNativeDependencies().each { dependency ->
13
- classpath(dependency)
20
+ classpath(dependency)
14
21
  }
15
22
  }
16
23
  }
@@ -19,7 +26,16 @@ allprojects {
19
26
  repositories {
20
27
  maven {
21
28
  // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
22
- url("${rootDir}/../../../node_modules/react-native/android")
29
+ url({
30
+ def searchDir = rootDir.toPath()
31
+ do {
32
+ def p = searchDir.resolve("node_modules/react-native/android")
33
+ if (p.toFile().exists()) {
34
+ return p.toRealPath().toString()
35
+ }
36
+ } while (searchDir = searchDir.getParent())
37
+ throw new GradleException("Could not find `react-native`");
38
+ }())
23
39
  }
24
40
  mavenCentral()
25
41
  google()
@@ -1,5 +1,7 @@
1
1
  distributionBase=GRADLE_USER_HOME
2
2
  distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
4
+ networkTimeout=10000
5
+ validateDistributionUrl=true
4
6
  zipStoreBase=GRADLE_USER_HOME
5
7
  zipStorePath=wrapper/dists
@@ -26,13 +26,28 @@ org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryEr
26
26
  android.useAndroidX=true
27
27
  # Automatically convert third-party libraries to use AndroidX
28
28
  android.enableJetifier=true
29
-
30
- # Version of Flipper to use with React Native. Default value is whatever React
31
- # Native defaults to. To disable Flipper, set it to `false`.
32
- #FLIPPER_VERSION=0.125.0
33
-
34
- # Enable Fabric at runtime.
35
- #USE_FABRIC=1
36
-
37
- # Uncomment the line below if building react-native from source
38
- #ANDROID_NDK_VERSION=21.4.7075529
29
+ # Jetifier randomly fails on these libraries
30
+ android.jetifier.ignorelist=hermes-android
31
+
32
+ # Use this property to specify which architecture you want to build.
33
+ # You can also override it from the CLI using
34
+ # ./gradlew <task> -PreactNativeArchitectures=x86_64
35
+ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
36
+
37
+ # Use this property to enable support to the new architecture.
38
+ # This will allow you to use TurboModules and the Fabric render in
39
+ # your application. You should enable this flag either if you want
40
+ # to write custom TurboModules/Fabric components OR use libraries that
41
+ # are providing them.
42
+ # Note that this is incompatible with web debugging.
43
+ #newArchEnabled=true
44
+ #bridgelessEnabled=true
45
+
46
+ # Uncomment the line below to build React Native from source.
47
+ #react.buildFromSource=true
48
+
49
+ # Version of Android NDK to build against.
50
+ #ANDROID_NDK_VERSION=26.1.10909125
51
+
52
+ # Version of Kotlin to build against.
53
+ #KOTLIN_VERSION=1.8.22
package/android/gradlew CHANGED
@@ -55,7 +55,7 @@
55
55
  # Darwin, MinGW, and NonStop.
56
56
  #
57
57
  # (3) This script is generated from the Groovy template
58
- # https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58
+ # https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59
59
  # within the Gradle project.
60
60
  #
61
61
  # You can find Gradle at https://github.com/gradle/gradle/.
@@ -80,13 +80,11 @@ do
80
80
  esac
81
81
  done
82
82
 
83
- APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
84
-
85
- APP_NAME="Gradle"
83
+ # This is normally unused
84
+ # shellcheck disable=SC2034
86
85
  APP_BASE_NAME=${0##*/}
87
-
88
- # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89
- DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
86
+ # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87
+ APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
90
88
 
91
89
  # Use the maximum available, or set MAX_FD != -1 to use that value.
92
90
  MAX_FD=maximum
@@ -133,22 +131,29 @@ location of your Java installation."
133
131
  fi
134
132
  else
135
133
  JAVACMD=java
136
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
134
+ if ! command -v java >/dev/null 2>&1
135
+ then
136
+ die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
137
137
 
138
138
  Please set the JAVA_HOME variable in your environment to match the
139
139
  location of your Java installation."
140
+ fi
140
141
  fi
141
142
 
142
143
  # Increase the maximum file descriptors if we can.
143
144
  if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144
145
  case $MAX_FD in #(
145
146
  max*)
147
+ # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
148
+ # shellcheck disable=SC2039,SC3045
146
149
  MAX_FD=$( ulimit -H -n ) ||
147
150
  warn "Could not query maximum file descriptor limit"
148
151
  esac
149
152
  case $MAX_FD in #(
150
153
  '' | soft) :;; #(
151
154
  *)
155
+ # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
156
+ # shellcheck disable=SC2039,SC3045
152
157
  ulimit -n "$MAX_FD" ||
153
158
  warn "Could not set maximum file descriptor limit to $MAX_FD"
154
159
  esac
@@ -193,11 +198,15 @@ if "$cygwin" || "$msys" ; then
193
198
  done
194
199
  fi
195
200
 
196
- # Collect all arguments for the java command;
197
- # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
198
- # shell script including quotes and variable substitutions, so put them in
199
- # double quotes to make sure that they get re-expanded; and
200
- # * put everything else in single quotes, so that it's not re-expanded.
201
+
202
+ # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
203
+ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
204
+
205
+ # Collect all arguments for the java command:
206
+ # * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
207
+ # and any embedded shellness will be escaped.
208
+ # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
209
+ # treated as '${Hostname}' itself on the command line.
201
210
 
202
211
  set -- \
203
212
  "-Dorg.gradle.appname=$APP_BASE_NAME" \
@@ -205,6 +214,12 @@ set -- \
205
214
  org.gradle.wrapper.GradleWrapperMain \
206
215
  "$@"
207
216
 
217
+ # Stop when "xargs" is not available.
218
+ if ! command -v xargs >/dev/null 2>&1
219
+ then
220
+ die "xargs is not available"
221
+ fi
222
+
208
223
  # Use "xargs" to parse quoted args.
209
224
  #
210
225
  # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
@@ -14,7 +14,7 @@
14
14
  @rem limitations under the License.
15
15
  @rem
16
16
 
17
- @if "%DEBUG%" == "" @echo off
17
+ @if "%DEBUG%"=="" @echo off
18
18
  @rem ##########################################################################
19
19
  @rem
20
20
  @rem Gradle startup script for Windows
@@ -25,7 +25,8 @@
25
25
  if "%OS%"=="Windows_NT" setlocal
26
26
 
27
27
  set DIRNAME=%~dp0
28
- if "%DIRNAME%" == "" set DIRNAME=.
28
+ if "%DIRNAME%"=="" set DIRNAME=.
29
+ @rem This is normally unused
29
30
  set APP_BASE_NAME=%~n0
30
31
  set APP_HOME=%DIRNAME%
31
32
 
@@ -40,13 +41,13 @@ if defined JAVA_HOME goto findJavaFromJavaHome
40
41
 
41
42
  set JAVA_EXE=java.exe
42
43
  %JAVA_EXE% -version >NUL 2>&1
43
- if "%ERRORLEVEL%" == "0" goto execute
44
+ if %ERRORLEVEL% equ 0 goto execute
44
45
 
45
- echo.
46
- echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47
- echo.
48
- echo Please set the JAVA_HOME variable in your environment to match the
49
- echo location of your Java installation.
46
+ echo. 1>&2
47
+ echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
48
+ echo. 1>&2
49
+ echo Please set the JAVA_HOME variable in your environment to match the 1>&2
50
+ echo location of your Java installation. 1>&2
50
51
 
51
52
  goto fail
52
53
 
@@ -56,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56
57
 
57
58
  if exist "%JAVA_EXE%" goto execute
58
59
 
59
- echo.
60
- echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61
- echo.
62
- echo Please set the JAVA_HOME variable in your environment to match the
63
- echo location of your Java installation.
60
+ echo. 1>&2
61
+ echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
62
+ echo. 1>&2
63
+ echo Please set the JAVA_HOME variable in your environment to match the 1>&2
64
+ echo location of your Java installation. 1>&2
64
65
 
65
66
  goto fail
66
67
 
@@ -75,13 +76,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
75
76
 
76
77
  :end
77
78
  @rem End local scope for the variables with windows NT shell
78
- if "%ERRORLEVEL%"=="0" goto mainEnd
79
+ if %ERRORLEVEL% equ 0 goto mainEnd
79
80
 
80
81
  :fail
81
82
  rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82
83
  rem the _cmd.exe /c_ return code!
83
- if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84
- exit /b 1
84
+ set EXIT_CODE=%ERRORLEVEL%
85
+ if %EXIT_CODE% equ 0 set EXIT_CODE=1
86
+ if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87
+ exit /b %EXIT_CODE%
85
88
 
86
89
  :mainEnd
87
90
  if "%OS%"=="Windows_NT" endlocal
@@ -1,12 +1,21 @@
1
1
  pluginManagement {
2
2
  repositories {
3
3
  gradlePluginPortal()
4
- mavenLocal()
4
+ mavenCentral()
5
5
  google()
6
6
  }
7
7
  }
8
8
 
9
9
  rootProject.name = "FluentTester"
10
10
 
11
- apply(from: "../../../node_modules/react-native-test-app/test-app.gradle")
11
+ apply(from: {
12
+ def searchDir = rootDir.toPath()
13
+ do {
14
+ def p = searchDir.resolve("node_modules/react-native-test-app/test-app.gradle")
15
+ if (p.toFile().exists()) {
16
+ return p.toRealPath().toString()
17
+ }
18
+ } while (searchDir = searchDir.getParent())
19
+ throw new GradleException("Could not find `react-native-test-app`");
20
+ }())
12
21
  applyTestAppSettings(settings)
package/babel.config.js CHANGED
@@ -1,3 +1,3 @@
1
1
  module.exports = {
2
- presets: [['module:metro-react-native-babel-preset', { runtime: 'classic' }]],
2
+ presets: [['module:@react-native/babel-preset', { runtime: 'classic' }]],
3
3
  };
package/index.js CHANGED
@@ -1,9 +1,13 @@
1
1
  'use strict';
2
2
 
3
- import { AppRegistry } from 'react-native';
3
+ import { AppRegistry, LogBox } from 'react-native';
4
4
 
5
5
  import { FluentTesterApp } from './src/FluentTesterApp';
6
6
 
7
+ // When selecting a test page, the test page button might be under the yellowbox,
8
+ //so we have to ensure that no yellowboxes are shown on boot that could affect test selection
9
+ LogBox.ignoreLogs([/.*deprecated.*/, /.*Platform is not supported.*/])
10
+
7
11
  AppRegistry.registerComponent('FluentTester', () => FluentTesterApp);
8
12
 
9
13
  export default FluentTesterApp;