Allow sentry mapping upload task to be configured at build-time (#1870)

This commit is contained in:
Harsh Shandilya 2022-04-25 11:33:35 +05:30 committed by GitHub
parent dfa882093c
commit 758e3210a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -35,7 +35,7 @@ jobs:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
with: with:
arguments: --no-configuration-cache collectFreeReleaseApks collectNonFreeReleaseApks arguments: --no-configuration-cache collectFreeReleaseApks collectNonFreeReleaseApks -PsentryUploadMappings
- name: Clean secrets - name: Clean secrets
run: scripts/signing-cleanup.sh run: scripts/signing-cleanup.sh

View file

@ -10,6 +10,7 @@ plugins {
} }
val SENTRY_DSN_PROPERTY = "SENTRY_DSN" val SENTRY_DSN_PROPERTY = "SENTRY_DSN"
val SENTRY_UPLOAD_MAPPINGS_PROPERTY = "sentryUploadMappings"
android { android {
androidComponents { androidComponents {
@ -23,7 +24,9 @@ android {
} }
sentry { sentry {
autoUploadProguardMapping.set(true) autoUploadProguardMapping.set(
project.providers.gradleProperty(SENTRY_UPLOAD_MAPPINGS_PROPERTY).isPresent
)
ignoredBuildTypes.set(setOf("debug")) ignoredBuildTypes.set(setOf("debug"))
ignoredFlavors.set(setOf(ProductFlavors.FREE)) ignoredFlavors.set(setOf(ProductFlavors.FREE))
tracingInstrumentation { tracingInstrumentation {