diff --git a/android/build.gradle b/android/build.gradle index 4d41e8c..637967b 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,25 +1,31 @@ +apply plugin: 'com.android.library' + +def safeExtGet(prop, fallback) { + rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback +} buildscript { - repositories { - google() - maven { url "https://maven.google.com" } - jcenter() - } + if (project == rootProject) { + repositories { + google() + jcenter() + } - dependencies { - classpath 'com.android.tools.build:gradle:3.2.1' + dependencies { + classpath("com.android.tools.build:gradle:3.5.3") + } } } apply plugin: 'com.android.library' android { - compileSdkVersion 27 - buildToolsVersion '28.0.3' + compileSdkVersion safeExtGet('compileSdkVersion', 28) + buildToolsVersion safeExtGet('buildToolsVersion', '28.0.3') defaultConfig { - minSdkVersion 16 - targetSdkVersion 27 + minSdkVersion safeExtGet('minSdkVersion', 16) + targetSdkVersion safeExtGet('targetSdkVersion', 28) versionCode 1 versionName "1.0" } @@ -31,7 +37,6 @@ android { repositories { google() mavenCentral() - maven { url "https://maven.google.com" } maven { url 'https://jitpack.io' } } diff --git a/package.json b/package.json index c038f09..78cc99a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-bottom-action-sheet", - "version": "1.0.3", + "version": "1.0.4", "description": "React Native: Native Bottom Action Sheet", "main": "js/index.js", "homepage": "https://github.com/prscX/react-native-bottom-action-sheet.git",