1+ def safeExtGet (prop , fallback ) {
2+ rootProject. ext. has(prop) ? rootProject. ext. get(prop) : fallback
3+ }
14
25buildscript {
36 repositories {
@@ -12,12 +15,12 @@ buildscript {
1215apply plugin : ' com.android.library'
1316
1417android {
15- compileSdkVersion 26
16- buildToolsVersion " 25.0.3"
18+ compileSdkVersion safeExtGet( ' compileSdkVersion ' , 26 )
19+ buildToolsVersion safeExtGet( ' buildToolsVersion ' , " 25.0.3" )
1720
1821 defaultConfig {
19- minSdkVersion 16
20- targetSdkVersion 26
22+ minSdkVersion safeExtGet( ' minSdkVersion ' , 16 )
23+ targetSdkVersion safeExtGet( ' targetSdkVersion ' , 26 )
2124 versionCode 1
2225 versionName " 1.0"
2326 }
@@ -34,18 +37,18 @@ repositories {
3437}
3538
3639dependencies {
37- compile ' com.facebook.react:react-native:+'
40+ implementation ' com.facebook.react:react-native:+'
3841
3942 // glide dependencies
40- compile ' com.github.bumptech.glide:glide:4.2 .0'
41- annotationProcessor ' com.github.bumptech.glide:compiler:4.2 .0'
43+ implementation ' com.github.bumptech.glide:glide:4.9 .0'
44+ annotationProcessor ' com.github.bumptech.glide:compiler:4.9 .0'
4245
4346 // FirebaseUI Storage only
44- compile ' com.firebaseui:firebase-ui-storage:3.0.0'
47+ implementation ' com.firebaseui:firebase-ui-storage:3.0.0'
4548
4649 // PhotoView
47- compile ' com.github.chrisbanes:PhotoView:2.1.3'
50+ implementation ' com.github.chrisbanes:PhotoView:2.1.3'
4851
4952 // glide-transformations
50- compile ' jp.wasabeef:glide-transformations:3.0.1'
53+ implementation ' jp.wasabeef:glide-transformations:3.0.1'
5154}
0 commit comments