|
20 | 20 | env: |
21 | 21 | GRADLE_OPTS: >- |
22 | 22 | -Dorg.gradle.jvmargs=-Xmx6g --XX:MaxMetaspaceSize=1g -Dfile.encoding=UTF-8 |
23 | | - _JAVA_OPTIONS: "-Xmx2g" |
| 23 | + JAVA_TOOL_OPTIONS: "-Xmx2g" |
24 | 24 |
|
25 | 25 | steps: |
26 | 26 | - uses: actions/checkout@v4 |
@@ -97,27 +97,23 @@ jobs: |
97 | 97 | -no-snapshot -no-snapshot-save -wipe-data |
98 | 98 | disable-animations: true |
99 | 99 | script: | |
100 | | - adb kill-server || true |
| 100 | + cd e2e/apps/react-native-oidc |
| 101 | +
|
101 | 102 | adb start-server || true |
102 | | - adb wait-for-device || true |
103 | | - adb devices |
| 103 | + adb wait-for-device |
| 104 | +
|
| 105 | + for i in ${seq 1 150}; do |
| 106 | + BOOT="$(adb shell getprop sys.boot_completed 2>dev/null | tr -d '\r' || true)" |
104 | 107 |
|
105 | | - for i in {1..150}; do |
106 | | - state="$(adb get-state 2>dev/null || true)" |
107 | | - boot="$(adb shell getprop sys.boot_completed 2>dev/null | tr -d '\r' || true)" |
108 | | - echo "adb_state=${state}, boot_completed=${boot}" |
109 | | - if [ "${state}" = "device" ] && [ "${boot}" = "1" ]; then |
110 | | - echo "Emulator is ready" |
| 108 | + if [ "$BOOT" = "1" ]; then |
| 109 | + echo "Emulator booted" |
111 | 110 | break |
112 | 111 | fi |
113 | | - if [ $state != "device" ] && ((i % 20 == 0)); then |
114 | | - adb kill-server || true |
115 | | - adb start-server || true |
116 | | - fi |
117 | 112 | sleep 2 |
118 | 113 | done |
119 | 114 |
|
120 | | - adb shell getprop sys.boot_completed || true |
| 115 | + adb devices |
| 116 | +
|
121 | 117 | adb shell settings put global window_animation_scale 0 || true |
122 | 118 | adb shell settings put global transition_animation_scale 0 || true |
123 | 119 | adb shell settings put global animator_duration_scale 0 || true |
|
0 commit comments