Allow sentry mapping upload task to be configured at build-time (#1870)
This commit is contained in:
parent
dfa882093c
commit
758e3210a3
2 changed files with 5 additions and 2 deletions
2
.github/workflows/deploy_snapshot.yml
vendored
2
.github/workflows/deploy_snapshot.yml
vendored
|
@ -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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue