Skip to content

Commit

Permalink
feat: add namespace to build.gradle for AGP > 7 (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
stetbern authored Apr 30, 2024
1 parent 234e7f8 commit 3135697
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

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

compileSdkVersion 31
defaultConfig {
minSdkVersion 24
Expand Down

0 comments on commit 3135697

Please sign in to comment.