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
2 changed files with 5 additions and 2 deletions

View File

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