@@ -33,6 +33,8 @@ android {
3333 version = versionName
3434 group = " jp.studyplus.android.sdk"
3535
36+ consumerProguardFiles ' lib-proguard-rules.txt'
37+
3638 testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
3739 }
3840
@@ -44,9 +46,6 @@ android {
4446 initWith(buildTypes. debug)
4547 }
4648 release {
47- minifyEnabled true
48- proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
49-
5049 buildConfigField " String" , " API_ENDPOINT" , quote(" https://external-api.studyplus.jp" )
5150 }
5251 }
@@ -65,23 +64,22 @@ android {
6564
6665dependencies {
6766 implementation fileTree(dir : ' libs' , include : [' *.jar' ])
67+ implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
68+ implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-core:1.0.0'
69+ implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-android:1.0.0'
6870
69- implementation " com.google.code.gson:gson:${ versions.gson} "
70-
71- implementation " com.squareup.okhttp3:okhttp:${ versions.okhttp} "
72- implementation " com.squareup.okhttp3:logging-interceptor:${ versions.okhttp} "
71+ implementation ' com.google.code.gson:gson:2.8.5'
72+ implementation ' com.squareup.okhttp3:okhttp:3.11.0'
7373
74- implementation " com.squareup.retrofit2:retrofit: ${ versions.retrofit } "
75- implementation " com.squareup.retrofit2:adapter-rxjava2: ${ versions. retrofit} "
76- implementation " com.squareup.retrofit2:converter-gson:${ versions. retrofit} "
77- testImplementation " com.squareup.retrofit2:retrofit-mock:${ versions. retrofit} "
74+ def retrofit = " 2.4.0 "
75+ implementation " com.squareup.retrofit2:retrofit: $ retrofit "
76+ implementation " com.squareup.retrofit2:converter-gson:$retrofit "
77+ testImplementation " com.squareup.retrofit2:retrofit-mock:$retrofit "
7878
79- implementation " io.reactivex.rxjava2:rxjava:${ versions.rx2java} "
80- implementation " io.reactivex.rxjava2:rxandroid:${ versions.rx2android} "
79+ implementation ' com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:0.9.2'
8180
8281 testImplementation ' junit:junit:4.12'
83-
84- implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
82+ testImplementation " org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version "
8583}
8684
8785apply from : ' build.publish.gradle'
0 commit comments