Skip to content

Commit ba10a23

Browse files
kkafarkligarski
authored andcommitted
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 (cherry picked from commit e6b9aa0)
1 parent 33648d4 commit ba10a23

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
@@ -61,13 +61,6 @@ android {
6161
compileSdkVersion safeExtGet('compileSdkVersion', rnsDefaultCompileSdkVersion)
6262
namespace "com.swmansion.rnscreens"
6363

64-
def agpVersion = Version.ANDROID_GRADLE_PLUGIN_VERSION
65-
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
66-
buildFeatures {
67-
buildConfig true
68-
}
69-
}
70-
7164
// Used to override the NDK path/version on internal CI or by allowing
7265
// users to customize the NDK path/version from their root project (e.g. for M1 support)
7366
if (rootProject.hasProperty("ndkPath")) {
@@ -95,6 +88,7 @@ android {
9588
}
9689
buildFeatures {
9790
prefab true
91+
buildConfig true
9892
}
9993
externalNativeBuild {
10094
cmake {

0 commit comments

Comments
 (0)