Skip to content

Commit 4a1ba94

Browse files
authored
updated Firebase SDKs (#252)
* updated Firebase SDKs, fixed one missing -ktx dependency, fixed wrong version of firebase npm dependency in gradle * updated minSdkVersion * adjusting try-catch blocks in jsTest * removed -ktx dependencies
1 parent 0ff3444 commit 4a1ba94

File tree

15 files changed

+18
-18
lines changed

15 files changed

+18
-18
lines changed

build.gradle.kts

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ 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
}
2424

2525
val targetSdkVersion by extra(30)
26-
val minSdkVersion by extra(16)
26+
val minSdkVersion by extra(19)
2727

2828
tasks {
2929
val updateVersions by registering {
@@ -196,7 +196,7 @@ subprojects {
196196
dependencies {
197197
"commonMainImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2")
198198
"androidMainImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.5.2")
199-
"androidMainImplementation"(platform("com.google.firebase:firebase-bom:28.4.1"))
199+
"androidMainImplementation"(platform("com.google.firebase:firebase-bom:29.0.0"))
200200
"commonTestImplementation"(kotlin("test-common"))
201201
"commonTestImplementation"(kotlin("test-annotations-common"))
202202
"commonTestImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2")

firebase-app/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ kotlin {
134134

135135
val androidMain by getting {
136136
dependencies {
137-
api("com.google.firebase:firebase-common-ktx")
137+
api("com.google.firebase:firebase-common")
138138
}
139139
}
140140

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ actual fun runTest(test: suspend () -> Unit) = GlobalScope
1414
try {
1515
test()
1616
} catch (e: dynamic) {
17-
e.log()
17+
(e as? Throwable)?.log()
1818
throw e
1919
}
2020
}.asDynamic()
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/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ kotlin {
165165

166166
val androidMain by getting {
167167
dependencies {
168-
api("com.google.firebase:firebase-auth-ktx")
168+
api("com.google.firebase:firebase-auth")
169169
}
170170
}
171171

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
@@ -92,7 +92,7 @@ kotlin {
9292

9393
val androidMain by getting {
9494
dependencies {
95-
api("com.google.firebase:firebase-common-ktx")
95+
api("com.google.firebase:firebase-common")
9696
}
9797
}
9898

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/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-database-ktx")
146+
api("com.google.firebase:firebase-database")
147147
}
148148
}
149149

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/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ kotlin {
149149

150150
val androidMain by getting {
151151
dependencies {
152-
api("com.google.firebase:firebase-firestore-ktx")
152+
api("com.google.firebase:firebase-firestore")
153153
}
154154
}
155155

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ actual fun runTest(test: suspend CoroutineScope.() -> Unit) = GlobalScope
1616
.promise {
1717
try {
1818
test()
19-
} catch (e: Throwable) {
20-
e.log()
19+
} catch (e: dynamic) {
20+
(e as? Throwable)?.log()
2121
throw e
2222
}
2323
}.asDynamic()
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/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ kotlin {
137137

138138
val androidMain by getting {
139139
dependencies {
140-
api("com.google.firebase:firebase-functions-ktx")
140+
api("com.google.firebase:firebase-functions")
141141
}
142142
}
143143

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)