File tree 1 file changed +14
-7
lines changed
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
+ }
1
4
2
5
buildscript {
3
6
repositories {
7
+ maven {
8
+ url ' https://maven.google.com/'
9
+ name ' Google'
10
+ }
4
11
jcenter()
5
12
}
6
13
7
14
dependencies {
8
- classpath ' com.android.tools.build:gradle:2. 3.2'
15
+ classpath ' com.android.tools.build:gradle:3.2.1 '
9
16
}
10
17
}
11
18
12
19
apply plugin : ' com.android.library'
13
20
14
21
android {
15
- compileSdkVersion 27
16
- buildToolsVersion ' 28.0.2'
22
+ compileSdkVersion safeExtGet( ' compileSdkVersion ' , 27 )
23
+ buildToolsVersion safeExtGet( ' buildToolsVersion ' , ' 28.0.2' )
17
24
18
25
defaultConfig {
19
- minSdkVersion 16
20
- targetSdkVersion 26
26
+ minSdkVersion safeExtGet( ' minSdkVersion ' , 16 )
27
+ targetSdkVersion safeExtGet( ' targetSdkVersion ' , 26 )
21
28
versionCode 1
22
29
versionName " 1.0"
23
30
manifestPlaceholders = [
@@ -34,6 +41,6 @@ repositories {
34
41
}
35
42
36
43
dependencies {
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'
39
46
}
You can’t perform that action at this time.
0 commit comments