File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change 1+ def safeExtGet (prop , fallback ) {
2+ rootProject. ext. has(prop) ? rootProject. ext. get(prop) : fallback
3+ }
14
25buildscript {
36 repositories {
7+ maven {
8+ url ' https://maven.google.com/'
9+ name ' Google'
10+ }
411 jcenter()
512 }
613
714 dependencies {
8- classpath ' com.android.tools.build:gradle:2. 3.2'
15+ classpath ' com.android.tools.build:gradle:3.2.1 '
916 }
1017}
1118
1219apply plugin : ' com.android.library'
1320
1421android {
15- compileSdkVersion 27
16- buildToolsVersion ' 28.0.2'
22+ compileSdkVersion safeExtGet( ' compileSdkVersion ' , 27 )
23+ buildToolsVersion safeExtGet( ' buildToolsVersion ' , ' 28.0.2' )
1724
1825 defaultConfig {
19- minSdkVersion 16
20- targetSdkVersion 26
26+ minSdkVersion safeExtGet( ' minSdkVersion ' , 16 )
27+ targetSdkVersion safeExtGet( ' targetSdkVersion ' , 26 )
2128 versionCode 1
2229 versionName " 1.0"
2330 manifestPlaceholders = [
@@ -34,6 +41,6 @@ repositories {
3441}
3542
3643dependencies {
37- compile ' com.facebook.react:react-native:+ '
38- compile " net.openid:appauth:0.7.1"
44+ compile ' com.facebook.react:react-native:' + safeExtGet( ' reactNativeVersion ' , ' + ' )
45+ compile ' net.openid:appauth:0.7.1'
3946}
You can’t perform that action at this time.
0 commit comments