mirror of
https://github.com/zoriya/react-native-background-downloader.git
synced 2026-06-01 01:28:07 +00:00
android: use namespace based on gradle version
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user