From 8e7f9fd1fee6d267260a09bd2f49d94b88d27648 Mon Sep 17 00:00:00 2001 From: Roman Zavarnitsyn Date: Mon, 3 Nov 2025 18:06:33 +0100 Subject: [PATCH 01/10] feat(size-analysis): Integrate Size Analysis to measure SDK size overhead --- .github/workflows/integration-tests-size.yml | 46 +++++++++++++++++++ build.gradle.kts | 1 + gradle/libs.versions.toml | 1 + .../test-app-size/.gitignore | 1 + .../test-app-size/build.gradle.kts | 45 ++++++++++++++++++ .../test-app-size/proguard-rules.pro | 39 ++++++++++++++++ .../src/main/AndroidManifest.xml | 6 +++ settings.gradle.kts | 1 + 8 files changed, 140 insertions(+) create mode 100644 .github/workflows/integration-tests-size.yml create mode 100644 sentry-android-integration-tests/test-app-size/.gitignore create mode 100644 sentry-android-integration-tests/test-app-size/build.gradle.kts create mode 100644 sentry-android-integration-tests/test-app-size/proguard-rules.pro create mode 100644 sentry-android-integration-tests/test-app-size/src/main/AndroidManifest.xml diff --git a/.github/workflows/integration-tests-size.yml b/.github/workflows/integration-tests-size.yml new file mode 100644 index 00000000000..eb242c14d48 --- /dev/null +++ b/.github/workflows/integration-tests-size.yml @@ -0,0 +1,46 @@ +name: SDK Size Analysis + +on: + push: + branches: + - main + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + name: Build + runs-on: ubuntu-latest + + env: + GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }} + + steps: + - name: Checkout Repo + uses: actions/checkout@v5 + + - name: Setup Java Version + uses: actions/setup-java@v5 + with: + distribution: "temurin" + java-version: "17" + + # Workaround for https://github.com/gradle/actions/issues/21 to use config cache + - name: Cache buildSrc + uses: actions/cache@v4 + with: + path: buildSrc/build + key: build-logic-${{ hashFiles('buildSrc/src/**', 'buildSrc/build.gradle.kts','buildSrc/settings.gradle.kts') }} + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 + with: + cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} + + - name: Size Analysis + run: ./gradlew :sentry-android-integration-tests:test-app-size:bundleRelease + env: + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 17b57291eb2..b9019dbf1fa 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -30,6 +30,7 @@ plugins { alias(libs.plugins.gradle.versions) apply false alias(libs.plugins.spring.dependency.management) apply false id("io.sentry.javadoc.aggregate") + alias(libs.plugins.sentry) apply false } buildscript { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 6672de2d6e7..77f9e33577c 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -65,6 +65,7 @@ springboot4 = { id = "org.springframework.boot", version.ref = "springboot4" } spring-dependency-management = { id = "io.spring.dependency-management", version = "1.0.11.RELEASE" } gretty = { id = "org.gretty", version = "4.0.0" } animalsniffer = { id = "ru.vyarus.animalsniffer", version = "2.0.1" } +sentry = { id = "io.sentry.android.gradle", version = "6.0.0-alpha.6"} [libraries] apache-httpclient = { module = "org.apache.httpcomponents.client5:httpclient5", version = "5.0.4" } diff --git a/sentry-android-integration-tests/test-app-size/.gitignore b/sentry-android-integration-tests/test-app-size/.gitignore new file mode 100644 index 00000000000..42afabfd2ab --- /dev/null +++ b/sentry-android-integration-tests/test-app-size/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/sentry-android-integration-tests/test-app-size/build.gradle.kts b/sentry-android-integration-tests/test-app-size/build.gradle.kts new file mode 100644 index 00000000000..622384dae79 --- /dev/null +++ b/sentry-android-integration-tests/test-app-size/build.gradle.kts @@ -0,0 +1,45 @@ +plugins { + id("com.android.application") + id("io.sentry.android.gradle") +} + +android { + namespace = "io.sentry.tests.size" + compileSdk = libs.versions.compileSdk.get().toInt() + + defaultConfig { + applicationId = "io.sentry.tests.size" + minSdk = libs.versions.minSdk.get().toInt() + targetSdk = libs.versions.targetSdk.get().toInt() + versionCode = 1 + versionName = project.version.toString() + } + + buildTypes { + release { + isMinifyEnabled = true + proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") + } + } + compileOptions { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 + } +} + +sentry { + org.set("sentry-sdks") + projectName.set("sentry-android") + authToken.set(System.getenv("SENTRY_AUTH_TOKEN")) + autoUploadProguardMapping.set(true) + tracingInstrumentation.enabled.set(false) + includeDependenciesReport.set(false) + telemetry.set(false) + sizeAnalysis.enabled.set(true) +} + +configurations.configureEach { + exclude(group = "org.jetbrains.kotlin") + exclude(group = "androidx.core") + exclude(group = "androidx.lifecycle") +} \ No newline at end of file diff --git a/sentry-android-integration-tests/test-app-size/proguard-rules.pro b/sentry-android-integration-tests/test-app-size/proguard-rules.pro new file mode 100644 index 00000000000..b7a259067ca --- /dev/null +++ b/sentry-android-integration-tests/test-app-size/proguard-rules.pro @@ -0,0 +1,39 @@ +# Rules to not warn about missing classes for Kotlin stdlib. We use it, but we only want to measure the SDK size overhead, so we keep the test app lean +# This is generated automatically by the Android Gradle plugin. +-dontwarn kotlin.Lazy +-dontwarn kotlin.LazyKt +-dontwarn kotlin.LazyThreadSafetyMode +-dontwarn kotlin.Metadata +-dontwarn kotlin.NoWhenBranchMatchedException +-dontwarn kotlin.Pair +-dontwarn kotlin.TuplesKt +-dontwarn kotlin.Unit +-dontwarn kotlin.collections.CollectionsKt +-dontwarn kotlin.comparisons.ComparisonsKt +-dontwarn kotlin.enums.EnumEntries +-dontwarn kotlin.enums.EnumEntriesKt +-dontwarn kotlin.io.CloseableKt +-dontwarn kotlin.io.FilesKt +-dontwarn kotlin.io.TextStreamsKt +-dontwarn kotlin.jdk7.AutoCloseableKt +-dontwarn kotlin.jvm.functions.Function0 +-dontwarn kotlin.jvm.functions.Function1 +-dontwarn kotlin.jvm.internal.DefaultConstructorMarker +-dontwarn kotlin.jvm.internal.Intrinsics +-dontwarn kotlin.jvm.internal.Lambda +-dontwarn kotlin.jvm.internal.MutablePropertyReference1 +-dontwarn kotlin.jvm.internal.MutablePropertyReference1Impl +-dontwarn kotlin.jvm.internal.Ref$ObjectRef +-dontwarn kotlin.jvm.internal.Reflection +-dontwarn kotlin.jvm.internal.SourceDebugExtension +-dontwarn kotlin.jvm.internal.TypeIntrinsics +-dontwarn kotlin.properties.ReadWriteProperty +-dontwarn kotlin.ranges.LongProgression +-dontwarn kotlin.ranges.LongRange +-dontwarn kotlin.ranges.RangesKt +-dontwarn kotlin.reflect.KMutableProperty1 +-dontwarn kotlin.reflect.KProperty +-dontwarn kotlin.sequences.Sequence +-dontwarn kotlin.text.Charsets +-dontwarn kotlin.text.Regex +-dontwarn kotlin.text.StringsKt \ No newline at end of file diff --git a/sentry-android-integration-tests/test-app-size/src/main/AndroidManifest.xml b/sentry-android-integration-tests/test-app-size/src/main/AndroidManifest.xml new file mode 100644 index 00000000000..408848735ff --- /dev/null +++ b/sentry-android-integration-tests/test-app-size/src/main/AndroidManifest.xml @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git a/settings.gradle.kts b/settings.gradle.kts index 26970de73c8..c19f1e1499f 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -97,5 +97,6 @@ include( "sentry-android-integration-tests:sentry-uitest-android", "sentry-android-integration-tests:test-app-plain", "sentry-android-integration-tests:test-app-sentry", + "sentry-android-integration-tests:test-app-size", "sentry-samples:sentry-samples-openfeign" ) From 8c1c7d77cea91ad91691423551994311995790ee Mon Sep 17 00:00:00 2001 From: Roman Zavarnitsyn Date: Mon, 3 Nov 2025 18:07:25 +0100 Subject: [PATCH 02/10] newline --- .github/workflows/integration-tests-size.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests-size.yml b/.github/workflows/integration-tests-size.yml index eb242c14d48..3d9faad3d70 100644 --- a/.github/workflows/integration-tests-size.yml +++ b/.github/workflows/integration-tests-size.yml @@ -43,4 +43,4 @@ jobs: - name: Size Analysis run: ./gradlew :sentry-android-integration-tests:test-app-size:bundleRelease env: - SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} \ No newline at end of file + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} From a5d5965d8524d98613b2ecd85193a331b7a8b687 Mon Sep 17 00:00:00 2001 From: Roman Zavarnitsyn Date: Mon, 3 Nov 2025 18:17:02 +0100 Subject: [PATCH 03/10] ignore test app --- build.gradle.kts | 1 + 1 file changed, 1 insertion(+) diff --git a/build.gradle.kts b/build.gradle.kts index b9019dbf1fa..b89b7deed10 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -84,6 +84,7 @@ apiValidation { "sentry-uitest-android-critical", "test-app-plain", "test-app-sentry", + "test-app-size", "sentry-samples-netflix-dgs" ) ) From 641120b8548b1025f4d41cd6bf24169456108d64 Mon Sep 17 00:00:00 2001 From: Roman Zavarnitsyn Date: Mon, 3 Nov 2025 20:15:34 +0100 Subject: [PATCH 04/10] formatting --- .../test-app-size/.gitignore | 2 +- .../test-app-size/build.gradle.kts | 19 +++++++++++++------ .../test-app-size/proguard-rules.pro | 2 +- .../src/main/AndroidManifest.xml | 2 +- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/sentry-android-integration-tests/test-app-size/.gitignore b/sentry-android-integration-tests/test-app-size/.gitignore index 42afabfd2ab..796b96d1c40 100644 --- a/sentry-android-integration-tests/test-app-size/.gitignore +++ b/sentry-android-integration-tests/test-app-size/.gitignore @@ -1 +1 @@ -/build \ No newline at end of file +/build diff --git a/sentry-android-integration-tests/test-app-size/build.gradle.kts b/sentry-android-integration-tests/test-app-size/build.gradle.kts index 622384dae79..0af2b829a3f 100644 --- a/sentry-android-integration-tests/test-app-size/build.gradle.kts +++ b/sentry-android-integration-tests/test-app-size/build.gradle.kts @@ -19,12 +19,25 @@ android { release { isMinifyEnabled = true proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") + ndk { + abiFilters.clear() + abiFilters.add("arm64-v8a") + } } } compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } + androidComponents.beforeVariants { + it.enable = !Config.Android.shouldSkipDebugVariant(it.buildType) + } +} + +configurations.configureEach { + exclude(group = "org.jetbrains.kotlin", module = "kotlin-stdlib-jdk8") + exclude(group = "androidx.core") + exclude(group = "androidx.lifecycle") } sentry { @@ -37,9 +50,3 @@ sentry { telemetry.set(false) sizeAnalysis.enabled.set(true) } - -configurations.configureEach { - exclude(group = "org.jetbrains.kotlin") - exclude(group = "androidx.core") - exclude(group = "androidx.lifecycle") -} \ No newline at end of file diff --git a/sentry-android-integration-tests/test-app-size/proguard-rules.pro b/sentry-android-integration-tests/test-app-size/proguard-rules.pro index b7a259067ca..f44c6dadf24 100644 --- a/sentry-android-integration-tests/test-app-size/proguard-rules.pro +++ b/sentry-android-integration-tests/test-app-size/proguard-rules.pro @@ -36,4 +36,4 @@ -dontwarn kotlin.sequences.Sequence -dontwarn kotlin.text.Charsets -dontwarn kotlin.text.Regex --dontwarn kotlin.text.StringsKt \ No newline at end of file +-dontwarn kotlin.text.StringsKt diff --git a/sentry-android-integration-tests/test-app-size/src/main/AndroidManifest.xml b/sentry-android-integration-tests/test-app-size/src/main/AndroidManifest.xml index 408848735ff..acdb622cbff 100644 --- a/sentry-android-integration-tests/test-app-size/src/main/AndroidManifest.xml +++ b/sentry-android-integration-tests/test-app-size/src/main/AndroidManifest.xml @@ -3,4 +3,4 @@ - \ No newline at end of file + From 72fc33532f40dfbaf689427ec2d491d029388248 Mon Sep 17 00:00:00 2001 From: Roman Zavarnitsyn Date: Mon, 3 Nov 2025 20:17:49 +0100 Subject: [PATCH 05/10] exclude test app from spring-boot test matrix --- .github/workflows/spring-boot-2-matrix.yml | 2 ++ .github/workflows/spring-boot-3-matrix.yml | 2 ++ .github/workflows/spring-boot-4-matrix.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/spring-boot-2-matrix.yml b/.github/workflows/spring-boot-2-matrix.yml index ad6062bbf9d..e3b851a3226 100644 --- a/.github/workflows/spring-boot-2-matrix.yml +++ b/.github/workflows/spring-boot-2-matrix.yml @@ -80,6 +80,7 @@ jobs: -e '/.*"sentry-android-integration-tests:sentry-uitest-android",/d' \ -e '/.*"sentry-android-integration-tests:sentry-uitest-android-critical",/d' \ -e '/.*"sentry-android-integration-tests:test-app-sentry",/d' \ + -e '/.*"sentry-android-integration-tests:test-app-size",/d' \ -e '/.*"sentry-samples:sentry-samples-android",/d' \ -e '/.*"sentry-android-replay",/d' \ settings.gradle.kts @@ -91,6 +92,7 @@ jobs: -e '/.*"sentry-uitest-android-benchmark",/d' \ -e '/.*"sentry-uitest-android-critical",/d' \ -e '/.*"test-app-sentry",/d' \ + -e '/.*"test-app-size",/d' \ -e '/.*"sentry-samples-android",/d' \ build.gradle.kts diff --git a/.github/workflows/spring-boot-3-matrix.yml b/.github/workflows/spring-boot-3-matrix.yml index 268f0f92129..d78d46dff60 100644 --- a/.github/workflows/spring-boot-3-matrix.yml +++ b/.github/workflows/spring-boot-3-matrix.yml @@ -80,6 +80,7 @@ jobs: -e '/.*"sentry-android-integration-tests:sentry-uitest-android",/d' \ -e '/.*"sentry-android-integration-tests:sentry-uitest-android-critical",/d' \ -e '/.*"sentry-android-integration-tests:test-app-sentry",/d' \ + -e '/.*"sentry-android-integration-tests:test-app-size",/d' \ -e '/.*"sentry-samples:sentry-samples-android",/d' \ -e '/.*"sentry-android-replay",/d' \ settings.gradle.kts @@ -91,6 +92,7 @@ jobs: -e '/.*"sentry-uitest-android-benchmark",/d' \ -e '/.*"sentry-uitest-android-critical",/d' \ -e '/.*"test-app-sentry",/d' \ + -e '/.*"test-app-size",/d' \ -e '/.*"sentry-samples-android",/d' \ build.gradle.kts diff --git a/.github/workflows/spring-boot-4-matrix.yml b/.github/workflows/spring-boot-4-matrix.yml index 6d0b9264b28..11c64a951f8 100644 --- a/.github/workflows/spring-boot-4-matrix.yml +++ b/.github/workflows/spring-boot-4-matrix.yml @@ -80,6 +80,7 @@ jobs: -e '/.*"sentry-android-integration-tests:sentry-uitest-android",/d' \ -e '/.*"sentry-android-integration-tests:sentry-uitest-android-critical",/d' \ -e '/.*"sentry-android-integration-tests:test-app-sentry",/d' \ + -e '/.*"sentry-android-integration-tests:test-app-size",/d' \ -e '/.*"sentry-samples:sentry-samples-android",/d' \ -e '/.*"sentry-android-replay",/d' \ settings.gradle.kts @@ -91,6 +92,7 @@ jobs: -e '/.*"sentry-uitest-android-benchmark",/d' \ -e '/.*"sentry-uitest-android-critical",/d' \ -e '/.*"test-app-sentry",/d' \ + -e '/.*"test-app-size",/d' \ -e '/.*"sentry-samples-android",/d' \ build.gradle.kts From 5d8a3bdfb1298dc9673b2677440f1516b3a1ed77 Mon Sep 17 00:00:00 2001 From: Roman Zavarnitsyn Date: Mon, 3 Nov 2025 20:25:06 +0100 Subject: [PATCH 06/10] disable proguard mapping upload --- sentry-android-integration-tests/test-app-size/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sentry-android-integration-tests/test-app-size/build.gradle.kts b/sentry-android-integration-tests/test-app-size/build.gradle.kts index 0af2b829a3f..e8c5f695e37 100644 --- a/sentry-android-integration-tests/test-app-size/build.gradle.kts +++ b/sentry-android-integration-tests/test-app-size/build.gradle.kts @@ -44,7 +44,7 @@ sentry { org.set("sentry-sdks") projectName.set("sentry-android") authToken.set(System.getenv("SENTRY_AUTH_TOKEN")) - autoUploadProguardMapping.set(true) + includeProguardMapping.set(false) tracingInstrumentation.enabled.set(false) includeDependenciesReport.set(false) telemetry.set(false) From d794abea7bad6a18389154259afd0ea3ee6b1bc0 Mon Sep 17 00:00:00 2001 From: Roman Zavarnitsyn Date: Mon, 3 Nov 2025 20:35:54 +0100 Subject: [PATCH 07/10] Add integrations --- .../test-app-size/build.gradle.kts | 8 ++++++++ .../test-app-size/proguard-rules.pro | 14 +++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/sentry-android-integration-tests/test-app-size/build.gradle.kts b/sentry-android-integration-tests/test-app-size/build.gradle.kts index e8c5f695e37..ebbbb0dd8ec 100644 --- a/sentry-android-integration-tests/test-app-size/build.gradle.kts +++ b/sentry-android-integration-tests/test-app-size/build.gradle.kts @@ -40,6 +40,14 @@ configurations.configureEach { exclude(group = "androidx.lifecycle") } +dependencies { + implementation(projects.sentryAndroidTimber) + implementation(projects.sentryAndroidSqlite) + implementation(projects.sentryOkhttp) + implementation(projects.sentryCompose) + implementation(projects.sentryAndroidFragment) +} + sentry { org.set("sentry-sdks") projectName.set("sentry-android") diff --git a/sentry-android-integration-tests/test-app-size/proguard-rules.pro b/sentry-android-integration-tests/test-app-size/proguard-rules.pro index f44c6dadf24..531ba14a391 100644 --- a/sentry-android-integration-tests/test-app-size/proguard-rules.pro +++ b/sentry-android-integration-tests/test-app-size/proguard-rules.pro @@ -1,4 +1,4 @@ -# Rules to not warn about missing classes for Kotlin stdlib. We use it, but we only want to measure the SDK size overhead, so we keep the test app lean +# Rules to not warn about missing classes. We use them, but we only want to measure the SDK size overhead and not run the app, so we keep it lean # This is generated automatically by the Android Gradle plugin. -dontwarn kotlin.Lazy -dontwarn kotlin.LazyKt @@ -37,3 +37,15 @@ -dontwarn kotlin.text.Charsets -dontwarn kotlin.text.Regex -dontwarn kotlin.text.StringsKt +-dontwarn timber.log.Timber$Tree +-dontwarn kotlin.Deprecated +-dontwarn kotlin.Function +-dontwarn kotlin.jvm.JvmStatic +-dontwarn kotlin.jvm.functions.Function2 +-dontwarn kotlin.jvm.functions.Function3 +-dontwarn kotlin.jvm.internal.Ref$BooleanRef +-dontwarn kotlin.math.MathKt +-dontwarn okhttp3.EventListener +-dontwarn okhttp3.Interceptor +# Assume all classes are used to not strip them out, e.g. integrations like Compose or Sqlite +-keep class io.sentry.** \ No newline at end of file From aa9791ef8ab542f346ef9862c8d2505959855fbf Mon Sep 17 00:00:00 2001 From: Roman Zavarnitsyn Date: Mon, 3 Nov 2025 20:36:35 +0100 Subject: [PATCH 08/10] newline --- .../test-app-size/proguard-rules.pro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sentry-android-integration-tests/test-app-size/proguard-rules.pro b/sentry-android-integration-tests/test-app-size/proguard-rules.pro index 531ba14a391..4db0031ab00 100644 --- a/sentry-android-integration-tests/test-app-size/proguard-rules.pro +++ b/sentry-android-integration-tests/test-app-size/proguard-rules.pro @@ -48,4 +48,4 @@ -dontwarn okhttp3.EventListener -dontwarn okhttp3.Interceptor # Assume all classes are used to not strip them out, e.g. integrations like Compose or Sqlite --keep class io.sentry.** \ No newline at end of file +-keep class io.sentry.** From cbc3217da7527754680fb8e2e3dd3c757af62cdf Mon Sep 17 00:00:00 2001 From: Roman Zavarnitsyn Date: Mon, 3 Nov 2025 20:42:15 +0100 Subject: [PATCH 09/10] Rename job --- .github/workflows/integration-tests-size.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests-size.yml b/.github/workflows/integration-tests-size.yml index 3d9faad3d70..44b705cd5c1 100644 --- a/.github/workflows/integration-tests-size.yml +++ b/.github/workflows/integration-tests-size.yml @@ -12,7 +12,7 @@ concurrency: jobs: build: - name: Build + name: Build and Analyze SDK Size runs-on: ubuntu-latest env: From 646847fb7967e6e9b1237ba3c3b38a6879f07501 Mon Sep 17 00:00:00 2001 From: Roman Zavarnitsyn Date: Tue, 4 Nov 2025 23:31:22 +0100 Subject: [PATCH 10/10] Only upload for size analysis if auth token is present --- sentry-android-integration-tests/test-app-size/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sentry-android-integration-tests/test-app-size/build.gradle.kts b/sentry-android-integration-tests/test-app-size/build.gradle.kts index ebbbb0dd8ec..c27cb0e08cf 100644 --- a/sentry-android-integration-tests/test-app-size/build.gradle.kts +++ b/sentry-android-integration-tests/test-app-size/build.gradle.kts @@ -56,5 +56,5 @@ sentry { tracingInstrumentation.enabled.set(false) includeDependenciesReport.set(false) telemetry.set(false) - sizeAnalysis.enabled.set(true) + sizeAnalysis.enabled.set(providers.environmentVariable("SENTRY_AUTH_TOKEN").isPresent) }