Skip to content

Commit f78c267

Browse files
committed
Use namespace conditionally
1 parent 1cd3714 commit f78c267

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

android/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ if (isNewArchitectureEnabled()) {
5959
}
6060

6161
android {
62-
namespace = "com.zoontek.rnpermissions"
63-
6462
// Used to override the NDK path/version on internal CI or by allowing
6563
// users to customize the NDK path/version from their root project (e.g. for M1 support)
6664
if (rootProject.hasProperty("ndkPath")) {
@@ -73,6 +71,9 @@ android {
7371
compileSdkVersion safeExtGet("compileSdkVersion", 33)
7472
buildToolsVersion safeExtGet("buildToolsVersion", "33.0.0")
7573

74+
if (project.android.hasProperty("namespace")) {
75+
namespace "com.zoontek.rnpermissions"
76+
}
7677
defaultConfig {
7778
minSdkVersion safeExtGet("minSdkVersion", 21)
7879
targetSdkVersion safeExtGet("targetSdkVersion", 33)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-permissions",
3-
"version": "3.8.1",
3+
"version": "3.8.2",
44
"license": "MIT",
55
"description": "An unified permissions API for React Native on iOS, Android and Windows",
66
"author": "Mathieu Acthernoene <[email protected]>",

0 commit comments

Comments
 (0)