Skip to content

Commit 944b773

Browse files
authored
ci: fix emulator not starting and fix example app not building (#3286)
* Update flutter_test.yml * Update * Update * Update * Update * Update * Update * Update * Update * Update * Update * Update
1 parent f81a436 commit 944b773

File tree

3 files changed

+18
-29
lines changed

3 files changed

+18
-29
lines changed

.github/workflows/flutter_test.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,24 +56,20 @@ jobs:
5656

5757
# TODO: fix emulator caching, in ubuntu-latest emulator won't boot: https://github.com/ReactiveCircus/android-emulator-runner/issues/278
5858

59-
- name: build apk
60-
working-directory: packages/flutter/example/android
61-
run: flutter build apk --debug --target-platform=android-x64
62-
63-
- name: launch android emulator & run android native test
59+
- name: launch android emulator & run android integration test
6460
uses: reactivecircus/android-emulator-runner@1dcd0090116d15e7c562f8db72807de5e036a4ed #pin@v2.34.0
6561
with:
66-
working-directory: packages/flutter/example/android
62+
working-directory: packages/flutter/example
6763
api-level: 31
6864
profile: Nexus 6
6965
arch: x86_64
7066
force-avd-creation: false
7167
avd-name: avd-x86_64-31
7268
emulator-options: -no-snapshot-save -no-window -accel on -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
7369
disable-animations: true
74-
script: ./gradlew testDebugUnitTest
70+
script: flutter test integration_test/all.dart --dart-define SENTRY_AUTH_TOKEN_E2E=$SENTRY_AUTH_TOKEN_E2E --verbose
7571

76-
- name: launch android emulator & run android integration test
72+
- name: launch android emulator & run android integration test in profile mode
7773
uses: reactivecircus/android-emulator-runner@1dcd0090116d15e7c562f8db72807de5e036a4ed #pin@v2.34.0
7874
with:
7975
working-directory: packages/flutter/example
@@ -84,20 +80,24 @@ jobs:
8480
avd-name: avd-x86_64-31
8581
emulator-options: -no-snapshot-save -no-window -accel on -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
8682
disable-animations: true
87-
script: flutter test integration_test/all.dart --dart-define SENTRY_AUTH_TOKEN_E2E=$SENTRY_AUTH_TOKEN_E2E --verbose
83+
script: flutter drive --driver=integration_test/test_driver/driver.dart --target=integration_test/sentry_widgets_flutter_binding_test.dart --profile -d emulator-5554
8884

89-
- name: launch android emulator & run android integration test in profile mode
85+
- name: launch android emulator & run android native test
9086
uses: reactivecircus/android-emulator-runner@1dcd0090116d15e7c562f8db72807de5e036a4ed #pin@v2.34.0
9187
with:
92-
working-directory: packages/flutter/example
88+
working-directory: packages/flutter/example/android
9389
api-level: 31
9490
profile: Nexus 6
9591
arch: x86_64
9692
force-avd-creation: false
9793
avd-name: avd-x86_64-31
9894
emulator-options: -no-snapshot-save -no-window -accel on -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
9995
disable-animations: true
100-
script: flutter drive --driver=integration_test/test_driver/driver.dart --target=integration_test/sentry_widgets_flutter_binding_test.dart --profile -d emulator-5554
96+
script: ./gradlew testDebugUnitTest
97+
98+
- name: build apk
99+
working-directory: packages/flutter/example/android
100+
run: flutter build apk --debug --target-platform=android-x64
101101

102102
cocoa:
103103
name: '${{ matrix.target }} | ${{ matrix.sdk }}'

packages/flutter/example/pubspec.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,13 @@ dependencies:
3333
#sqflite_common_ffi: ^2.0.0
3434
#sqflite_common_ffi_web: ^0.3.0
3535
http: ^1.0.0
36-
hive: any # This gets constrained by `sentry_hive`
36+
hive: any # This gets constrained by `sentry_hive`
3737
sqlite3_flutter_libs: ^0.5.0
3838

3939
dependency_overrides:
40-
isar:
41-
version: ^3.1.0
42-
hosted: https://pub.isar-community.dev/
4340
isar_flutter_libs:
44-
version: ^3.1.0
45-
hosted: https://pub.isar-community.dev/
46-
isar_generator:
47-
version: ^3.1.0
48-
hosted: https://pub.isar-community.dev/
41+
git:
42+
url: https://github.com/MrLittleWhite/isar_flutter_libs.git
4943

5044
dev_dependencies:
5145
flutter_lints: ^2.0.0

packages/flutter/example/pubspec_overrides.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,7 @@ dependency_overrides:
1818
path: ../../logging
1919
sentry_sqflite:
2020
path: ../../sqflite
21-
isar:
22-
hosted: https://pub.isar-community.dev/
23-
version: ^3.1.0
2421
isar_flutter_libs:
25-
hosted: https://pub.isar-community.dev/
26-
version: ^3.1.0
27-
isar_generator:
28-
hosted: https://pub.isar-community.dev/
29-
version: ^3.1.0
22+
git:
23+
url: https://github.com/MrLittleWhite/isar_flutter_libs.git
24+

0 commit comments

Comments
 (0)