Skip to content

Commit

Permalink
Use namespace conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
zoontek committed Jul 3, 2023
1 parent 1cd3714 commit f78c267
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ if (isNewArchitectureEnabled()) {
}

android {
namespace = "com.zoontek.rnpermissions"

// Used to override the NDK path/version on internal CI or by allowing
// users to customize the NDK path/version from their root project (e.g. for M1 support)
if (rootProject.hasProperty("ndkPath")) {
Expand All @@ -73,6 +71,9 @@ android {
compileSdkVersion safeExtGet("compileSdkVersion", 33)
buildToolsVersion safeExtGet("buildToolsVersion", "33.0.0")

if (project.android.hasProperty("namespace")) {
namespace "com.zoontek.rnpermissions"
}
defaultConfig {
minSdkVersion safeExtGet("minSdkVersion", 21)
targetSdkVersion safeExtGet("targetSdkVersion", 33)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-permissions",
"version": "3.8.1",
"version": "3.8.2",
"license": "MIT",
"description": "An unified permissions API for React Native on iOS, Android and Windows",
"author": "Mathieu Acthernoene <zoontek@gmail.com>",
Expand Down

0 comments on commit f78c267

Please sign in to comment.