gradle: Fix building with JDK11+

1. Bump Kotlin version to 1.7.10.
2. Bump Hilt version to 2.45.
3. Add implementation of lifecycle-viewmodel-ktx dependency explicitly
   to fix duplicate class error.

Signed-off-by: utzcoz <utzcoz@outlook.com>
This commit is contained in:
utzcoz 2023-04-01 12:43:05 +08:00 committed by Jakob Bornecrantz
parent 08831237f5
commit 5565564e70
2 changed files with 3 additions and 2 deletions

View file

@ -3,7 +3,7 @@
buildscript {
ext {
kotlinVersion = '1.7.0'
kotlinVersion = '1.7.10'
latestAboutLibsRelease = '8.9.4'
@ -15,7 +15,7 @@ buildscript {
androidxCardViewVersion = '1.0.0'
androidxRecyclerViewVersion = '1.2.1'
hiltVersion = '2.44.2'
hiltVersion = '2.45'
materialVersion = '1.8.0'

View file

@ -52,6 +52,7 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
implementation "androidx.constraintlayout:constraintlayout:$androidxConstraintLayoutVersion"
implementation "com.google.android.material:material:$materialVersion"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$androidxLifecycleVersion"
// Not directly used but included to avoid version conflicts