Commit 174369d571be85df45946b85d8d5ca4bd59eb5be
1 parent
680e331c
调整kt版本
Showing
2 changed files
with
6 additions
and
6 deletions
lib/android/build.gradle
1 | 1 | apply plugin: 'com.android.library' |
2 | 2 | apply plugin: 'kotlin-android' |
3 | 3 | |
4 | -def getExt(prop, fallback) { | |
5 | - rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback | |
6 | -} | |
7 | 4 | |
8 | 5 | buildscript { |
6 | + ext.getExt = {prop, fallback -> | |
7 | + rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback | |
8 | + } | |
9 | 9 | repositories { |
10 | 10 | mavenCentral() |
11 | 11 | } |
12 | 12 | |
13 | 13 | dependencies { |
14 | - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin: ${getExt('kotlinVersion', '1.6.21')}" | |
14 | + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${getExt('kotlinVersion', '1.6.21')}" | |
15 | 15 | } |
16 | 16 | } |
17 | 17 | |
... | ... | @@ -30,7 +30,7 @@ android { |
30 | 30 | } |
31 | 31 | |
32 | 32 | dependencies { |
33 | - api 'com.facebook.react:react-native:+' | |
33 | + implementation 'com.facebook.react:react-native:+' | |
34 | 34 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getExt('kotlinVersion', '1.6.21')}" |
35 | 35 | implementation 'com.amap.api:3dmap:9.5.0' |
36 | 36 | implementation 'com.amap.api:search:9.4.5' | ... | ... |