File tree 21 files changed +29
-28
lines changed
src/nativeInterop/cinterop
jsTest/kotlin/dev/gitlive/firebase/auth
src/jsMain/kotlin/dev/gitlive/firebase
androidAndroidTest/kotlin/dev/gitlive/firebase/remoteconfig
jsTest/kotlin/dev/gitlive/firebase/remoteconfig
src/nativeInterop/cinterop
src/nativeInterop/cinterop
src/nativeInterop/cinterop
21 files changed +29
-28
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ buildscript {
17
17
}
18
18
}
19
19
dependencies {
20
- classpath(" com.android.tools.build:gradle:7.0.1 " )
20
+ classpath(" com.android.tools.build:gradle:7.0.3 " )
21
21
classpath(" com.adarshr:gradle-test-logger-plugin:2.1.1" )
22
22
}
23
23
}
@@ -197,7 +197,7 @@ subprojects {
197
197
dependencies {
198
198
" commonMainImplementation" (" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2" )
199
199
" 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 " ))
201
201
" commonTestImplementation" (kotlin(" test-common" ))
202
202
" commonTestImplementation" (kotlin(" test-annotations-common" ))
203
203
" commonTestImplementation" (" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2" )
Original file line number Diff line number Diff line change 24
24
"homepage" : " https://github.com/GitLiveApp/firebase-kotlin-sdk" ,
25
25
"dependencies" : {
26
26
"@gitlive/firebase-common" : " 1.4.3" ,
27
- "firebase" : " 8.10.0 " ,
27
+ "firebase" : " 9.4.1 " ,
28
28
"kotlin" : " 1.5.31" ,
29
29
"kotlinx-coroutines-core" : " 1.5.2"
30
30
}
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 24
24
"homepage" : " https://github.com/GitLiveApp/firebase-kotlin-sdk" ,
25
25
"dependencies" : {
26
26
"@gitlive/firebase-app" : " 1.4.3" ,
27
- "firebase" : " 8.10.0 " ,
27
+ "firebase" : " 9.4.1 " ,
28
28
"kotlin" : " 1.5.31" ,
29
29
"kotlinx-coroutines-core" : " 1.5.2"
30
30
}
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ actual fun runTest(test: suspend () -> Unit) = GlobalScope
15
15
.promise {
16
16
try {
17
17
test()
18
- } catch (e: dynamic ) {
19
- (e as ? Throwable )? .log()
18
+ } catch (e: Throwable ) {
19
+ e .log()
20
20
throw e
21
21
}
22
22
}.asDynamic()
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ kotlin {
108
108
109
109
val jsMain by getting {
110
110
dependencies {
111
- api(npm(" firebase" , " 8.7 .1" ))
111
+ api(npm(" firebase" , " 9.4 .1" ))
112
112
}
113
113
}
114
114
}
Original file line number Diff line number Diff line change 23
23
},
24
24
"homepage" : " https://github.com/GitLiveApp/firebase-kotlin-multiplatform-sdk" ,
25
25
"dependencies" : {
26
- "firebase" : " 8.10.0 " ,
26
+ "firebase" : " 9.4.1 " ,
27
27
"kotlin" : " 1.5.31" ,
28
28
"kotlinx-coroutines-core" : " 1.5.2" ,
29
29
"kotlinx-serialization-kotlinx-serialization-runtime" : " 1.3.0"
Original file line number Diff line number Diff line change 2
2
* Copyright (c) 2020 GitLive Ltd. Use of this source code is governed by the Apache 2.0 license.
3
3
*/
4
4
5
- @file:JsModule(" firebase/app" )
6
-
5
+ @file:JsModule(" firebase/compat/app" )
7
6
package dev.gitlive.firebase
8
7
9
8
import kotlin.js.Json
Original file line number Diff line number Diff line change @@ -6,19 +6,19 @@ package dev.gitlive.firebase
6
6
7
7
import kotlin.js.Promise
8
8
9
- @JsModule(" firebase/functions" )
9
+ @JsModule(" firebase/compat/ functions" )
10
10
external object functions
11
11
12
- @JsModule(" firebase/auth" )
12
+ @JsModule(" firebase/compat/ auth" )
13
13
external object auth
14
14
15
- @JsModule(" firebase/database" )
15
+ @JsModule(" firebase/compat/ database" )
16
16
external object database
17
17
18
- @JsModule(" firebase/firestore" )
18
+ @JsModule(" firebase/compat/ firestore" )
19
19
external object firestore
20
20
21
- @JsModule(" firebase/remote-config" )
21
+ @JsModule(" firebase/compat/ remote-config" )
22
22
external object remoteConfig
23
23
24
24
typealias SnapshotCallback = (data: firebase.database.DataSnapshot , b: String? ) -> Unit
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ kotlin {
143
143
144
144
val androidMain by getting {
145
145
dependencies {
146
- api(" com.google.firebase:firebase-config" )
146
+ api(" com.google.firebase:firebase-config-ktx " )
147
147
}
148
148
}
149
149
Original file line number Diff line number Diff line change 24
24
"homepage" : " https://github.com/GitLiveApp/firebase-kotlin-sdk" ,
25
25
"dependencies" : {
26
26
"@gitlive/firebase-app" : " 1.4.3" ,
27
- "firebase" : " 8.10.0 " ,
27
+ "firebase" : " 9.4.1 " ,
28
28
"kotlin" : " 1.5.31" ,
29
29
"kotlinx-coroutines-core" : " 1.5.2"
30
30
}
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ package dev.gitlive.firebase.remoteconfig
8
8
import androidx.test.platform.app.InstrumentationRegistry
9
9
import kotlinx.coroutines.runBlocking
10
10
11
+ actual val emulatorHost: String = " 10.0.2.2"
12
+
11
13
actual val context: Any = InstrumentationRegistry .getInstrumentation().targetContext
12
14
13
15
actual fun runTest (test : suspend () -> Unit ) = runBlocking { test() }
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ actual fun runTest(test: suspend () -> Unit) = GlobalScope
9
9
.promise {
10
10
try {
11
11
test()
12
- } catch (e: dynamic ) {
13
- (e as ? Throwable )? .log()
12
+ } catch (e: Throwable ) {
13
+ e .log()
14
14
throw e
15
15
}
16
16
}.asDynamic()
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 24
24
"homepage" : " https://github.com/GitLiveApp/firebase-kotlin-sdk" ,
25
25
"dependencies" : {
26
26
"@gitlive/firebase-app" : " 1.4.3" ,
27
- "firebase" : " 8.10.0 " ,
27
+ "firebase" : " 9.4.1 " ,
28
28
"kotlin" : " 1.5.31" ,
29
29
"kotlinx-coroutines-core" : " 1.5.2"
30
30
}
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 24
24
"homepage" : " https://github.com/GitLiveApp/firebase-kotlin-sdk" ,
25
25
"dependencies" : {
26
26
"@gitlive/firebase-app" : " 1.4.3" ,
27
- "firebase" : " 8.10.0 " ,
27
+ "firebase" : " 9.4.1 " ,
28
28
"kotlin" : " 1.5.31" ,
29
29
"kotlinx-coroutines-core" : " 1.5.2"
30
30
}
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 24
24
"homepage" : " https://github.com/GitLiveApp/firebase-kotlin-sdk" ,
25
25
"dependencies" : {
26
26
"@gitlive/firebase-app" : " 1.4.3" ,
27
- "firebase" : " 8.10.0 " ,
27
+ "firebase" : " 9.4.1 " ,
28
28
"kotlin" : " 1.5.31" ,
29
29
"kotlinx-coroutines-core" : " 1.5.2"
30
30
}
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments