Commit 174369d571be85df45946b85d8d5ca4bd59eb5be
1 parent
680e331c
调整kt版本
Showing
2 changed files
with
6 additions
and
6 deletions
lib/android/build.gradle
1 | apply plugin: 'com.android.library' | 1 | apply plugin: 'com.android.library' |
2 | apply plugin: 'kotlin-android' | 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 | buildscript { | 5 | buildscript { |
6 | + ext.getExt = {prop, fallback -> | ||
7 | + rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback | ||
8 | + } | ||
9 | repositories { | 9 | repositories { |
10 | mavenCentral() | 10 | mavenCentral() |
11 | } | 11 | } |
12 | 12 | ||
13 | dependencies { | 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,7 +30,7 @@ android { | ||
30 | } | 30 | } |
31 | 31 | ||
32 | dependencies { | 32 | dependencies { |
33 | - api 'com.facebook.react:react-native:+' | 33 | + implementation 'com.facebook.react:react-native:+' |
34 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getExt('kotlinVersion', '1.6.21')}" | 34 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getExt('kotlinVersion', '1.6.21')}" |
35 | implementation 'com.amap.api:3dmap:9.5.0' | 35 | implementation 'com.amap.api:3dmap:9.5.0' |
36 | implementation 'com.amap.api:search:9.4.5' | 36 | implementation 'com.amap.api:search:9.4.5' |
package.json
1 | { | 1 | { |
2 | "name": "@cqfw/react-native-amap3d", | 2 | "name": "@cqfw/react-native-amap3d", |
3 | - "version": "0.2.5", | 3 | + "version": "0.3.0", |
4 | "description": "react-native 高德地图组件,支持 Android + iOS", | 4 | "description": "react-native 高德地图组件,支持 Android + iOS", |
5 | "author": "feewee", | 5 | "author": "feewee", |
6 | "license": "MIT", | 6 | "license": "MIT", |