diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 3766f04..10563b9 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -16,6 +16,8 @@ slf4j = { module = "org.slf4j:slf4j-simple", version = "2.0.13" } sqldelight-runtime = { module = "app.cash.sqldelight:runtime", version = "2.0.2" } +androidx.test.runner = { module = "androidx.test:runner", version = "1.6.1" } + [plugins] kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" } kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" } diff --git a/kotlinx-uuid-core/build.gradle.kts b/kotlinx-uuid-core/build.gradle.kts index d8a74f6..ea084b7 100644 --- a/kotlinx-uuid-core/build.gradle.kts +++ b/kotlinx-uuid-core/build.gradle.kts @@ -76,8 +76,7 @@ kotlin { sourceSets { named("androidInstrumentedTest") { dependencies { - implementation("androidx.test:runner:1.6.1") - implementation("androidx.test.ext:junit-ktx:1.2.1") + implementation(libs.androidx.test.runner) } } } diff --git a/kotlinx-uuid-core/src/androidInstrumentedTest/kotlin/kotlinx/uuid/internal/ParcelableTest.kt b/kotlinx-uuid-core/src/androidInstrumentedTest/kotlin/kotlinx/uuid/internal/ParcelableTest.kt index a36dddc..6c5c64f 100644 --- a/kotlinx-uuid-core/src/androidInstrumentedTest/kotlin/kotlinx/uuid/internal/ParcelableTest.kt +++ b/kotlinx-uuid-core/src/androidInstrumentedTest/kotlin/kotlinx/uuid/internal/ParcelableTest.kt @@ -1,13 +1,10 @@ package kotlinx.uuid.internal import android.os.Parcel -import androidx.test.ext.junit.runners.* import kotlinx.parcelize.parcelableCreator import kotlinx.uuid.* -import org.junit.runner.* import kotlin.test.* -@RunWith(AndroidJUnit4::class) class ParcelableTest { @Test fun testParcelable() {