File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,17 @@ buildscript {
11
11
}
12
12
}
13
13
14
+ def safeExtGet (prop , fallback ) {
15
+ rootProject. ext. has(prop) ? rootProject. ext. get(prop) : fallback
16
+ }
17
+
14
18
android {
15
- compileSdkVersion 28
16
- buildToolsVersion " 28.0.3"
19
+ compileSdkVersion safeExtGet( ' compileSdkVersion ' , 28 )
20
+ buildToolsVersion safeExtGet( ' buildToolsVersion ' , " 28.0.3" )
17
21
18
22
defaultConfig {
19
- minSdkVersion 16
20
- targetSdkVersion 28
23
+ minSdkVersion safeExtGet( ' minSdkVersion ' , 16 )
24
+ targetSdkVersion safeExtGet( ' targetSdkVersion ' , 28 )
21
25
versionCode 1
22
26
versionName " 1.0"
23
27
}
@@ -34,6 +38,5 @@ repositories {
34
38
35
39
dependencies {
36
40
implementation ' com.facebook.react:react-native:+'
37
- implementation ' com.amap.api:location:4.5.1'
41
+ implementation " com.amap.api:location:${ safeExtGet('amapLocationSDK', ' 4.5.1') } "
38
42
}
39
-
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-amap-location-api" ,
3
- "version" : " 0.0.2 " ,
3
+ "version" : " 0.0.3 " ,
4
4
"description" : " AMap location SDK for react native" ,
5
5
"main" : " index.js" ,
6
6
"repository" : {
You can’t perform that action at this time.
0 commit comments