Skip to content

[Do Not Review] 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

[Do Not Review] 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

0xadam-brown and others added 2 commits July 2, 2026 06:37
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>
@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.47.0 (1) release

⚙️ sentry-android Build Distribution Settings

0xadam-brown and others added 2 commits July 2, 2026 12:03
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>
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 313.42 ms 369.44 ms 56.02 ms
Size 0 B 0 B 0 B

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
abfcc92 304.04 ms 370.33 ms 66.29 ms
4e3e79d 365.83 ms 477.62 ms 111.79 ms
d8912da 329.94 ms 389.68 ms 59.74 ms
d15471f 294.13 ms 399.49 ms 105.36 ms
abf451a 332.82 ms 403.67 ms 70.85 ms
604a261 380.65 ms 451.27 ms 70.62 ms
806307f 357.85 ms 424.64 ms 66.79 ms
22f4345 307.87 ms 354.51 ms 46.64 ms
d217708 375.27 ms 415.68 ms 40.41 ms
c3ee041 310.64 ms 361.90 ms 51.26 ms

App size

Revision Plain With Sentry Diff
abfcc92 1.58 MiB 2.13 MiB 557.31 KiB
4e3e79d 0 B 0 B 0 B
d8912da 0 B 0 B 0 B
d15471f 1.58 MiB 2.13 MiB 559.54 KiB
abf451a 1.58 MiB 2.20 MiB 635.29 KiB
604a261 1.58 MiB 2.10 MiB 533.42 KiB
806307f 1.58 MiB 2.10 MiB 533.42 KiB
22f4345 1.58 MiB 2.29 MiB 719.83 KiB
d217708 1.58 MiB 2.10 MiB 532.97 KiB
c3ee041 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

App size

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

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>
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.

1 participant