build.gradle
951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
def getExt(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin: ${getExt('kotlinVersion', '1.6.21')}"
}
}
android {
compileSdkVersion getExt('compileSdkVersion', 29)
buildToolsVersion getExt('buildToolsVersion', '29.0.3')
defaultConfig {
minSdkVersion getExt('minSdkVersion', 21)
targetSdkVersion getExt('targetSdkVersion', 29)
}
kotlinOptions {
jvmTarget = getExt('kotlinJvmTarget', '11')
}
}
dependencies {
api 'com.facebook.react:react-native:+'
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'
}