Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 17 additions & 14 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ dependencies {
implementation libs.kizzyrpc

implementation libs.conscrypt.android
implementation libs.sentry.android

debugImplementation libs.leakcanary.android
nightlyImplementation libs.leakcanary.android
Expand All @@ -233,19 +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 = true

// 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()
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
}
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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" }
Expand Down
Loading