Skip to content

Commit 6c6cd32

Browse files
authored
chore: add support for 73 (#495)
1 parent 013a0d8 commit 6c6cd32

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

android/build.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ apply plugin: 'com.android.library'
1111
android {
1212
compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
1313

14+
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
15+
// Check the AGP version, add namespace if the AGP version is above 7.
16+
// Once we have fully moved on, we can remove it from the AndroidManifest.xml of the package
17+
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
18+
namespace "fr.greweb.reactnativeviewshot"
19+
}
20+
1421
defaultConfig {
1522
minSdkVersion safeExtGet('minSdkVersion', 16)
1623
targetSdkVersion safeExtGet('targetSdkVersion', DEFAULT_TARGET_SDK_VERSION)
@@ -25,4 +32,4 @@ repositories{
2532

2633
dependencies {
2734
implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
28-
}
35+
}

0 commit comments

Comments
 (0)