From d42ef39686c5a91af1c9d6e6584f7a642175320c Mon Sep 17 00:00:00 2001 From: Mathieu Acthernoene Date: Mon, 3 Jul 2023 10:39:23 +0200 Subject: [PATCH] Use namespace conditionally --- android/build.gradle | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 4dc0c36..0d4decf 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -22,9 +22,12 @@ if (isNewArchitectureEnabled()) { } android { - namespace = "com.zoontek.rnlocalize" buildToolsVersion safeExtGet("buildToolsVersion", "33.0.0") compileSdkVersion safeExtGet("compileSdkVersion", 33) + + if (project.android.hasProperty("namespace")) { + namespace "com.zoontek.rnlocalize" + } defaultConfig { buildConfigField("boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()) minSdkVersion safeExtGet("minSdkVersion", 21) diff --git a/package.json b/package.json index b50b43b..5c5ac3c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-localize", - "version": "3.0.1", + "version": "3.0.2", "license": "MIT", "description": "A toolbox for your React Native app localization.", "author": "Mathieu Acthernoene ",