Skip to content

Commit 834fd47

Browse files
authored
fix(android): declare namespace / buildconfig options for gradle plugin 8+ compatibility (#329)
1 parent 336707e commit 834fd47

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

android/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ def getExtOrIntegerDefault(name) {
2727

2828
android {
2929
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
30+
31+
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
32+
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
33+
namespace "com.RNAppleAuthentication"
34+
buildFeatures.buildConfig true
35+
}
36+
3037
defaultConfig {
3138
minSdkVersion getExtOrIntegerDefault('minSdkVersion')
3239
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')

0 commit comments

Comments
 (0)