Skip to content

Commit a92106b

Browse files
committed
updated Firebase SDKs, fixed one missing -ktx dependency
1 parent 9ce9222 commit a92106b

File tree

21 files changed

+29
-28
lines changed

21 files changed

+29
-28
lines changed

build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ buildscript {
1717
}
1818
}
1919
dependencies {
20-
classpath("com.android.tools.build:gradle:7.0.1")
20+
classpath("com.android.tools.build:gradle:7.0.3")
2121
classpath("com.adarshr:gradle-test-logger-plugin:2.1.1")
2222
}
2323
}
@@ -197,7 +197,7 @@ subprojects {
197197
dependencies {
198198
"commonMainImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2")
199199
"androidMainImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.5.2")
200-
"androidMainImplementation"(platform("com.google.firebase:firebase-bom:28.4.1"))
200+
"androidMainImplementation"(platform("com.google.firebase:firebase-bom:29.0.0"))
201201
"commonTestImplementation"(kotlin("test-common"))
202202
"commonTestImplementation"(kotlin("test-annotations-common"))
203203
"commonTestImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2")

firebase-app/package.json

+1-1
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.4.3",
27-
"firebase": "8.10.0",
27+
"firebase": "9.4.1",
2828
"kotlin": "1.5.31",
2929
"kotlinx-coroutines-core": "1.5.2"
3030
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json" == 8.8.0
1+
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json" == 8.9.1

firebase-auth/package.json

+1-1
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.4.3",
27-
"firebase": "8.10.0",
27+
"firebase": "9.4.1",
2828
"kotlin": "1.5.31",
2929
"kotlinx-coroutines-core": "1.5.2"
3030
}

firebase-auth/src/jsTest/kotlin/dev/gitlive/firebase/auth/auth.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ actual fun runTest(test: suspend () -> Unit) = GlobalScope
1515
.promise {
1616
try {
1717
test()
18-
} catch (e: dynamic) {
19-
(e as? Throwable)?.log()
18+
} catch (e: Throwable) {
19+
e.log()
2020
throw e
2121
}
2222
}.asDynamic()
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAuthBinary.json" == 8.8.0
1+
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAuthBinary.json" == 8.9.1

firebase-common/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ kotlin {
108108

109109
val jsMain by getting {
110110
dependencies {
111-
api(npm("firebase", "8.7.1"))
111+
api(npm("firebase", "9.4.1"))
112112
}
113113
}
114114
}

firebase-common/package.json

+1-1
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.10.0",
26+
"firebase": "9.4.1",
2727
"kotlin": "1.5.31",
2828
"kotlinx-coroutines-core": "1.5.2",
2929
"kotlinx-serialization-kotlinx-serialization-runtime": "1.3.0"

firebase-common/src/jsMain/kotlin/dev/gitlive/firebase/externals.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
* Copyright (c) 2020 GitLive Ltd. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

5-
@file:JsModule("firebase/app")
6-
5+
@file:JsModule("firebase/compat/app")
76
package dev.gitlive.firebase
87

98
import kotlin.js.Json

firebase-common/src/jsMain/kotlin/dev/gitlive/firebase/externals2.kt

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ package dev.gitlive.firebase
66

77
import kotlin.js.Promise
88

9-
@JsModule("firebase/functions")
9+
@JsModule("firebase/compat/functions")
1010
external object functions
1111

12-
@JsModule("firebase/auth")
12+
@JsModule("firebase/compat/auth")
1313
external object auth
1414

15-
@JsModule("firebase/database")
15+
@JsModule("firebase/compat/database")
1616
external object database
1717

18-
@JsModule("firebase/firestore")
18+
@JsModule("firebase/compat/firestore")
1919
external object firestore
2020

21-
@JsModule("firebase/remote-config")
21+
@JsModule("firebase/compat/remote-config")
2222
external object remoteConfig
2323

2424
typealias SnapshotCallback = (data: firebase.database.DataSnapshot, b: String?) -> Unit

firebase-config/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ kotlin {
143143

144144
val androidMain by getting {
145145
dependencies {
146-
api("com.google.firebase:firebase-config")
146+
api("com.google.firebase:firebase-config-ktx")
147147
}
148148
}
149149

firebase-config/package.json

+1-1
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.4.3",
27-
"firebase": "8.10.0",
27+
"firebase": "9.4.1",
2828
"kotlin": "1.5.31",
2929
"kotlinx-coroutines-core": "1.5.2"
3030
}

firebase-config/src/androidAndroidTest/kotlin/dev/gitlive/firebase/remoteconfig/RemoteConfig.kt

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ package dev.gitlive.firebase.remoteconfig
88
import androidx.test.platform.app.InstrumentationRegistry
99
import kotlinx.coroutines.runBlocking
1010

11+
actual val emulatorHost: String = "10.0.2.2"
12+
1113
actual val context: Any = InstrumentationRegistry.getInstrumentation().targetContext
1214

1315
actual fun runTest(test: suspend () -> Unit) = runBlocking { test() }

firebase-config/src/jsTest/kotlin/dev/gitlive/firebase/remoteconfig/FirebaseRemoteConfig.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ actual fun runTest(test: suspend () -> Unit) = GlobalScope
99
.promise {
1010
try {
1111
test()
12-
} catch (e: dynamic) {
13-
(e as? Throwable)?.log()
12+
} catch (e: Throwable) {
13+
e.log()
1414
throw e
1515
}
1616
}.asDynamic()
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseRemoteConfigBinary.json" == 8.8.0
1+
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseRemoteConfigBinary.json" == 8.9.1

firebase-database/package.json

+1-1
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.4.3",
27-
"firebase": "8.10.0",
27+
"firebase": "9.4.1",
2828
"kotlin": "1.5.31",
2929
"kotlinx-coroutines-core": "1.5.2"
3030
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseDatabaseBinary.json" == 8.8.0
1+
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseDatabaseBinary.json" == 8.9.1

firebase-firestore/package.json

+1-1
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.4.3",
27-
"firebase": "8.10.0",
27+
"firebase": "9.4.1",
2828
"kotlin": "1.5.31",
2929
"kotlinx-coroutines-core": "1.5.2"
3030
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseFirestoreBinary.json" == 8.8.0
1+
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseFirestoreBinary.json" == 8.9.1

firebase-functions/package.json

+1-1
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.4.3",
27-
"firebase": "8.10.0",
27+
"firebase": "9.4.1",
2828
"kotlin": "1.5.31",
2929
"kotlinx-coroutines-core": "1.5.2"
3030
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseFunctionsBinary.json" == 8.8.0
1+
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseFunctionsBinary.json" == 8.9.1

0 commit comments

Comments
 (0)