Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/flutter_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,20 @@ jobs:

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

- name: build apk
working-directory: packages/flutter/example/android
run: flutter build apk --debug --target-platform=android-x64

- name: launch android emulator & run android native test
- name: launch android emulator & run android integration test
uses: reactivecircus/android-emulator-runner@1dcd0090116d15e7c562f8db72807de5e036a4ed #pin@v2.34.0
with:
working-directory: packages/flutter/example/android
working-directory: packages/flutter/example
api-level: 31
profile: Nexus 6
arch: x86_64
force-avd-creation: false
avd-name: avd-x86_64-31
emulator-options: -no-snapshot-save -no-window -accel on -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: ./gradlew testDebugUnitTest
script: flutter test integration_test/all.dart --dart-define SENTRY_AUTH_TOKEN_E2E=$SENTRY_AUTH_TOKEN_E2E --verbose

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

- name: launch android emulator & run android integration test in profile mode
- name: launch android emulator & run android native test
uses: reactivecircus/android-emulator-runner@1dcd0090116d15e7c562f8db72807de5e036a4ed #pin@v2.34.0
with:
working-directory: packages/flutter/example
working-directory: packages/flutter/example/android
api-level: 31
profile: Nexus 6
arch: x86_64
force-avd-creation: false
avd-name: avd-x86_64-31
emulator-options: -no-snapshot-save -no-window -accel on -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: flutter drive --driver=integration_test/test_driver/driver.dart --target=integration_test/sentry_widgets_flutter_binding_test.dart --profile -d emulator-5554
script: ./gradlew testDebugUnitTest

- name: build apk
working-directory: packages/flutter/example/android
run: flutter build apk --debug --target-platform=android-x64

cocoa:
name: '${{ matrix.target }} | ${{ matrix.sdk }}'
Expand Down
12 changes: 3 additions & 9 deletions packages/flutter/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,13 @@ dependencies:
#sqflite_common_ffi: ^2.0.0
#sqflite_common_ffi_web: ^0.3.0
http: ^1.0.0
hive: any # This gets constrained by `sentry_hive`
hive: any # This gets constrained by `sentry_hive`
sqlite3_flutter_libs: ^0.5.0

dependency_overrides:
isar:
version: ^3.1.0
hosted: https://pub.isar-community.dev/
isar_flutter_libs:
version: ^3.1.0
hosted: https://pub.isar-community.dev/
isar_generator:
version: ^3.1.0
hosted: https://pub.isar-community.dev/
git:
url: https://github.com/MrLittleWhite/isar_flutter_libs.git

dev_dependencies:
flutter_lints: ^2.0.0
Expand Down
11 changes: 3 additions & 8 deletions packages/flutter/example/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ dependency_overrides:
path: ../../logging
sentry_sqflite:
path: ../../sqflite
isar:
hosted: https://pub.isar-community.dev/
version: ^3.1.0
isar_flutter_libs:
hosted: https://pub.isar-community.dev/
version: ^3.1.0
isar_generator:
hosted: https://pub.isar-community.dev/
version: ^3.1.0
git:
url: https://github.com/MrLittleWhite/isar_flutter_libs.git

Loading