Skip to content

Commit

Permalink
chore: add support for 73 (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRogue76 authored Oct 19, 2023
1 parent 013a0d8 commit 6c6cd32
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ apply plugin: 'com.android.library'
android {
compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)

def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
// Check the AGP version, add namespace if the AGP version is above 7.
// Once we have fully moved on, we can remove it from the AndroidManifest.xml of the package
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
namespace "fr.greweb.reactnativeviewshot"
}

defaultConfig {
minSdkVersion safeExtGet('minSdkVersion', 16)
targetSdkVersion safeExtGet('targetSdkVersion', DEFAULT_TARGET_SDK_VERSION)
Expand All @@ -25,4 +32,4 @@ repositories{

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

0 comments on commit 6c6cd32

Please sign in to comment.