Skip to content

Commit cd7e0b8

Browse files
Mod: add namespace build.gradle
1 parent 58d6de2 commit cd7e0b8

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

android/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ def getExtOrIntegerDefault(name) {
2626
}
2727

2828
android {
29+
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
30+
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
31+
namespace "com.reactnativeshadowview"
32+
}
33+
2934
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
3035
buildToolsVersion getExtOrDefault('buildToolsVersion')
3136
defaultConfig {
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.reactnativeshadowview">
3-
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
42
</manifest>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dimaportenko/react-native-shadow-view",
3-
"version": "0.1.5",
3+
"version": "0.1.6",
44
"description": "React Native library with Android native view which supports same shadows styles as iOS ",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

0 commit comments

Comments
 (0)