Skip to content

Commit

Permalink
fix(android): add namespace if gradle version >= 7
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Dec 7, 2023
1 parent 3ebbc09 commit ceb2e8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ def reactNativeArchitectures() {
}

android {
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
namespace "com.rnwhisper"
}
ndkVersion getExtOrDefault("ndkVersion")
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")

Expand Down

0 comments on commit ceb2e8b

Please sign in to comment.