From cc3a14dd2be9f65c7e9334d2a926c65bc81f9315 Mon Sep 17 00:00:00 2001 From: GuhDoy <46047320+GuhDoy@users.noreply.github.com> Date: Sat, 5 Aug 2023 16:38:49 +0800 Subject: [PATCH] upgrade dependencies --- app/build.gradle | 18 ++++++++++-------- build.gradle | 10 +++++++--- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 87a1cf37..b045e819 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -4,6 +4,7 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'androidx.navigation.safeargs.kotlin' apply plugin: 'kotlin-kapt' +apply plugin: 'com.google.devtools.ksp' apply plugin: 'dagger.hilt.android.plugin' def gitCommitCount = Integer.parseInt('git rev-list --count HEAD'.execute([], project.rootDir).text.trim()) @@ -11,7 +12,7 @@ def sdk = 33 android { compileSdk sdk - buildToolsVersion '33.0.2' + buildToolsVersion = '33.0.2' ndkVersion '25.2.9519653' defaultConfig { @@ -19,7 +20,7 @@ android { minSdk 29 targetSdk sdk versionCode gitCommitCount - versionName 'beta8' + versionName 'beta9' testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner' multiDexEnabled false resourceConfigurations += ['en', 'zh-rCN', 'zh-rTW'] @@ -95,8 +96,8 @@ afterEvaluate { dependencies { compileOnly 'de.robv.android.xposed:api:82' implementation 'androidx.core:core-ktx:1.10.1' - implementation 'androidx.fragment:fragment-ktx:1.6.0' - implementation 'androidx.recyclerview:recyclerview:1.3.0' + implementation 'androidx.fragment:fragment-ktx:1.6.1' + implementation 'androidx.recyclerview:recyclerview:1.3.1' implementation 'androidx.recyclerview:recyclerview-selection:1.1.0' implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' implementation 'androidx.preference:preference-ktx:1.2.0' @@ -111,15 +112,16 @@ dependencies { implementation "androidx.room:room-runtime:$roomVersion" annotationProcessor "androidx.room:room-compiler:$roomVersion" implementation "androidx.room:room-ktx:$roomVersion" - kapt "androidx.room:room-compiler:$roomVersion" - def kotlinxCoroutinesVersion = '1.7.2' + ksp "androidx.room:room-compiler:$roomVersion" + def kotlinxCoroutinesVersion = '1.7.3' implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinxCoroutinesVersion" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlinxCoroutinesVersion" implementation "com.google.dagger:hilt-android:$rootProject.hiltVersion" + // https://issuetracker.google.com/issues/179057202 kapt "com.google.dagger:hilt-android-compiler:$rootProject.hiltVersion" def glideVersion = '4.15.1' implementation "com.github.bumptech.glide:glide:$glideVersion" - kapt "com.github.bumptech.glide:compiler:$glideVersion" + ksp "com.github.bumptech.glide:ksp:$glideVersion" def media3Version = '1.1.0' implementation "androidx.media3:media3-exoplayer:$media3Version" implementation "androidx.media3:media3-ui:$media3Version" @@ -134,7 +136,7 @@ dependencies { def appIconLoaderVersion = '1.5.0' implementation "me.zhanghai.android.appiconloader:appiconloader:$appIconLoaderVersion" implementation "me.zhanghai.android.appiconloader:appiconloader-glide:$appIconLoaderVersion" - implementation 'dev.rikka.rikkax.recyclerview:recyclerview-ktx:1.3.1' + implementation 'dev.rikka.rikkax.recyclerview:recyclerview-ktx:1.3.2' implementation 'com.drakeet.drawer:drawer:1.0.3' implementation 'me.zhanghai.android.fastscroll:library:1.2.0' implementation project(':photoview') diff --git a/build.gradle b/build.gradle index f741da83..0702d7de 100644 --- a/build.gradle +++ b/build.gradle @@ -1,9 +1,9 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext { - kotlinVersion = '1.8.20' - navigationVersion = '2.5.2' - hiltVersion = '2.44' + kotlinVersion = '1.9.0' + navigationVersion = '2.5.3' + hiltVersion = '2.46.1' } repositories { jcenter() @@ -18,6 +18,10 @@ buildscript { } } +plugins { + id 'com.google.devtools.ksp' version '1.9.0-1.0.13' apply false +} + allprojects { repositories { jcenter()