File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,13 @@ apply plugin: 'com.android.library'
1111android {
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
2633dependencies {
2734 implementation " com.facebook.react:react-native:${ safeExtGet('reactNativeVersion', '+')} "
28- }
35+ }
You can’t perform that action at this time.
0 commit comments