From b3b0f53672d6d60947f4b72a1aae99b6a70eb6ae Mon Sep 17 00:00:00 2001 From: LandWarderer2772 Date: Wed, 18 Mar 2026 11:46:41 +0530 Subject: [PATCH 1/2] fix: Disabled options in sentry configuration in build.gradle to fix differences in RB --- app/build.gradle | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 40e186d0fa..bf38836e9b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -240,12 +240,13 @@ sentry { // this will upload your source code to Sentry to show it as part of the stack traces // disable if you don't want to expose your sources - includeSourceContext = true + includeSourceContext = false // Skip all Sentry Gradle plugin tasks (source upload, mapping upload, etc.) // if SENTRY_AUTH_TOKEN is not provided — avoids build errors in local/dev environments def sentryAuthToken = System.getenv('SENTRY_AUTH_TOKEN') - includeSourceContext = sentryAuthToken != null && !sentryAuthToken.isEmpty() - autoUploadProguardMapping = sentryAuthToken != null && !sentryAuthToken.isEmpty() - autoUploadSourceContext = sentryAuthToken != null && !sentryAuthToken.isEmpty() + includeSourceContext = false + autoUploadProguardMapping = false + autoUploadSourceContext = false + tracingInstrumentation { enabled = false } } From 5a24984d1531b84a3b5399c51ea540f67ae63260 Mon Sep 17 00:00:00 2001 From: LandWarderer2772 Date: Fri, 20 Mar 2026 16:23:11 +0530 Subject: [PATCH 2/2] fixes --- app/build.gradle | 32 +++++++++++++++++--------------- gradle/libs.versions.toml | 2 ++ 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index bf38836e9b..57816bd244 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -210,6 +210,7 @@ dependencies { implementation libs.kizzyrpc implementation libs.conscrypt.android + implementation libs.sentry.android debugImplementation libs.leakcanary.android nightlyImplementation libs.leakcanary.android @@ -233,20 +234,21 @@ dependencies { kspAndroidTest libs.hilt.android.compiler } - sentry { - org = "appfuton" - projectName = "android" - - // this will upload your source code to Sentry to show it as part of the stack traces - // disable if you don't want to expose your sources - includeSourceContext = false - - // Skip all Sentry Gradle plugin tasks (source upload, mapping upload, etc.) - // if SENTRY_AUTH_TOKEN is not provided — avoids build errors in local/dev environments - def sentryAuthToken = System.getenv('SENTRY_AUTH_TOKEN') - includeSourceContext = false - autoUploadProguardMapping = false - autoUploadSourceContext = false - tracingInstrumentation { enabled = false } + org = "appfuton" + projectName = "android" + authToken = System.getenv('SENTRY_AUTH_TOKEN') ?: '' + + // Disable all uploads + includeSourceContext = false + autoUploadProguardMapping = false + autoUploadSourceContext = false + + // Disable instrumentation that causes manifest/UUID changes + tracingInstrumentation { enabled = false } + autoInstallation { enabled = false } + + // Disable telemetry and dependency reporting that cause non-deterministic builds + includeDependenciesReport = false + telemetry = false } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index b0a0d4ad01..ed404b1087 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -39,6 +39,7 @@ preference = "1.2.1" recyclerview = "1.4.0" room = "2.7.2" serialization = "1.9.0" +sentry = "8.36.0" ssiv = "v4.1" swiperefreshlayout = "1.1.0" testRules = "1.7.0" @@ -112,6 +113,7 @@ okhttp = { module = "com.squareup.okhttp3:okhttp" } okhttp-dnsoverhttps = { module = "com.squareup.okhttp3:okhttp-dnsoverhttps" } okhttp-tls = { module = "com.squareup.okhttp3:okhttp-tls" } okio = { module = "com.squareup.okio:okio", version.ref = "okio" } +sentry-android = { module = "io.sentry:sentry-android", version.ref = "sentry" } ssiv = { module = "com.github.AppFuton:subsampling-scale-image-view", version.ref = "ssiv" } workinspector = { module = "com.github.Koitharu:WorkInspector", version.ref = "workinspector" } androidx-window = { module = "androidx.window:window", version.ref = "window" }