Skip to content

[Do Not Review] build(android): Bump compileSdk and targetSdk to API 37 (Android 17)#5675

Draft
0xadam-brown wants to merge 2 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 2 commits into
mainfrom
feat/android-17-api-bump

Conversation

@0xadam-brown

Copy link
Copy Markdown
Member

Summary

  • 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

Depends on: toolchain PR (chore/android-17-toolchain) merging first.

Test plan

  • ./gradlew check green locally (verified in checklist trial)
  • ./gradlew spotlessApply apiDump — review .api diffs (none unexpected in trial)
  • 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>
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor
Fails
🚫 Please consider adding a changelog entry for the next release.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

### Features

- Bump compileSdk and targetSdk to API 37 (Android 17) ([#5675](https://github.com/getsentry/sentry-java/pull/5675))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description or adding a skip-changelog label.

Generated by 🚫 dangerJS against 8dff513

@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.46.0 (1) release

⚙️ sentry-android Build Distribution Settings

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