android: use namespace based on gradle version

This commit is contained in:
Kesha Antonov
2023-11-08 05:35:46 +03:00
parent 9dea0fb95a
commit ffa8649a93
+3 -1
View File
@@ -7,7 +7,9 @@ def safeExtGet(prop, fallback) {
}
android {
if (project.android.hasProperty("namespace")) {
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
// Check AGP version for backward compatibility reasons (for RN < 0.71)
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
namespace "com.eko"
}