@@ -4,14 +4,31 @@ apply plugin: 'kotlin-android-extensions'
44apply plugin : ' kotlin-kapt'
55
66android {
7+
8+ def versionMajor = 1
9+ def versionMinor = 0
10+ def versionPatch = 1
11+
12+ def projectVersionCode = (versionMajor* 100 ) + (versionMinor* 10 ) + (versionPatch* 1 )
13+ def projectVersionName = " $versionMajor . $versionMinor . $versionPatch "
14+
15+ compileOptions {
16+ sourceCompatibility JavaVersion . VERSION_1_8
17+ targetCompatibility JavaVersion . VERSION_1_8
18+ }
19+
20+ kotlinOptions {
21+ jvmTarget = JavaVersion . VERSION_1_8 . toString()
22+ }
23+
724 compileSdkVersion 29
825 buildToolsVersion " 29.0.3"
926
1027 defaultConfig {
1128 minSdkVersion 21
1229 targetSdkVersion 29
13- versionCode 1
14- versionName " 1.0 "
30+ versionCode projectVersionCode
31+ versionName projectVersionName
1532
1633 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
1734 consumerProguardFiles ' consumer-rules.pro'
@@ -29,46 +46,20 @@ android {
2946dependencies {
3047 implementation fileTree(dir : ' libs' , include : [' *.jar' ])
3148 implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
32- implementation ' androidx.appcompat:appcompat:1.1.0'
3349 implementation ' androidx.core:core-ktx:1.2.0'
34- implementation ' androidx.constraintlayout:constraintlayout:1.1.3 '
50+
3551 implementation ' com.google.code.gson:gson:2.8.6'
36- implementation ' com.google.android.material:material:1.2.0-alpha05'
37- implementation ' androidx.legacy:legacy-support-v4:1.0.0'
3852
39- implementation ' com.squareup.retrofit2:retrofit:2.6.0 '
53+ implementation ' com.squareup.retrofit2:retrofit:2.8.1 '
4054 implementation ' com.squareup.retrofit2:adapter-rxjava2:2.6.0'
41- implementation ' com.squareup.retrofit2:converter-moshi:2.6.0'
42- implementation ' com.squareup.retrofit2:converter-gson:2.5.0'
43-
44- implementation " com.squareup.moshi:moshi:1.8.0"
45- implementation ' com.squareup.okhttp3:okhttp:4.2.2'
55+ implementation ' com.squareup.retrofit2:converter-gson:2.6.2'
4656 implementation ' com.squareup.okhttp3:logging-interceptor:4.2.2'
4757
4858 implementation ' io.reactivex.rxjava2:rxandroid:2.1.1'
4959
50- // Room components
51- implementation " androidx.room:room-runtime:2.2.4"
52- implementation " androidx.room:room-ktx:2.2.4"
53- implementation " androidx.lifecycle:lifecycle-extensions:2.2.0"
54- // ViewModel Kotlin support
55- implementation " androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0"
56- // noinspection LifecycleAnnotationProcessorWithJava8
57- kapt " androidx.lifecycle:lifecycle-compiler:2.2.0"
58-
59- kapt " androidx.room:room-compiler:2.2.4"
60- implementation " androidx.room:room-ktx:2.2.4"
61- implementation " androidx.room:room-rxjava2:2.2.4"
62- implementation " androidx.room:room-guava:2.2.4"
63- testImplementation " androidx.room:room-testing:2.2.4"
64-
6560 implementation ' com.readystatesoftware.chuck:library:1.1.0'
6661
6762 testImplementation ' junit:junit:4.13'
6863 androidTestImplementation ' androidx.test:runner:1.2.0'
6964 androidTestImplementation ' androidx.test.espresso:espresso-core:3.2.0'
70-
71- androidExtensions {
72- experimental = true
73- }
7465}
0 commit comments