Skip to content

Commit 4e0e2e2

Browse files
committed
add test libraries
1 parent b301760 commit 4e0e2e2

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

app/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,12 @@ dependencies {
138138
ksp(libs.hilt.compiler)
139139

140140
debugImplementation(libs.androidx.compose.ui.tooling)
141+
142+
testImplementation(libs.androidx.navigation.testing)
143+
testImplementation(libs.hilt.android.testing)
144+
testImplementation(libs.kotlin.test)
145+
testImplementation(libs.kotlinx.coroutines.test)
146+
testImplementation(libs.robolectric)
141147
}
142148

143149

gradle/libs.versions.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencyAnalysis = "2.8.0"
1515
gmsPlugin = "4.4.2"
1616
googleOssPlugin = "0.10.6"
1717
hilt = "2.54"
18+
junit4 = "4.13.2"
1819
kotlin = "2.1.0"
1920
kotlinxCoroutines = "1.10.1"
2021
kotlinxSerializationJson = "1.8.0"
@@ -24,6 +25,7 @@ protobuf = "4.29.2"
2425
protobufPlugin = "0.9.4"
2526
retrofit = "2.11.0"
2627
retrofitKotlinxSerializationJson = "1.0.0"
28+
robolectric = "4.14.1"
2729
sandwich = "2.1.0"
2830
sandwichRetrofitSerialization = "2.1.0"
2931

@@ -45,20 +47,25 @@ androidx-hilt-navigation-compose = { group = "androidx.hilt", name = "hilt-navig
4547
androidx-lifecycle-runtimeCompose = { group = "androidx.lifecycle", name = "lifecycle-runtime-compose", version.ref = "androidxLifecycle" }
4648
androidx-lifecycle-viewModelCompose = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-compose", version.ref = "androidxLifecycle" }
4749
androidx-navigation-compose = { group = "androidx.navigation", name = "navigation-compose", version.ref = "androidxNavigation" }
50+
androidx-navigation-testing = { group = "androidx.navigation", name = "navigation-testing", version.ref = "androidxNavigation" }
4851
androidx-profileinstaller = { group = "androidx.profileinstaller", name = "profileinstaller", version.ref = "androidxProfileinstaller" }
4952
androidx-tracing-ktx = { group = "androidx.tracing", name = "tracing-ktx", version.ref = "androidxTracing" }
5053
google-oss-licenses-plugin = { group = "com.google.android.gms", name = "oss-licenses-plugin", version.ref = "googleOssPlugin" }
5154
hilt-android = { module = "com.google.dagger:hilt-android", version.ref = "hilt" }
55+
hilt-android-testing = { group = "com.google.dagger", name = "hilt-android-testing", version.ref = "hilt" }
5256
hilt-compiler = { module = "com.google.dagger:hilt-compiler", version.ref = "hilt" }
5357
kotlin-stdlib-jdk8 = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk8", version.ref = "kotlin" }
58+
kotlin-test = { group = "org.jetbrains.kotlin", name = "kotlin-test", version.ref = "kotlin" }
5459
kotlinx-coroutines-guava = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-guava", version.ref = "kotlinxCoroutines" }
60+
kotlinx-coroutines-test = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-test", version.ref = "kotlinxCoroutines" }
5561
kotlinx-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "kotlinxSerializationJson" }
5662
okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okHttp" }
5763
okhttp-logging-interceptor = { module = "com.squareup.okhttp3:logging-interceptor", version.ref = "okHttp" }
5864
protobuf-kotlin-lite = { group = "com.google.protobuf", name = "protobuf-kotlin-lite", version.ref = "protobuf" }
5965
protobuf-protoc = { group = "com.google.protobuf", name = "protoc", version.ref = "protobuf" }
6066
retrofit = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit" }
6167
retrofit-kotlin-serialization = { group = "com.jakewharton.retrofit", name = "retrofit2-kotlinx-serialization-converter", version.ref = "retrofitKotlinxSerializationJson" }
68+
robolectric = { group = "org.robolectric", name = "robolectric", version.ref = "robolectric" }
6269
sandwich = { module = "com.github.skydoves:sandwich", version.ref = "sandwich" }
6370
sandwich-retrofit = { module = "com.github.skydoves:sandwich-retrofit", version.ref = "sandwich" }
6471
sandwich-retrofit-serialization = { module = "com.github.skydoves:sandwich-retrofit-serialization", version.ref = "sandwichRetrofitSerialization" }

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)