Skip to content

Commit e6b9aa0

Browse files
authored
chore(Android): remove unnecesary check in Android build code (#2608)
## Description Since 0.72 RN uses AGP 7.4.x (see #2603) and we do not support any older versions. ## Changes Removed the check and merged both `buildFeature`s ## Test code and steps to reproduce Passing Android build ## Checklist - [x] Ensured that CI passes
1 parent fbc9a00 commit e6b9aa0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

android/build.gradle

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,6 @@ android {
101101
compileSdkVersion safeExtGet('compileSdkVersion', rnsDefaultCompileSdkVersion)
102102
namespace "com.swmansion.rnscreens"
103103

104-
def agpVersion = Version.ANDROID_GRADLE_PLUGIN_VERSION
105-
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
106-
buildFeatures {
107-
buildConfig true
108-
}
109-
}
110-
111104
// Used to override the NDK path/version on internal CI or by allowing
112105
// users to customize the NDK path/version from their root project (e.g. for M1 support)
113106
if (rootProject.hasProperty("ndkPath")) {
@@ -135,6 +128,7 @@ android {
135128
}
136129
buildFeatures {
137130
prefab true
131+
buildConfig true
138132
}
139133
externalNativeBuild {
140134
cmake {

0 commit comments

Comments
 (0)