1515 *
1616 */
1717
18- apply plugin : ' com.android.application'
19- apply plugin : ' kotlin-android'
20- apply plugin : ' kotlin-kapt'
21- apply plugin : " androidx.navigation.safeargs"
22- apply plugin : ' kotlin-android-extensions'
18+ plugins {
19+ id ' com.android.application'
20+ id ' kotlin-android'
21+ id ' kotlin-kapt'
22+ id ' androidx.navigation.safeargs.kotlin'
23+ }
2324
2425android {
2526 compileSdkVersion 30
2627 defaultConfig {
2728 applicationId " com.example.android.devbyteviewer"
28- minSdkVersion 19
29+ minSdkVersion 21
2930 targetSdkVersion 30
3031 versionCode 1
3132 versionName " 1.0"
@@ -38,11 +39,20 @@ android {
3839 proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
3940 }
4041 }
41-
42+ compileOptions {
43+ sourceCompatibility JavaVersion . VERSION_1_8
44+ targetCompatibility JavaVersion . VERSION_1_8
45+ }
46+ kotlinOptions {
47+ jvmTarget = ' 1.8'
48+ }
4249 buildFeatures {
4350 dataBinding true
4451 }
45-
52+ packagingOptions {
53+ exclude ' DebugProbesKt.bin'
54+ exclude ' META-INF/atomicfu.kotlin_module'
55+ }
4656}
4757
4858dependencies {
@@ -51,7 +61,7 @@ dependencies {
5161
5262 // Support libraries
5363 implementation " androidx.appcompat:appcompat:$version_appcompat "
54- implementation " androidx.fragment:fragment:$version_fragment "
64+ implementation " androidx.fragment:fragment-ktx :$version_fragment "
5565 implementation " androidx.constraintlayout:constraintlayout:$version_constraint_layout "
5666
5767 // Android KTX
@@ -68,7 +78,6 @@ dependencies {
6878 // Retrofit for networking
6979 implementation " com.squareup.retrofit2:retrofit:$version_retrofit "
7080 implementation " com.squareup.retrofit2:converter-moshi:$version_retrofit "
71- implementation " com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:$version_retrofit_coroutines_adapter "
7281
7382 // Moshi for parsing the JSON format
7483 implementation " com.squareup.moshi:moshi:$version_moshi "
0 commit comments