Skip to content

Commit 96dc28d

Browse files
committed
feat(android): bump minSdkVersion to 24
BREAKING CHANGE: Minimum Android SDK version is now 24
1 parent 9fe8bbb commit 96dc28d

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

android/dependencies.gradle

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,6 @@ def getDefaultGradlePluginVersion = { int reactNativeVersion ->
2121
}
2222
}
2323

24-
// TODO: Bump `minSdkVersion` to 24 in 4.0
25-
def getDefaultMinSdkVersion = { int reactNativeVersion ->
26-
if (reactNativeVersion >= v(0, 76, 0)) {
27-
return 24
28-
} else {
29-
return 23
30-
}
31-
}
32-
3324
def getKotlinVersion = { File baseDir ->
3425
def fallbackVersion = "1.7.21"
3526

@@ -49,8 +40,7 @@ ext {
4940
reactNativeVersion = getPackageVersionNumber("react-native", rootDir)
5041

5142
compileSdkVersion = rootProject.findProperty("react.compileSdkVersion") ?: 34
52-
minSdkVersion = rootProject.findProperty("react.minSdkVersion")
53-
?: getDefaultMinSdkVersion(reactNativeVersion)
43+
minSdkVersion = rootProject.findProperty("react.minSdkVersion") ?: 24
5444
targetSdkVersion = rootProject.findProperty("react.targetSdkVersion") ?: 33
5545

5646
autodetectReactNativeVersion = reactNativeVersion == 0 || reactNativeVersion >= v(0, 71, 0)

0 commit comments

Comments
 (0)