-
-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into enha/user-unhandled
- Loading branch information
Showing
46 changed files
with
929 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,71 +21,97 @@ jobs: | |
runs-on: macos-latest | ||
timeout-minutes: 30 | ||
defaults: | ||
run: | ||
working-directory: ./flutter/example | ||
run: | ||
working-directory: ./flutter/example | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
sdk: ['stable', 'beta'] | ||
fail-fast: false | ||
matrix: | ||
sdk: ['stable', 'beta'] | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '11' | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '11' | ||
|
||
- uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # [email protected] | ||
with: | ||
channel: ${{ matrix.sdk }} | ||
- uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # [email protected] | ||
with: | ||
channel: ${{ matrix.sdk }} | ||
|
||
- name: flutter upgrade | ||
run: flutter upgrade | ||
- name: flutter upgrade | ||
run: flutter upgrade | ||
|
||
- name: flutter pub get | ||
run: flutter pub get | ||
- name: flutter pub get | ||
run: flutter pub get | ||
|
||
- name: Gradle cache | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: AVD cache | ||
uses: actions/cache@v3 | ||
id: avd-cache | ||
with: | ||
path: | | ||
~/.android/avd/* | ||
~/.android/adb* | ||
key: avd-21 | ||
|
||
- name: create AVD and generate snapshot for caching | ||
if: steps.avd-cache.outputs.cache-hit != 'true' | ||
uses: reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b #[email protected] | ||
with: | ||
working-directory: ./flutter/example | ||
api-level: 21 | ||
force-avd-creation: false | ||
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | ||
disable-animations: false | ||
arch: x86_64 | ||
profile: Nexus 6 | ||
script: echo "Generated AVD snapshot for caching." | ||
|
||
- name: launch android emulator & run android integration test | ||
uses: reactivecircus/android-emulator-runner@50986b1464923454c95e261820bc626f38490ec0 #pin@v2.27.0 | ||
uses: reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b #pin@v2.28.0 | ||
with: | ||
working-directory: ./flutter/example | ||
api-level: 21 | ||
force-avd-creation: false | ||
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | ||
disable-animations: true | ||
arch: x86_64 | ||
profile: Nexus 6 | ||
script: flutter test integration_test/integration_test.dart --verbose | ||
|
||
# Enable after fixing https://github.com/getsentry/sentry-dart/issues/1448 | ||
# test-ios: | ||
# runs-on: macos-latest | ||
# timeout-minutes: 30 | ||
# defaults: | ||
# run: | ||
# working-directory: ./flutter/example | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# # 'beta' is flaky because of https://github.com/flutter/flutter/issues/124340 | ||
# sdk: ['stable'] | ||
# steps: | ||
# - name: checkout | ||
# uses: actions/checkout@v3 | ||
test-ios: | ||
runs-on: macos-13 | ||
timeout-minutes: 30 | ||
defaults: | ||
run: | ||
working-directory: ./flutter/example | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# 'beta' is flaky because of https://github.com/flutter/flutter/issues/124340 | ||
sdk: ['stable'] | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
|
||
# - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # [email protected] | ||
# with: | ||
# channel: ${{ matrix.sdk }} | ||
- uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # [email protected] | ||
with: | ||
channel: ${{ matrix.sdk }} | ||
|
||
# - name: flutter upgrade | ||
# run: flutter upgrade | ||
- name: flutter upgrade | ||
run: flutter upgrade | ||
|
||
# - name: flutter pub get | ||
# run: flutter pub get | ||
- name: flutter pub get | ||
run: flutter pub get | ||
|
||
# - name: launch ios emulator | ||
# uses: futureware-tech/simulator-action@ee05c113b79f056b47f354d7b313555f5491e158 #pin@v2 | ||
# with: | ||
# model: 'iPhone 14' | ||
# os_version: '16.2' | ||
- name: launch ios simulator | ||
run: | | ||
simulator_id=$(xcrun simctl create sentryPhone com.apple.CoreSimulator.SimDeviceType.iPhone-14 com.apple.CoreSimulator.SimRuntime.iOS-16-2) | ||
xcrun simctl boot ${simulator_id} | ||
# - name: run ios integration test | ||
# run: flutter test integration_test/integration_test.dart --verbose | ||
- name: run ios integration test | ||
run: flutter test integration_test/integration_test.dart --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import 'package:meta/meta.dart'; | ||
|
||
@internal | ||
class SentryTraceOrigins { | ||
static const manual = 'manual'; | ||
|
||
static const autoNavigationRouteObserver = 'auto.navigation.route_observer'; | ||
static const autoHttpHttp = 'auto.http.http'; | ||
static const autoHttpDioHttpClientAdapter = | ||
'auto.http.dio.http_client_adapter'; | ||
static const autoHttpDioTransformer = 'auto.http.dio.transformer'; | ||
static const autoFile = 'auto.file'; | ||
static const autoFileAssetBundle = 'auto.file.asset_bundle'; | ||
static const autoDbSqfliteOpenDatabase = 'auto.db.sqflite.open_database'; | ||
static const autoDbSqfliteBatch = 'auto.db.sqflite.batch'; | ||
static const autoDbSqfliteDatabase = 'auto.db.sqflite.database'; | ||
static const autoDbSqfliteDatabaseExecutor = | ||
'auto.db.sqflite.database_executor'; | ||
static const autoDbSqfliteDatabaseFactory = | ||
'auto.db.sqflite.database_factory'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.