Skip to content

Commit 851de55

Browse files
committed
check for project versions
1 parent 1300514 commit 851de55

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

android/build.gradle

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
def safeExtGet(prop, fallback) {
2+
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
3+
}
4+
15
buildscript {
26
repositories {
37
jcenter()
@@ -11,12 +15,12 @@ buildscript {
1115
apply plugin: 'com.android.library'
1216

1317
android {
14-
compileSdkVersion 23
15-
buildToolsVersion "23.0.1"
18+
compileSdkVersion safeExtGet('compileSdkVersion', 23)
19+
buildToolsVersion safeExtGet('buildToolsVersion', "23.0.1")
1620

1721
defaultConfig {
18-
minSdkVersion 16
19-
targetSdkVersion 22
22+
minSdkVersion safeExtGet('minSdkVersion', 16)
23+
targetSdkVersion safeExtGet('targetSdkVersion', 22)
2024
versionCode 1
2125
versionName "1.0"
2226
}
@@ -29,5 +33,5 @@ repositories {
2933

3034
dependencies {
3135
compile "com.facebook.react:react-native:+"
32-
compile group: 'com.zopim.android', name: 'sdk', version: '1.3.0.1'
36+
compile group: 'com.zopim.android', name: 'sdk', version: '1.4.2'
3337
}

0 commit comments

Comments
 (0)