From 56a356dc5776e65b85da660a25ff76cad6b67912 Mon Sep 17 00:00:00 2001 From: lisonge Date: Wed, 14 Aug 2024 22:09:36 +0800 Subject: [PATCH] perf: update dependency --- build.gradle.kts | 1 - gradle/libs.versions.toml | 4 +--- selector/build.gradle.kts | 2 +- selector/src/jvmTest/kotlin/li/songe/selector/ParserTest.kt | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 4628a9c..61106fa 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -29,7 +29,6 @@ plugins { alias(libs.plugins.kotlin.compose) apply false alias(libs.plugins.rikka.refine) apply false - alias(libs.plugins.jetbrains.kotlin.jvm) apply false } // can not work with Kotlin Multiplatform diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 763f9f4..2c90dc9 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -10,7 +10,6 @@ ktor = "2.3.12" hilt = "2.52" destinations = "1.10.2" coil = "2.7.0" -jetbrainsKotlinJvm = "2.0.10" [libraries] android_gradle = { module = "com.android.tools.build:gradle", version.ref = "android" } @@ -69,7 +68,7 @@ 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" } -json5 = { module = "io.github.lisonge:json5", version = "0.0.2" } +json5 = { module = "io.github.lisonge:json5", version = "0.0.3" } [plugins] android_library = { id = "com.android.library", version.ref = "android" } @@ -83,4 +82,3 @@ rikka_refine = { id = "dev.rikka.tools.refine", version.ref = "rikka" } google_ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" } google_hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" } androidx_room = { id = "androidx.room", version.ref = "room" } -jetbrains-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "jetbrainsKotlinJvm" } diff --git a/selector/build.gradle.kts b/selector/build.gradle.kts index 645370b..47e36f1 100644 --- a/selector/build.gradle.kts +++ b/selector/build.gradle.kts @@ -27,7 +27,7 @@ kotlin { jvmTest { dependencies { implementation(libs.kotlinx.serialization.json) - implementation(libs.junit) + implementation(libs.kotlin.test) } } } diff --git a/selector/src/jvmTest/kotlin/li/songe/selector/ParserTest.kt b/selector/src/jvmTest/kotlin/li/songe/selector/ParserTest.kt index 76545b0..6b5a6e1 100644 --- a/selector/src/jvmTest/kotlin/li/songe/selector/ParserTest.kt +++ b/selector/src/jvmTest/kotlin/li/songe/selector/ParserTest.kt @@ -6,12 +6,12 @@ import kotlinx.serialization.json.JsonNull import kotlinx.serialization.json.booleanOrNull import kotlinx.serialization.json.intOrNull import li.songe.selector.parser.ParserSet -import org.junit.Test import java.io.BufferedOutputStream import java.io.File import java.io.FileOutputStream import java.net.URL import java.util.zip.ZipInputStream +import kotlin.test.Test class ParserTest {