Skip to content

Commit 9deab22

Browse files
authored
1 parent ff01d76 commit 9deab22

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

android/build.gradle

+7
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ def getExtOrDefault(name, fallback) {
1616
}
1717

1818
android {
19+
// Check AGP version for backward compatibility w/react-native versions still on gradle plugin 6
20+
// it looks like this causes issues between 7 and 8, so for the time being
21+
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
22+
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
23+
namespace = "kjd.reactnative.bluetooth"
24+
}
25+
1926
compileSdkVersion getExtOrDefault('compileSdkVersion', 34)
2027
buildToolsVersion getExtOrDefault('buildToolsVersion', "34.0.0")
2128

0 commit comments

Comments
 (0)