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 98ba958 commit 85e31b9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
31 changes: 19 additions & 12 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
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()
maven { url 'https://www.jitpack.io' }
}

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 28
buildToolsVersion '28.0.3'
compileSdkVersion safeExtGet('compileSdkVersion', 28)
buildToolsVersion safeExtGet('buildToolsVersion', '28.0.3')

defaultConfig {
minSdkVersion 16
targetSdkVersion 28
minSdkVersion safeExtGet('minSdkVersion', 16)
targetSdkVersion safeExtGet('targetSdkVersion', 28)
versionCode 1
versionName "1.0"
}
Expand All @@ -30,8 +37,8 @@ android {

repositories {
google()
maven { url "https://maven.google.com" }
mavenCentral()
maven { url "https://maven.google.com" }
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

{
"name": "react-native-popover-menu",
"version": "1.0.1",
"version": "1.0.2",
"description": "React Native: Native Popover Menu",
"main": "js/RNPopoverMenu.js",
"scripts": {
Expand Down

0 comments on commit 85e31b9

Please sign in to comment.