diff --git a/lib/android/build.gradle b/lib/android/build.gradle index 120ec48..a8892a7 100644 --- a/lib/android/build.gradle +++ b/lib/android/build.gradle @@ -6,24 +6,22 @@ def getExt(prop, fallback) { } buildscript { - ext.kotlin_version = '1.7.20' - repositories { mavenCentral() } dependencies { - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin: ${getExt('kotlinVersion', '1.6.21')}" } } android { - compileSdkVersion getExt('compileSdkVersion', 30) - buildToolsVersion getExt('buildToolsVersion', '30.0.0') + compileSdkVersion getExt('compileSdkVersion', 29) + buildToolsVersion getExt('buildToolsVersion', '29.0.3') defaultConfig { minSdkVersion getExt('minSdkVersion', 21) - targetSdkVersion getExt('targetSdkVersion', 30) + targetSdkVersion getExt('targetSdkVersion', 29) } kotlinOptions { @@ -33,7 +31,7 @@ android { dependencies { api 'com.facebook.react:react-native:+' - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getExt('kotlinVersion', '1.6.21')}" implementation 'com.amap.api:3dmap:9.5.0' implementation 'com.amap.api:search:9.4.5' } diff --git a/package.json b/package.json index e00d6a0..8740148 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cqfw/react-native-amap3d", - "version": "0.2.4", + "version": "0.2.5", "description": "react-native 高德地图组件,支持 Android + iOS", "author": "feewee", "license": "MIT",