Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions packages/react-native/ReactAndroid/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,15 @@ android {
defaultConfig {
minSdk = libs.versions.minSdk.get().toInt()

aarMetadata {
// RN's public ABI exposes no android API newer than 34, and the source is written to
// compile against SDK 34 (see util/AndroidVersion.kt). compileSdk is 36 only to build
// against the latest platform — it is not an API requirement. Without this, AGP 9
// defaults minCompileSdk to compileSdk (36), needlessly forcing every consuming
// library/app to compileSdk 36.
minCompileSdk = 34
}

consumerProguardFiles("proguard-rules.pro")

buildConfigField("boolean", "IS_INTERNAL_BUILD", "false")
Expand Down
Loading