Skip to content

Commit

Permalink
fix(android): declare namespace / buildconfig options for gradle plug…
Browse files Browse the repository at this point in the history
…in 8+ compatibility (#329)
  • Loading branch information
ivanignatiev authored Nov 4, 2023
1 parent 336707e commit 834fd47
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ def getExtOrIntegerDefault(name) {

android {
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')

def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
namespace "com.RNAppleAuthentication"
buildFeatures.buildConfig true
}

defaultConfig {
minSdkVersion getExtOrIntegerDefault('minSdkVersion')
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
Expand Down

0 comments on commit 834fd47

Please sign in to comment.