11apply plugin : ' com.android.library'
2-
2+ def DEFAULT_COMPILE_SDK_VERSION = 27
3+ def DEFAULT_BUILD_TOOLS_VERSION = " 27.0.3"
4+ def DEFAULT_TARGET_SDK_VERSION = 27
5+ def DEFAULT_MIN_SDK_VERSION = 16
6+ def DEFAULT_SUPPOR_LIBVERSION = " 27.0.3"
37android {
4- compileSdkVersion 25
5- buildToolsVersion " 25.0.2 "
8+ compileSdkVersion rootProject . hasProperty( ' compileSdkVersion ' ) ? rootProject . compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
9+ buildToolsVersion rootProject . hasProperty( ' buildToolsVersion ' ) ? rootProject . buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION
610 flavorDimensions " prod"
711
812 defaultConfig {
9- minSdkVersion 16
10- targetSdkVersion 25
13+ minSdkVersion rootProject . hasProperty( ' minSdkVersion ' ) ? rootProject . minSdkVersion : DEFAULT_MIN_SDK_VERSION
14+ targetSdkVersion rootProject . hasProperty( ' targetSdkVersion ' ) ? rootProject . targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
1115 versionCode 1
1216 versionName " 1.0"
1317
@@ -27,17 +31,15 @@ dependencies {
2731 androidTestCompile(' com.android.support.test.espresso:espresso-core:2.2.2' , {
2832 exclude group : ' com.android.support' , module : ' support-annotations'
2933 })
30- // compile 'cn.jiguang.imui:messagelist:0.3.1-beta'
31- // compile 'cn.jiguang.imui:chatinput:0.3.4-beta'
32- compile ' com.android.support:appcompat-v7:25.3.1'
33- compile ' com.facebook.react:react-native:+'
34- compile ' com.google.code.gson:gson:2.3.1'
34+ implementation " com.android.support:appcompat-v7:${ rootProject.hasProperty('supportLibVersion') ? rootProject.supportLibVersion : DEFAULT_SUPPOR_LIBVERSION} "
35+ implementation " com.android.support:design:${ rootProject.hasProperty('supportLibVersion') ? rootProject.supportLibVersion : DEFAULT_SUPPOR_LIBVERSION} "
36+ implementation ' com.facebook.react:react-native:+'
37+ implementation ' com.google.code.gson:gson:2.3.1'
3538
36- compile ' com.scwang.smartrefresh:SmartRefreshHeader:1.0.3'
37- compile ' com.scwang.smartrefresh:SmartRefreshLayout:1.0.3'
38- // compile 'com.dinuscxj:recyclerrefreshlayout:2.0.5'
39- compile ' com.google.zxing:core:3.3.0'
40- compile ' com.github.bumptech.glide:glide:3.7.0'
39+ implementation ' com.scwang.smartrefresh:SmartRefreshHeader:1.0.3'
40+ implementation ' com.scwang.smartrefresh:SmartRefreshLayout:1.0.3'
41+ implementation ' com.google.zxing:core:3.3.0'
42+ implementation ' com.github.bumptech.glide:glide:3.7.0'
4143 testCompile ' junit:junit:4.12'
4244 compile project(' :react-native-imui:chatinput' )
4345 compile project(' :react-native-imui:messagelist' )
0 commit comments