@@ -2,22 +2,25 @@ apply plugin: 'com.android.library'
22apply plugin : ' kotlin-android'
33
44android {
5- compileSdkVersion 26
5+ compileSdkVersion project . compile_sdk_version
66
77 defaultConfig {
8- minSdkVersion 14
9- targetSdkVersion 26
10- versionCode 1
11- versionName " 1.0.0 "
8+ minSdkVersion project . min_sdk
9+ targetSdkVersion project . target_sdk_version
10+ versionCode project . version_code
11+ versionName project . version_name
1212
1313 testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
1414 }
1515
1616 buildTypes {
1717 release {
18- minifyEnabled false
18+ minifyEnabled true
1919 proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
2020 }
21+ debug {
22+ minifyEnabled false
23+ }
2124 }
2225
2326}
@@ -26,33 +29,25 @@ android {
2629dependencies {
2730 implementation fileTree(include : [' *.jar' ], dir : ' libs' )
2831
29- /**
30- Because RxAndroid releases are few and far between, it is recommended you also
31- explicitly depend on RxKotlin's latest version for bug fixes and new features.
32- */
33- implementation ' io.reactivex.rxjava2:rxandroid:2.0.1'
34- implementation ' io.reactivex.rxjava2:rxkotlin:2.2.0'
32+ // kotlin
33+ implementation " org.jetbrains.kotlin:kotlin-stdlib-jre7:$project . kotlin_version "
34+ 35+ // rx
36+ implementation " io.reactivex.rxjava2:rxkotlin:$project . reactivex_rxjava2_rxkotlin_version "
3537
3638 // gson
37- implementation ' com.google.code.gson:gson:2.8.2 '
39+ implementation " com.google.code.gson:gson:$p roject . gson_version "
3840
3941 // retrofit
40- implementation ' com.squareup.retrofit2:retrofit:2.4.0'
41- implementation ' com.squareup.retrofit2:converter-gson:2.4.0'
42- implementation ' com.squareup.retrofit2:adapter-rxjava2:2.4.0'
43- 44- // kotlin
45- implementation " org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version "
46- 47- // timber
48- implementation ' com.jakewharton.timber:timber:4.7.0'
42+ implementation " com.squareup.retrofit2:retrofit:$project . retrofit2_core_version "
43+ implementation " com.squareup.retrofit2:converter-gson:$project . retrofit2_converter_gson_version "
44+ implementation " com.squareup.retrofit2:adapter-rxjava2:$project . retrofit2_adapter_version "
4945
5046 // tests
51- testImplementation ' junit:junit:4.12'
52- testImplementation ' org.mockito:mockito-core:2.17.0'
53- testImplementation ' com.squareup.okhttp3:mockwebserver:3.10.0'
54- testImplementation ' com.android.support.test:runner:1.0.1'
55- androidTestImplementation ' com.android.support.test.espresso:espresso-core:3.0.1'
47+ testImplementation " junit:junit:$project . junit_version "
48+ testImplementation " org.mockito:mockito-core:$project . mockito_core_version "
49+ testImplementation " com.squareup.okhttp3:mockwebserver:$project . mockwebserver_version "
50+ androidTestImplementation " com.android.support.test.espresso:espresso-core:$project . espresso_core_version "
5651
5752 repositories {
5853 mavenCentral()
0 commit comments