File tree Expand file tree Collapse file tree 3 files changed +39
-1
lines changed
src/commonTest/kotlin/dev/teamhub/firebase Expand file tree Collapse file tree 3 files changed +39
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ kotlin {
35
35
moduleKind = " commonjs"
36
36
}
37
37
}
38
+ nodejs()
39
+ browser()
38
40
}
39
41
// js("reactnative") {
40
42
// val main by compilations.getting {
@@ -56,12 +58,27 @@ kotlin {
56
58
implementation(project(" :firebase-common" ))
57
59
}
58
60
}
61
+ val commonTest by getting {
62
+ dependencies {
63
+ implementation(kotlin(" test-common" ))
64
+ implementation(kotlin(" test-annotations-common" ))
65
+ }
66
+ }
59
67
val androidMain by getting {
60
68
dependencies {
61
69
api(" com.google.firebase:firebase-common:19.2.0" )
62
70
}
63
71
}
64
- // val iosMain by creating
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
+ }
65
82
66
83
configure(listOf (iosArm64, iosX64)) {
67
84
compilations.getByName(" main" ) {
Original file line number Diff line number Diff line change
1
+ package dev.teamhub.firebase
2
+
3
+ import kotlin.test.Test
4
+
5
+ class FirebaseAppTest {
6
+ @Test
7
+ fun testInitialize () {
8
+ Firebase .initialize()
9
+ }
10
+ }
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ kotlin {
31
31
moduleKind = " commonjs"
32
32
}
33
33
}
34
+ nodejs()
34
35
}
35
36
android {
36
37
publishLibraryVariants(" release" , " debug" )
@@ -59,12 +60,22 @@ kotlin {
59
60
api(" org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.20.0" )
60
61
}
61
62
}
63
+ val androidTest by getting {
64
+ dependencies {
65
+ implementation(kotlin(" test-junit" ))
66
+ }
67
+ }
62
68
val jsMain by getting {
63
69
dependencies {
64
70
// implementation(npm("firebase", "6.2.3"))
65
71
api(" org.jetbrains.kotlinx:kotlinx-serialization-runtime-js:0.20.0" )
66
72
}
67
73
}
74
+ val jsTest by getting {
75
+ dependencies {
76
+ implementation(kotlin(" test-js" ))
77
+ }
78
+ }
68
79
val iosMain by getting {
69
80
dependencies {
70
81
api(" org.jetbrains.kotlinx:kotlinx-serialization-runtime-native:0.20.0" )
You can’t perform that action at this time.
0 commit comments