Skip to content

Commit

Permalink
Merge pull request #183 from Pocket/renovate/opt-in-kotlin-test
Browse files Browse the repository at this point in the history
chore(deps): move kotlin test to version catalog
  • Loading branch information
marcin-kozinski authored Feb 5, 2025
2 parents 075791a + 12b0133 commit 7737f44
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 13 deletions.
6 changes: 3 additions & 3 deletions Pocket/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -313,15 +313,15 @@ dependencies {

testImplementation(Deps.Mockito.core)
testImplementation(Deps.AssertJ.core)
testImplementation(Deps.Jetbrains.Kotlin.jUnit)
testImplementation(libs.kotlin.junit)
testImplementation(Deps.MockK.mockk)
testImplementation(platform(libs.kotlinx.coroutines.bom))
testImplementation(libs.kotlinx.coroutines.test)
testImplementation(Deps.Jetbrains.Kotlin.test)
testImplementation(libs.kotlin.test)
testImplementation(libs.turbine)

androidTestImplementation(Deps.AndroidX.Test.rules)
androidTestImplementation(Deps.Jetbrains.Kotlin.jUnit)
androidTestImplementation(libs.kotlin.junit)
androidTestImplementation(platform(libs.androidx.compose.bom))
androidTestImplementation(libs.androidx.compose.ui.test)
debugImplementation(libs.androidx.compose.ui.test.manifest)
Expand Down
7 changes: 0 additions & 7 deletions buildSrc/src/main/kotlin/Deps.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@
*
* Deprecated: We're gradually migrating to version catalog
*/
@Suppress("MemberNameEqualsClassName")
object Deps {
object Jetbrains {
object Kotlin {
const val jUnit = "org.jetbrains.kotlin:kotlin-test-junit"
const val test = "org.jetbrains.kotlin:kotlin-test-common"
}
}
object AndroidX {
object ViewPager2 {
private const val VERSION = "1.0.0"
Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ dagger-hilt-compiler = { module = "com.google.dagger:hilt-compiler", version.ref
firebase-bom = { module = "com.google.firebase:firebase-bom", version = "33.8.0" }
firebase-messaging = { module = "com.google.firebase:firebase-messaging" }
google-play-billing = { module = "com.android.billingclient:billing-ktx", version = "7.1.1" }
kotlin-junit = { module = "org.jetbrains.kotlin:kotlin-test-junit" }
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test-common" }
kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android" }
kotlinx-coroutines-bom = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-bom", version = "1.10.1" }
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core" }
Expand Down
2 changes: 1 addition & 1 deletion sync-pocket-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ dependencies {
testImplementation(Deps.Mockito.core)
testImplementation(libs.robolectric)
testImplementation(Deps.Commons.IO.commonsIo)
testImplementation(Deps.Jetbrains.Kotlin.jUnit)
testImplementation(libs.kotlin.junit)
}
4 changes: 2 additions & 2 deletions sync-pocket/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ dependencies {
implementation(libs.okhttp.urlconnection)
implementation(libs.okio)

testImplementation(Deps.Jetbrains.Kotlin.test)
testImplementation(Deps.Jetbrains.Kotlin.jUnit)
testImplementation(libs.kotlin.test)
testImplementation(libs.kotlin.junit)
testImplementation(Deps.Mockito.Kotlin.mockitoKotlin)
testImplementation(Deps.Commons.Codec.commonsCodec)
testImplementation(libs.okhttp.mockwebserver)
Expand Down

0 comments on commit 7737f44

Please sign in to comment.