Skip to content

Commit b5a6491

Browse files
committed
add testing dependencies in top-level build.gradle
1 parent 174dc37 commit b5a6491

File tree

3 files changed

+4
-20
lines changed

3 files changed

+4
-20
lines changed

build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ subprojects {
138138
"androidMainImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.3.4")
139139
"iosMainImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-core-common:1.3.4")
140140
"iosMainImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-core-native:1.3.4")
141+
"commonTestImplementation"(kotlin("test-common"))
142+
"commonTestImplementation"(kotlin("test-annotations-common"))
143+
"jsTestImplementation"(kotlin("test-js"))
144+
"androidTestImplementation"(kotlin("test-junit"))
141145
}
142146
}
143147

firebase-app/build.gradle.kts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,6 @@ kotlin {
6969
api("com.google.firebase:firebase-common:19.2.0")
7070
}
7171
}
72-
val androidTest by getting {
73-
dependencies {
74-
implementation(kotlin("test-junit"))
75-
}
76-
}
77-
val jsTest by getting {
78-
dependencies {
79-
implementation(kotlin("test-js"))
80-
}
81-
}
8272

8373
configure(listOf(iosArm64, iosX64)) {
8474
compilations.getByName("main") {

firebase-common/build.gradle.kts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,12 @@ kotlin {
6060
api("org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.20.0")
6161
}
6262
}
63-
val androidTest by getting {
64-
dependencies {
65-
implementation(kotlin("test-junit"))
66-
}
67-
}
6863
val jsMain by getting {
6964
dependencies {
7065
// implementation(npm("firebase", "6.2.3"))
7166
api("org.jetbrains.kotlinx:kotlinx-serialization-runtime-js:0.20.0")
7267
}
7368
}
74-
val jsTest by getting {
75-
dependencies {
76-
implementation(kotlin("test-js"))
77-
}
78-
}
7969
val iosMain by getting {
8070
dependencies {
8171
api("org.jetbrains.kotlinx:kotlinx-serialization-runtime-native:0.20.0")

0 commit comments

Comments
 (0)