summaryrefslogtreecommitdiff
path: root/build-logic/android-plugins/src/main
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-04-25 11:33:35 +0530
committerGitHub <noreply@github.com>2022-04-25 11:33:35 +0530
commit758e3210a36a803410cf698c4085b5be99e8aba8 (patch)
treef34201cb031eea64e7d588e387eaa497ea1453aa /build-logic/android-plugins/src/main
parentdfa882093c2c7c52caed81b04865dcef28741b54 (diff)
Allow sentry mapping upload task to be configured at build-time (#1870)
Diffstat (limited to 'build-logic/android-plugins/src/main')
-rw-r--r--build-logic/android-plugins/src/main/kotlin/com.github.android-password-store.sentry.gradle.kts5
1 files changed, 4 insertions, 1 deletions
diff --git a/build-logic/android-plugins/src/main/kotlin/com.github.android-password-store.sentry.gradle.kts b/build-logic/android-plugins/src/main/kotlin/com.github.android-password-store.sentry.gradle.kts
index 0407d808..febfce14 100644
--- a/build-logic/android-plugins/src/main/kotlin/com.github.android-password-store.sentry.gradle.kts
+++ b/build-logic/android-plugins/src/main/kotlin/com.github.android-password-store.sentry.gradle.kts
@@ -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 {