diff --git a/.github/workflows/flutter_test.yml b/.github/workflows/flutter_test.yml index cd0dbdd322..d6d27fd131 100644 --- a/.github/workflows/flutter_test.yml +++ b/.github/workflows/flutter_test.yml @@ -56,14 +56,10 @@ 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 @@ -71,9 +67,9 @@ 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: ./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 @@ -84,12 +80,12 @@ 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 @@ -97,7 +93,11 @@ 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 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 }}' diff --git a/packages/flutter/example/pubspec.yaml b/packages/flutter/example/pubspec.yaml index e83f687898..f161455b0e 100644 --- a/packages/flutter/example/pubspec.yaml +++ b/packages/flutter/example/pubspec.yaml @@ -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 diff --git a/packages/flutter/example/pubspec_overrides.yaml b/packages/flutter/example/pubspec_overrides.yaml index e76cae4bc5..8f6b711d3b 100644 --- a/packages/flutter/example/pubspec_overrides.yaml +++ b/packages/flutter/example/pubspec_overrides.yaml @@ -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 +