Skip to content

Commit

Permalink
fix(android): add required namespace in build.gradle (#991)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhernandez authored Jul 19, 2023
1 parent e003011 commit ce19249
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 @@ -86,6 +86,11 @@ if (isNewArchitectureEnabled()) {
}

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

compileSdkVersion safeExtGet('compileSdkVersion', 32)
// Used to override the NDK path/version by allowing users to customize
// the NDK path/version from their root project (e.g. for M1 support)
Expand Down

0 comments on commit ce19249

Please sign in to comment.