@@ -2,22 +2,25 @@ apply plugin: 'com.android.library'
2
2
apply plugin : ' kotlin-android'
3
3
4
4
android {
5
- compileSdkVersion 26
5
+ compileSdkVersion project . compile_sdk_version
6
6
7
7
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
12
12
13
13
testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
14
14
}
15
15
16
16
buildTypes {
17
17
release {
18
- minifyEnabled false
18
+ minifyEnabled true
19
19
proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
20
20
}
21
+ debug {
22
+ minifyEnabled false
23
+ }
21
24
}
22
25
23
26
}
@@ -26,33 +29,25 @@ android {
26
29
dependencies {
27
30
implementation fileTree(include : [' *.jar' ], dir : ' libs' )
28
31
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 "
35
37
36
38
// gson
37
- implementation ' com.google.code.gson:gson:2.8.2 '
39
+ implementation " com.google.code.gson:gson:$p roject . gson_version "
38
40
39
41
// 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 "
49
45
50
46
// 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 "
56
51
57
52
repositories {
58
53
mavenCentral()
0 commit comments