Skip to content

Commit ce19249

Browse files
fix(android): add required namespace in build.gradle (#991)
See react-native-community/discussions-and-proposals#671
1 parent e003011 commit ce19249

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

android/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ if (isNewArchitectureEnabled()) {
8686
}
8787

8888
android {
89+
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
90+
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
91+
namespace "com.reactnativecommunity.asyncstorage"
92+
}
93+
8994
compileSdkVersion safeExtGet('compileSdkVersion', 32)
9095
// Used to override the NDK path/version by allowing users to customize
9196
// the NDK path/version from their root project (e.g. for M1 support)

0 commit comments

Comments
 (0)