Skip to content

Commit

Permalink
- Load Android Gradle Plugin conditionally
Browse files Browse the repository at this point in the history
- bumping version
  • Loading branch information
prscms committed Jan 8, 2020
1 parent 1cd2720 commit b22335f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
29 changes: 17 additions & 12 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -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"
}
Expand All @@ -31,7 +37,6 @@ android {
repositories {
google()
mavenCentral()
maven { url "https://maven.google.com" }
maven { url 'https://jitpack.io' }
}

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-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",
Expand Down

0 comments on commit b22335f

Please sign in to comment.