feat: set up Sentry

This commit is contained in:
Harsh Shandilya 2023-03-03 01:43:03 +05:30
parent 62dd421cf4
commit 905c27fe84
No known key found for this signature in database
10 changed files with 130 additions and 2 deletions

View file

@ -61,6 +61,8 @@ jobs:
# This allows us to build most of what we need without the emulator running
# and using resources
- name: Build app and benchmark
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
run: ./gradlew :benchmark:assembleBenchmark :android:assembleBenchmark
# Now use reactivecircus/android-emulator-runner to spin up an emulator. We're gonna use it again

View file

@ -70,6 +70,8 @@ jobs:
- name: Build release app
uses: gradle/gradle-build-action@6095a76664413da4c8c134ee32e8a8ae900f0f1f # v2.4.0
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
with:
arguments: --no-configuration-cache --stacktrace collectReleaseApks
gradle-home-cache-cleanup: true

View file

@ -57,8 +57,10 @@ jobs:
- name: Build release assets
shell: bash
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
run: |
./gradlew --no-configuration-cache collectReleaseApks collectReleaseBundle
./gradlew --no-configuration-cache collectReleaseApks collectReleaseBundle -PsentryUploadMappings
- name: Clean secrets
run: scripts/signing-cleanup.sh