diff --git a/build.gradle.kts b/build.gradle.kts index 471a3dd413..93b042ee85 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -67,8 +67,10 @@ spotless { fun Project.configureSentry() { extensions.getByType(SentryPluginExtension::class.java).apply { - includeProguardMapping = System.getenv()["CI"].toBoolean() && + val shouldUploadDebugFiles = System.getenv()["CI"].toBoolean() && !project.properties["skipSentryProguardMappingUpload"]?.toString().toBoolean() + includeProguardMapping = shouldUploadDebugFiles + includeSourceContext = shouldUploadDebugFiles tracingInstrumentation { features.set(EnumSet.allOf(InstrumentationFeature::class.java) - InstrumentationFeature.OKHTTP)