Skip to content

Commit ae1c8a8

Browse files
authored
Merge branch 'master' into add-authDomain-to-FirebaseOptions
2 parents d05b644 + 7733c7c commit ae1c8a8

File tree

19 files changed

+168
-54
lines changed

19 files changed

+168
-54
lines changed

.github/workflows/pull_request.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ jobs:
3030
run: ./gradlew assemble
3131
- name: Run JS Tests
3232
run: ./gradlew cleanTest jsTest
33+
- name: Upload test artifact
34+
uses: actions/upload-artifact@v2
35+
if: failure()
36+
with:
37+
name: "JSTest Report HTML"
38+
path: "firebase-firestore/build/reports/tests/jsTest/"
3339
- name: Run Android Instrumented Tests
3440
uses: reactivecircus/android-emulator-runner@v2
3541
with:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<i>Real-time code collaboration inside any IDE</i><br/>
55
<br/>
66
<br/>
7-
The Firebase Kotlin SDK is a Kotlin-first SDK for Firebase. It's API is similar to the [Firebase Android SDK Kotlin Extensions](https://firebase.github.io/firebase-android-sdk/reference/kotlin/firebase-ktx/) but also supports multiplatform projects, enabling you to use Firebase directly from your common source targeting *iOS*, *Android* or *JS*.
7+
The Firebase Kotlin SDK is a Kotlin-first SDK for Firebase. It's API is similar to the <a href="https://firebase.github.io/firebase-android-sdk/reference/kotlin/firebase-ktx/">Firebase Android SDK Kotlin Extensions</a> but also supports multiplatform projects, enabling you to use Firebase directly from your common source targeting <strong>iOS</strong>, <strong>Android</strong> or <strong>JS</strong>.
88

99
## Available libraries
1010

build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ subprojects {
6767
onlyIf { !project.gradle.startParameter.taskNames.contains("publishToMavenLocal") }
6868
}
6969

70+
tasks.whenTaskAdded {
71+
enabled = when(name) {
72+
"compileDebugUnitTestKotlinAndroid" -> false
73+
"compileReleaseUnitTestKotlinAndroid" -> false
74+
"testDebugUnitTest" -> false
75+
"testReleaseUnitTest" -> false
76+
else -> enabled
77+
}
78+
}
79+
7080
tasks {
7181

7282
val updateVersion by registering(Exec::class) {

firebase-app/build.gradle.kts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,20 @@ kotlin {
7777

7878
js {
7979
useCommonJs()
80-
nodejs()
81-
browser()
80+
nodejs {
81+
testTask {
82+
useMocha {
83+
timeout = "5s"
84+
}
85+
}
86+
}
87+
browser {
88+
testTask {
89+
useMocha {
90+
timeout = "5s"
91+
}
92+
}
93+
}
8294
}
8395

8496
sourceSets {

firebase-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"homepage": "https://github.com/GitLiveApp/firebase-kotlin-sdk",
2525
"dependencies": {
2626
"@gitlive/firebase-common": "1.2.0",
27-
"firebase": "8.2.10",
27+
"firebase": "8.5.0",
2828
"kotlin": "1.4.31",
2929
"kotlinx-coroutines-core": "1.4.3"
3030
}

firebase-auth/build.gradle.kts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,20 @@ kotlin {
102102

103103
js {
104104
useCommonJs()
105-
nodejs()
106-
browser()
105+
nodejs {
106+
testTask {
107+
useMocha {
108+
timeout = "5s"
109+
}
110+
}
111+
}
112+
browser {
113+
testTask {
114+
useMocha {
115+
timeout = "5s"
116+
}
117+
}
118+
}
107119
}
108120

109121
sourceSets {

firebase-auth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"homepage": "https://github.com/GitLiveApp/firebase-kotlin-sdk",
2525
"dependencies": {
2626
"@gitlive/firebase-app": "1.2.0",
27-
"firebase": "8.2.10",
27+
"firebase": "8.5.0",
2828
"kotlin": "1.4.31",
2929
"kotlinx-coroutines-core": "1.4.3"
3030
}

firebase-common/build.gradle.kts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,20 @@ kotlin {
5858

5959
js {
6060
useCommonJs()
61-
nodejs()
62-
browser()
61+
nodejs {
62+
testTask {
63+
useMocha {
64+
timeout = "5s"
65+
}
66+
}
67+
}
68+
browser {
69+
testTask {
70+
useMocha {
71+
timeout = "5s"
72+
}
73+
}
74+
}
6375
}
6476

6577
sourceSets {

firebase-common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"homepage": "https://github.com/GitLiveApp/firebase-kotlin-multiplatform-sdk",
2525
"dependencies": {
26-
"firebase": "8.2.10",
26+
"firebase": "8.5.0",
2727
"kotlin": "1.4.31",
2828
"kotlinx-coroutines-core": "1.4.3",
2929
"kotlinx-serialization-kotlinx-serialization-runtime": "1.1.0"

firebase-common/src/commonTest/kotlin/dev/gitlive/firebase/EncodersTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class EncodersTest {
5151

5252
@Test
5353
fun decodeObjectNullableValue() {
54-
val decoded = decode(TestData.serializer(), mapOf("map" to mapOf("key" to "value"), "nullableBool" to null))
54+
val decoded = decode(TestData.serializer(), nativeMapOf("map" to mapOf("key" to "value"), "nullableBool" to null))
5555
assertNull(decoded.nullableBool)
5656
}
5757
}

0 commit comments

Comments
 (0)