From ba6ddb78852376f5bf6c088e5fc1f8458d159956 Mon Sep 17 00:00:00 2001 From: erkana Date: Wed, 3 Aug 2022 12:23:27 +0100 Subject: [PATCH] Libraries Updated. Kotlin -> 1.7.0 Jetpack Compose -> 1.2.0 Hilt -> 2.42 --- .idea/deploymentTargetDropDown.xml | 11 ---------- app/build.gradle | 21 ++++++++++++------- app/src/main/AndroidManifest.xml | 2 +- .../fbook/domain/util/ExpandType.kt | 2 ++ .../fbook/presentation/MainActivity.kt | 6 ++++-- .../search_book/BooksViewModel.kt | 1 - build.gradle | 10 ++++----- 7 files changed, 26 insertions(+), 27 deletions(-) diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml index d26fbf7..768bcfe 100644 --- a/.idea/deploymentTargetDropDown.xml +++ b/.idea/deploymentTargetDropDown.xml @@ -1,17 +1,6 @@ - - - - - - - - - - - diff --git a/app/build.gradle b/app/build.gradle index ccb325d..0310d33 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,7 +1,7 @@ plugins { id 'com.android.application' id 'org.jetbrains.kotlin.android' - id 'dagger.hilt.android.plugin' + id 'com.google.dagger.hilt.android' id 'kotlin-kapt' } @@ -47,17 +47,20 @@ android { } } +kapt { + correctErrorTypes true +} + dependencies { implementation "com.google.accompanist:accompanist-systemuicontroller:0.17.0" implementation "com.google.accompanist:accompanist-placeholder-material:0.24.13-rc" - implementation "io.coil-kt:coil-compose:2.1.0" - implementation "com.google.dagger:hilt-android:2.38.1" - kapt "com.google.dagger:hilt-android-compiler:2.37" - implementation "androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha03" + implementation 'com.google.dagger:hilt-android:2.42' + kapt 'com.google.dagger:hilt-compiler:2.42' + kapt "androidx.hilt:hilt-compiler:1.0.0" implementation 'androidx.hilt:hilt-navigation-compose:1.0.0' @@ -69,12 +72,16 @@ dependencies { implementation "androidx.compose.ui:ui:$compose_version" implementation "androidx.compose.material:material:$compose_version" implementation "androidx.compose.ui:ui-tooling-preview:$compose_version" - implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.0' - implementation 'androidx.activity:activity-compose:1.5.0' + + implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1' + implementation 'androidx.activity:activity-compose:1.5.1' + testImplementation 'junit:junit:4.13.2' + androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version" + debugImplementation "androidx.compose.ui:ui-tooling:$compose_version" debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version" } \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index a95d4b1..2041f13 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -15,7 +15,7 @@ android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/Theme.BookSearch" - tools:targetApi="31"> + tools:targetApi="32">