File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.library'
2
2
apply plugin : ' kotlin-android'
3
3
4
+ def defaultKotlinVersion = ' 1.3.21'
5
+ def safeExtGet (prop , fallback ) {
6
+ rootProject. ext. has(prop) ? rootProject. ext. get(prop) : fallback
7
+ }
8
+
4
9
buildscript {
5
10
repositories {
6
11
jcenter()
7
12
maven { url ' https://maven.google.com' }
8
13
}
9
14
dependencies {
10
15
classpath ' com.android.tools.build:gradle:3.1.4'
11
- classpath ' org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.21 '
16
+ classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:${ safeExtGet("kotlinVersion", defaultKotlinVersion) } "
12
17
}
13
18
}
14
19
15
- def safeExtGet (prop , fallback ) {
16
- rootProject. ext. has(prop) ? rootProject. ext. get(prop) : fallback
17
- }
18
-
19
20
android {
20
21
compileSdkVersion safeExtGet(' compileSdkVersion' , 26 )
21
22
buildToolsVersion safeExtGet(' buildToolsVersion' , ' 26.0.3' )
@@ -41,5 +42,5 @@ dependencies {
41
42
api ' com.segment.analytics.android:analytics:4.+'
42
43
43
44
api ' com.facebook.react:react-native:+'
44
- api ' org.jetbrains.kotlin:kotlin-stdlib:1.3.21 '
45
+ api " org.jetbrains.kotlin:kotlin-stdlib:${ safeExtGet("kotlinVersion", defaultKotlinVersion) } "
45
46
}
You can’t perform that action at this time.
0 commit comments