Skip to content

Commit

Permalink
fix: add namespace into build.gradle.android for RN ^0.73(it depends …
Browse files Browse the repository at this point in the history
…on AGP version)
  • Loading branch information
Tchaikovsky1114 committed Jun 27, 2024
1 parent 755c5a4 commit 7b29eca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ def getExtOrIntegerDefault(name) {
}

android {
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
// Check AGP version for backward compatibility reasons
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
namespace = "com.candlefinance.fasterimage"
}
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")

defaultConfig {
Expand Down

0 comments on commit 7b29eca

Please sign in to comment.