perf: update dependency

This commit is contained in:
lisonge 2024-08-08 21:10:55 +08:00
parent 06956df916
commit fffbcf68c1
5 changed files with 18 additions and 19 deletions

View File

@ -50,12 +50,12 @@ plugins {
android { android {
namespace = "li.songe.gkd" namespace = "li.songe.gkd"
compileSdk = libs.versions.compileSdk.get().toInt() compileSdk = project.properties["android_compileSdk"].toString().toInt()
buildToolsVersion = libs.versions.buildToolsVersion.get() buildToolsVersion = project.properties["android_buildToolsVersion"].toString()
defaultConfig { defaultConfig {
minSdk = libs.versions.minSdk.get().toInt() minSdk = project.properties["android_minSdk"].toString().toInt()
targetSdk = libs.versions.targetSdk.get().toInt() targetSdk = project.properties["android_targetSdk"].toString().toInt()
applicationId = "li.songe.gkd" applicationId = "li.songe.gkd"
versionCode = 37 versionCode = 37
@ -148,6 +148,7 @@ android {
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn" freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
freeCompilerArgs += "-opt-in=kotlinx.coroutines.FlowPreview" freeCompilerArgs += "-opt-in=kotlinx.coroutines.FlowPreview"
freeCompilerArgs += "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi" freeCompilerArgs += "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
freeCompilerArgs += "-opt-in=kotlinx.serialization.ExperimentalSerializationApi"
freeCompilerArgs += "-opt-in=androidx.compose.material3.ExperimentalMaterial3Api" freeCompilerArgs += "-opt-in=androidx.compose.material3.ExperimentalMaterial3Api"
freeCompilerArgs += "-opt-in=androidx.compose.foundation.ExperimentalFoundationApi" freeCompilerArgs += "-opt-in=androidx.compose.foundation.ExperimentalFoundationApi"
} }

View File

@ -1,7 +1,9 @@
org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g
android.useAndroidX=true android.useAndroidX=true
android.enableJetifier=true android.enableJetifier=true
android.debug.obsoleteApi=true android.debug.obsoleteApi=true
kotlin.code.style=official kotlin.code.style=official
android_compileSdk=34
android_targetSdk=34
android_buildToolsVersion=34.0.0
android_minSdk=26

View File

@ -1,17 +1,13 @@
[versions] [versions]
kotlin = "2.0.10" kotlin = "2.0.10"
ksp = "2.0.10-RC2-1.0.24" ksp = "2.0.10-1.0.24"
compileSdk = "34"
targetSdk = "34"
buildToolsVersion = "34.0.0"
minSdk = "26"
android = "8.5.1" android = "8.5.1"
compose = "1.6.8" compose = "1.6.8"
rikka = "4.4.0" rikka = "4.4.0"
room = "2.6.1" room = "2.6.1"
paging = "3.3.1" paging = "3.3.2"
ktor = "2.3.12" ktor = "2.3.12"
hilt = "2.51.1" hilt = "2.52"
destinations = "1.10.2" destinations = "1.10.2"
coil = "2.7.0" coil = "2.7.0"
@ -27,7 +23,7 @@ compose_junit4 = { module = "androidx.compose.ui:ui-test-junit4", version.ref =
compose_icons = { module = "androidx.compose.material:material-icons-extended", version.ref = "compose" } compose_icons = { module = "androidx.compose.material:material-icons-extended", version.ref = "compose" }
compose_material3 = { module = "androidx.compose.material3:material3", version = "1.2.1" } compose_material3 = { module = "androidx.compose.material3:material3", version = "1.2.1" }
compose_activity = { module = "androidx.activity:activity-compose", version = "1.9.1" } compose_activity = { module = "androidx.activity:activity-compose", version = "1.9.1" }
tencent_mmkv = { module = "com.tencent:mmkv", version = "1.3.7" } tencent_mmkv = { module = "com.tencent:mmkv", version = "1.3.9" }
rikka_processor = { module = "dev.rikka.tools.refine:annotation-processor", version.ref = "rikka" } rikka_processor = { module = "dev.rikka.tools.refine:annotation-processor", version.ref = "rikka" }
rikka_annotation = { module = "dev.rikka.tools.refine:annotation", version.ref = "rikka" } rikka_annotation = { module = "dev.rikka.tools.refine:annotation", version.ref = "rikka" }
rikka_shizuku_api = { module = "dev.rikka.shizuku:api", version = "13.1.5" } rikka_shizuku_api = { module = "dev.rikka.shizuku:api", version = "13.1.5" }
@ -67,7 +63,7 @@ destinations_core = { module = "io.github.raamcosta.compose-destinations:core",
destinations_ksp = { module = "io.github.raamcosta.compose-destinations:ksp", version.ref = "destinations" } destinations_ksp = { module = "io.github.raamcosta.compose-destinations:ksp", version.ref = "destinations" }
coil_compose = { module = "io.coil-kt:coil-compose", version.ref = "coil" } coil_compose = { module = "io.coil-kt:coil-compose", version.ref = "coil" }
coil_gif = { module = "io.coil-kt:coil-gif", version.ref = "coil" } coil_gif = { module = "io.coil-kt:coil-gif", version.ref = "coil" }
reorderable = { module = "sh.calvin.reorderable:reorderable", version = "2.1.1" } reorderable = { module = "sh.calvin.reorderable:reorderable", version = "2.3.0" }
exp4j = { module = "net.objecthunter:exp4j", version = "0.4.8" } exp4j = { module = "net.objecthunter:exp4j", version = "0.4.8" }
toaster = { module = "com.github.getActivity:Toaster", version = "12.6" } toaster = { module = "com.github.getActivity:Toaster", version = "12.6" }
permissions = { module = "com.github.getActivity:XXPermissions", version = "18.63" } permissions = { module = "com.github.getActivity:XXPermissions", version = "18.63" }

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME

View File

@ -4,11 +4,11 @@ plugins {
android { android {
namespace = "li.songe.gkd" namespace = "li.songe.gkd"
compileSdk = libs.versions.compileSdk.get().toInt() compileSdk = project.properties["android_compileSdk"].toString().toInt()
buildToolsVersion = libs.versions.buildToolsVersion.get() buildToolsVersion = project.properties["android_buildToolsVersion"].toString()
defaultConfig { defaultConfig {
minSdk = libs.versions.minSdk.get().toInt() minSdk = project.properties["android_minSdk"].toString().toInt()
} }
buildTypes { buildTypes {