Skip to content

Commit

Permalink
perf: update dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Aug 8, 2024
1 parent 06956df commit fffbcf6
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 19 deletions.
9 changes: 5 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ plugins {

android {
namespace = "li.songe.gkd"
compileSdk = libs.versions.compileSdk.get().toInt()
buildToolsVersion = libs.versions.buildToolsVersion.get()
compileSdk = project.properties["android_compileSdk"].toString().toInt()
buildToolsVersion = project.properties["android_buildToolsVersion"].toString()

defaultConfig {
minSdk = libs.versions.minSdk.get().toInt()
targetSdk = libs.versions.targetSdk.get().toInt()
minSdk = project.properties["android_minSdk"].toString().toInt()
targetSdk = project.properties["android_targetSdk"].toString().toInt()

applicationId = "li.songe.gkd"
versionCode = 37
Expand Down Expand Up @@ -148,6 +148,7 @@ android {
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
freeCompilerArgs += "-opt-in=kotlinx.coroutines.FlowPreview"
freeCompilerArgs += "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
freeCompilerArgs += "-opt-in=kotlinx.serialization.ExperimentalSerializationApi"
freeCompilerArgs += "-opt-in=androidx.compose.material3.ExperimentalMaterial3Api"
freeCompilerArgs += "-opt-in=androidx.compose.foundation.ExperimentalFoundationApi"
}
Expand Down
6 changes: 4 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g

android.useAndroidX=true
android.enableJetifier=true
android.debug.obsoleteApi=true

kotlin.code.style=official
android_compileSdk=34
android_targetSdk=34
android_buildToolsVersion=34.0.0
android_minSdk=26
14 changes: 5 additions & 9 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
[versions]
kotlin = "2.0.10"
ksp = "2.0.10-RC2-1.0.24"
compileSdk = "34"
targetSdk = "34"
buildToolsVersion = "34.0.0"
minSdk = "26"
ksp = "2.0.10-1.0.24"
android = "8.5.1"
compose = "1.6.8"
rikka = "4.4.0"
room = "2.6.1"
paging = "3.3.1"
paging = "3.3.2"
ktor = "2.3.12"
hilt = "2.51.1"
hilt = "2.52"
destinations = "1.10.2"
coil = "2.7.0"

Expand All @@ -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_material3 = { module = "androidx.compose.material3:material3", version = "1.2.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_annotation = { module = "dev.rikka.tools.refine:annotation", version.ref = "rikka" }
rikka_shizuku_api = { module = "dev.rikka.shizuku:api", version = "13.1.5" }
Expand Down Expand Up @@ -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" }
coil_compose = { module = "io.coil-kt:coil-compose", 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" }
toaster = { module = "com.github.getActivity:Toaster", version = "12.6" }
permissions = { module = "com.github.getActivity:XXPermissions", version = "18.63" }
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
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
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
6 changes: 3 additions & 3 deletions hidden_api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ plugins {

android {
namespace = "li.songe.gkd"
compileSdk = libs.versions.compileSdk.get().toInt()
buildToolsVersion = libs.versions.buildToolsVersion.get()
compileSdk = project.properties["android_compileSdk"].toString().toInt()
buildToolsVersion = project.properties["android_buildToolsVersion"].toString()

defaultConfig {
minSdk = libs.versions.minSdk.get().toInt()
minSdk = project.properties["android_minSdk"].toString().toInt()
}

buildTypes {
Expand Down

0 comments on commit fffbcf6

Please sign in to comment.