Skip to content

build(android): Bump compileSdk and targetSdk to API 37 (Android 17)#5768

Open
runningcode wants to merge 12 commits into
mainfrom
no/android-17-api-bump-core
Open

build(android): Bump compileSdk and targetSdk to API 37 (Android 17)#5768
runningcode wants to merge 12 commits into
mainfrom
no/android-17-api-bump-core

Conversation

@runningcode

Copy link
Copy Markdown
Contributor

Bumps compileSdk and targetSdk to API 37 (Android 17) and raises the minimum AGP to 9.1.1 for the Android 17 toolchain.

This is a slimmed-down version of feat/android-17-api-bump, excluding the CI, tooling, and distribution-module changes (build.yml, Sauce configs, AGENTS.md, root build.gradle.kts, and sentry-android-distribution/build.gradle.kts) so it carries only the core API bump.

🤖 Generated with Claude Code

0xadam-brown and others added 6 commits July 16, 2026 10:56
Bump the default AGP fallback to 9.2.1, refresh the AGP-compat matrix,
and add AGP 9 migration opt-outs until we adopt built-in Kotlin and the
new DSL. Includes AGP 9 compatibility fixes for replay and compose modules.

Co-authored-by: Cursor <cursoragent@cursor.com>
Officially support Android 17 by raising SDK levels, resolving AGP 9.2 lint
findings, pinning Robolectric tests that lag compileSdk 37, and updating Sauce
device-farm configs.

Co-authored-by: Cursor <cursoragent@cursor.com>
Add the PR link Danger requires in CHANGELOG.md and rerun screenshot
unit tests when Gradle cache omits the test-snapshots output directory.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use :test with --no-configuration-cache when snapshots are missing, and
skip the sentry-cli upload with a warning instead of failing the job.

Co-authored-by: Cursor <cursoragent@cursor.com>
Rerunning a single Android unit-test task after check is unreliable with
configuration cache. Warn and skip the sentry-cli upload instead of
failing the Build workflow when the directory is absent.

Co-authored-by: Cursor <cursoragent@cursor.com>
Restore build.yml, Sauce configs, AGENTS.md, root build.gradle.kts, and
the distribution module build script to main so this PR carries only the
core Android 17 API bump.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
runningcode and others added 4 commits July 16, 2026 11:29
Set jvmToolchain(8) for the navigation, replay, sqlite, and apache
http client modules so the Kotlin compile toolchain is fixed under the
Android 17 build, and import JvmTarget/KotlinVersion instead of using
fully-qualified references.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add jvmToolchain(8) to the fragment and timber modules and import
JvmTarget/KotlinVersion instead of using fully-qualified references,
matching the other Android modules.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sentry

sentry Bot commented Jul 16, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.49.0 (1) release

⚙️ sentry-android Build Distribution Settings

runningcode and others added 2 commits July 16, 2026 11:56
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The jvmToolchain(8) pin forced javac onto JDK 8, where Error Prone
(compiled for JDK 11) cannot load, breaking :sentry-apache-http-client-5
:compileJava and every Spring Boot sample build. Keep jvmTarget at 1.8
for Java 8 bytecode while letting the compiler run on the daemon JDK.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 316.29 ms 369.31 ms 53.02 ms
Size 0 B 0 B 0 B

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
b193867 319.59 ms 403.09 ms 83.50 ms
2124a46 319.19 ms 415.04 ms 95.85 ms
a5ab36f 316.83 ms 394.54 ms 77.71 ms
dba088c 320.59 ms 361.29 ms 40.70 ms
4e3e79d 328.10 ms 395.64 ms 67.54 ms
abfcc92 309.54 ms 380.32 ms 70.78 ms
539ca63 313.51 ms 355.43 ms 41.92 ms
3d205d0 352.15 ms 432.53 ms 80.38 ms
bb0ff41 312.86 ms 363.78 ms 50.92 ms
2195398 319.02 ms 342.38 ms 23.36 ms

App size

Revision Plain With Sentry Diff
b193867 1.58 MiB 2.19 MiB 620.00 KiB
2124a46 1.58 MiB 2.12 MiB 551.51 KiB
a5ab36f 1.58 MiB 2.12 MiB 555.26 KiB
dba088c 1.58 MiB 2.13 MiB 558.99 KiB
4e3e79d 0 B 0 B 0 B
abfcc92 1.58 MiB 2.13 MiB 557.31 KiB
539ca63 1.58 MiB 2.12 MiB 551.41 KiB
3d205d0 1.58 MiB 2.10 MiB 532.97 KiB
bb0ff41 0 B 0 B 0 B
2195398 0 B 0 B 0 B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants