Skip to content

Commit

Permalink
fix(android): 馃悰 only set namespace if gradle 7 or newer is used (#2149)
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan-dutoit committed Jun 20, 2023
1 parent ca1d199 commit e117851
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion android/build.gradle
Expand Up @@ -8,9 +8,13 @@ if (isNewArchitectureEnabled()) {
}

android {
namespace = "com.imagepicker"
compileSdkVersion 33

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

// Used to override the NDK path/version on internal CI or by allowing
// users to customize the NDK path/version from their root project (e.g. for M1 support)
if (rootProject.hasProperty("ndkPath")) {
Expand Down

0 comments on commit e117851

Please sign in to comment.