Skip to content

Commit c35d621

Browse files
authored
feat(android): update build.gradle w/ namespace (#689)
* Update build.gradle * fix typo in build.gradle
1 parent df7ffe2 commit c35d621

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

android/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ if (isNewArchitectureEnabled()) {
2424

2525

2626
android {
27+
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
28+
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
29+
namespace "com.reactnativedocumentpicker"
30+
}
2731
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
2832

2933
// Used to override the NDK path/version on internal CI or by allowing

0 commit comments

Comments
 (0)