Skip to content

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

Draft
0xadam-brown wants to merge 5 commits into
mainfrom
feat/android-17-api-bump
Draft

build(android): Bump compileSdk and targetSdk to API 37 (Android 17)#5675
0xadam-brown wants to merge 5 commits into
mainfrom
feat/android-17-api-bump

Conversation

@0xadam-brown

@0xadam-brown 0xadam-brown commented Jul 2, 2026

Copy link
Copy Markdown
Member

Summary

  • Bump default AGP fallback to 9.2.1 and refresh agp-matrix for Android 17 toolchain
  • Bump compileSdk and targetSdk to 37 (Android 17)
  • Resolve AGP 9.2 lint findings (autofill, DiscouragedPrivateApi, shrinkResources)
  • Pin Robolectric tests that don't yet support compileSdk 37 to API 35
  • Update Sauce device-farm configs to Android 17
  • CHANGELOG entry under Features

Test plan

  • ./gradlew check green locally (verified in checklist trial)
  • ./gradlew spotlessApply apiDump — review .api diffs (none unexpected in trial)
  • Build, agp-matrix, integration-tests-ui-critical, integration-tests-ui, integration-tests-benchmarks, system-tests-backend all green
  • Manual: compat-framework change IDs on API 37 emulator (Pixel_9a)
  • Manual: R8 minified sample release — init, capture, symbolication

Made with Cursor

@sentry

sentry Bot commented Jul 2, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

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

⚙️ sentry-android Build Distribution Settings

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 304.94 ms 357.67 ms 52.73 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

Previous results on branch: feat/android-17-api-bump

Startup times

Revision Plain With Sentry Diff
1df5683 304.71 ms 325.20 ms 20.49 ms
7dbcec5 313.42 ms 369.44 ms 56.02 ms

App size

Revision Plain With Sentry Diff
1df5683 0 B 0 B 0 B
7dbcec5 0 B 0 B 0 B

Comment thread build.gradle.kts
pluginManager.withPlugin("com.android.library") {
extensions.configure<LibraryExtension> {
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this?

@0xadam-brown 0xadam-brown changed the title [Do Not Review] build(android): Bump compileSdk and targetSdk to API 37 (Android 17) build(android): Bump compileSdk and targetSdk to API 37 (Android 17) Jul 3, 2026
0xadam-brown and others added 5 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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
@runningcode runningcode force-pushed the feat/android-17-api-bump branch from b9cb3ab to cf0c9c4 Compare July 16, 2026 08:58
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.

2 participants