Skip to content

Bump compileSdk and buildTools to 37#57284

Closed
alanjhughes wants to merge 1 commit into
mainfrom
alanhughes/bump-android-37
Closed

Bump compileSdk and buildTools to 37#57284
alanjhughes wants to merge 1 commit into
mainfrom
alanhughes/bump-android-37

Conversation

@alanjhughes

Copy link
Copy Markdown
Collaborator

Summary:

Bump the compileSdk and buildTools to 37

Changelog:

[Android][Added] - Update compileSdk and buildTools to 37

Test Plan:

RN tester builds

@alanjhughes
alanjhughes requested a review from cortinico June 19, 2026 10:12
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 19, 2026
@facebook-github-tools facebook-github-tools Bot added p: Expo Partner: Expo Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Jun 19, 2026
@meta-codesync

meta-codesync Bot commented Jun 19, 2026

Copy link
Copy Markdown

@cortinico has imported this pull request. If you are a Meta employee, you can view this in D109144182.

@cortinico

Copy link
Copy Markdown
Contributor

Can you also bump the template to compileSdk 37?

It seems like this is needed:

       1.  Dependency 'com.facebook.react:react-android:1000.0.0-eac195b4e' requires libraries and applications that
           depend on it to compile against version 37 or later of the
           Android APIs.
     
           :app is currently compiled against android-36.
     
           Recommended action: Update this project to use a newer compileSdk
           of 37.
     
           Note that updating a library or application's compileSdk (which
           allows newer APIs to be used) can be done separately from updating
           targetSdk (which opts the app in to new runtime behavior) and
           minSdk (which determines which devices the app can be installed
           on).

@cortinico

Copy link
Copy Markdown
Contributor

@alanjhughes

alanjhughes commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator Author

@cortinico:

@meta-codesync

meta-codesync Bot commented Jun 19, 2026

Copy link
Copy Markdown

@cortinico merged this pull request in 3e8dfb1.

leotm added a commit to leotm/react-native-template-new-architecture that referenced this pull request Jul 17, 2026
…1971)

- 0.87.0-nightly-20260519-58cd1bf58 to 0.87.0-nightly-20260705-e04ff69ab
- Revert "Fix RN 0.83 iOS CI hermes-engine pod checksum drift" f8261a5 and resolve conflict
- Bump CocoaPods incl React-Core-prebuilt and hermes-engine to 250829098.0.14
- Disable AGP 9 builtin Kotlin compiler and new DSL
  - fix: Failed to apply plugin 'org.jetbrains.kotlin.android'
    - Cannot add extension with name 'kotlin', as there is an extension already registered with that name
  - force AGP 9 to act like AGP 8 until libs migrated
  - add TODO to revert both flags and old KGP once ecosystem ready
  - ref: react/react-native#56222
- Enable AGP 9 R8 ProguardFile optimization
  - fix: `getDefaultProguardFile('proguard-android.txt')` is no longer supported since it includes `-dontoptimize`, which prevents R8 from performing many optimizations. Instead use `getDefaultProguardFile('proguard-android-optimize.txt)`, and if needed, temporarily use `-dontoptimize` in a custom keep rule file while fixing breakages.
  - improve: startup, memory, rendering and runtime perf, ANRs
- Bump compileSdk and buildTools to 37
  - Android 17 Beta, lvl 37, Cinnamon Bun
  - TODO: add upstream RN CI regression test for react/react-native#57284 (comment) i.e. -Pandroid.compileSdkVersion=36
    - since react/react-native#57289 now -Pandroid.compileSdkVersion=34
- Update jest snapshot
leotm added a commit to leotm/react-native-template-new-architecture that referenced this pull request Jul 17, 2026
…1971)

- 0.87.0-nightly-20260519-58cd1bf58 to 0.87.0-nightly-20260705-e04ff69ab
- Revert "Fix RN 0.83 iOS CI hermes-engine pod checksum drift" f8261a5 and resolve conflict
- Bump CocoaPods incl React-Core-prebuilt and hermes-engine to 250829098.0.14
- Disable AGP 9 builtin Kotlin compiler and new DSL
  - fix: Failed to apply plugin 'org.jetbrains.kotlin.android'
    - cannot add extension with name 'kotlin', as there is an extension already registered with that name
  - force AGP 9 to act like AGP 8 until libs migrated
  - add TODO to revert both flags and old KGP once ecosystem ready
  - ref: react/react-native#56222
- Enable AGP 9 R8 ProguardFile optimization
  - fix: `getDefaultProguardFile('proguard-android.txt')` no longer supported since includes `-dontoptimize` preventing R8 optimizations
    - use `getDefaultProguardFile('proguard-android-optimize.txt)` or temp `-dontoptimize` in a custom keep rule file while fixing breakages
  - improve: startup, memory, rendering and runtime perf, ANRs
- Bump compileSdk and buildTools to 37
  - Android 17 Beta, lvl 37, Cinnamon Bun
  - TODO: add upstream RN CI regression test for react/react-native#57284 (comment) i.e. -Pandroid.compileSdkVersion=36
    - since react/react-native#57289 now -Pandroid.compileSdkVersion=34
- Update jest snapshot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. p: Expo Partner: Expo Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants