Skip to content

Commit 7b29eca

Browse files
fix: add namespace into build.gradle.android for RN ^0.73(it depends on AGP version)
1 parent 755c5a4 commit 7b29eca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

android/build.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ def getExtOrIntegerDefault(name) {
3737
}
3838

3939
android {
40+
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
41+
// Check AGP version for backward compatibility reasons
42+
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
43+
namespace = "com.candlefinance.fasterimage"
44+
}
4045
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
4146

4247
defaultConfig {

0 commit comments

Comments
 (0)