Skip to content

Commit b6c716a

Browse files
authored
Dependency updates (#118)
* updated dependencies (fixes #98, #108) * removed duplicate entry * need to split externals.kt to support default import (https://github.com/firebase/firebase-js-sdk/blob/master/packages/firebase/CHANGELOG.md#800) * fixed self call loop
1 parent ad169bb commit b6c716a

File tree

24 files changed

+88
-80
lines changed

24 files changed

+88
-80
lines changed

build.gradle.kts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import org.gradle.api.tasks.testing.logging.TestExceptionFormat
44
import org.gradle.api.tasks.testing.logging.TestLogEvent
55

66
plugins {
7-
kotlin("multiplatform") version "1.4.10" apply false
8-
id("de.undercouch.download").version("3.4.3")
7+
kotlin("multiplatform") version "1.4.21" apply false
8+
id("de.undercouch.download").version("4.1.1")
99
id("base")
1010
}
1111

@@ -19,8 +19,8 @@ buildscript {
1919
}
2020
}
2121
dependencies {
22-
classpath("com.android.tools.build:gradle:4.0.1")
23-
classpath("de.undercouch:gradle-download-task:4.0.4")
22+
classpath("com.android.tools.build:gradle:4.1.1")
23+
classpath("de.undercouch:gradle-download-task:4.1.1")
2424
classpath("com.adarshr:gradle-test-logger-plugin:2.0.0")
2525
}
2626
}
@@ -187,18 +187,18 @@ subprojects {
187187

188188
dependencies {
189189
"commonMainImplementation"(kotlin("stdlib-common"))
190-
"commonMainImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9")
190+
"commonMainImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2")
191191
"jsMainImplementation"(kotlin("stdlib-js"))
192-
"androidMainImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.3.9")
192+
"androidMainImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.4.2")
193193
"commonTestImplementation"(kotlin("test-common"))
194194
"commonTestImplementation"(kotlin("test-annotations-common"))
195-
"commonTestImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9")
195+
"commonTestImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2")
196196
"jsTestImplementation"(kotlin("test-js"))
197197
"androidAndroidTestImplementation"(kotlin("test-junit"))
198198
"androidAndroidTestImplementation"("junit:junit:4.13")
199-
"androidAndroidTestImplementation"("androidx.test:core:1.2.0")
200-
"androidAndroidTestImplementation"("androidx.test.ext:junit:1.1.1")
201-
"androidAndroidTestImplementation"("androidx.test:runner:1.2.0")
199+
"androidAndroidTestImplementation"("androidx.test:core:1.3.0")
200+
"androidAndroidTestImplementation"("androidx.test.ext:junit:1.1.2")
201+
"androidAndroidTestImplementation"("androidx.test:runner:1.3.0")
202202
}
203203
}
204204

firebase-app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ kotlin {
6868
}
6969
val androidMain by getting {
7070
dependencies {
71-
api("com.google.firebase:firebase-common:19.3.1")
71+
api("com.google.firebase:firebase-common:19.4.0")
7272
}
7373
}
7474

firebase-app/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gitlive/firebase-app",
3-
"version": "0",
3+
"version": "1.0.0",
44
"description": "Wrapper around firebase for usage in Kotlin Multiplatform projects",
55
"main": "firebase-app.js",
66
"scripts": {
@@ -23,9 +23,9 @@
2323
},
2424
"homepage": "https://github.com/GitLiveApp/firebase-kotlin-sdk",
2525
"dependencies": {
26-
"@gitlive/firebase-common": "0",
27-
"firebase": "7.14.0",
28-
"kotlin": "1.3.72",
29-
"kotlinx-coroutines-core": "1.3.5"
26+
"@gitlive/firebase-common": "1.0.0",
27+
"firebase": "8.2.0",
28+
"kotlin": "1.4.21",
29+
"kotlinx-coroutines-core": "1.4.2"
3030
}
3131
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json" == 6.30.0
1+
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json" == 7.3.0

firebase-auth/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ kotlin {
9999

100100
val androidMain by getting {
101101
dependencies {
102-
api("com.google.firebase:firebase-auth:19.3.2")
102+
api("com.google.firebase:firebase-auth:20.0.1")
103103
}
104104
}
105105

firebase-auth/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gitlive/firebase-auth",
3-
"version": "0",
3+
"version": "1.0.0",
44
"description": "Wrapper around firebase for usage in Kotlin Multiplatform projects",
55
"main": "firebase-auth.js",
66
"scripts": {
@@ -23,9 +23,9 @@
2323
},
2424
"homepage": "https://github.com/GitLiveApp/firebase-kotlin-sdk",
2525
"dependencies": {
26-
"@gitlive/firebase-app": "0",
27-
"firebase": "7.14.0",
28-
"kotlin": "1.3.72",
29-
"kotlinx-coroutines-core": "1.3.5"
26+
"@gitlive/firebase-app": "1.0.0",
27+
"firebase": "8.2.0",
28+
"kotlin": "1.4.21",
29+
"kotlinx-coroutines-core": "1.4.2"
3030
}
3131
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAuthBinary.json" == 6.30.0
1+
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAuthBinary.json" == 7.3.0

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ private fun NSError.toException() = when(domain) {
155155
FIRAuthErrorCodeInvalidActionCode,
156156
FIRAuthErrorCodeExpiredActionCode -> FirebaseAuthActionCodeException(toString())
157157

158-
FIRAuthErrorCodeInvalidEmail,
159-
FIRAuthErrorCodeEmailAlreadyInUse -> FirebaseAuthEmailException(toString())
158+
FIRAuthErrorCodeInvalidEmail -> FirebaseAuthEmailException(toString())
160159

161160
FIRAuthErrorCodeCaptchaCheckFailed,
162161
FIRAuthErrorCodeInvalidPhoneNumber,

firebase-auth/src/iosMain/kotlin/dev/gitlive/firebase/auth/user.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ actual class FirebaseUser internal constructor(val ios: FIRUser) {
4545
ios.awaitResult<FIRUser, FIRAuthDataResult?> { reauthenticateWithCredential(credential.ios, it) }.run { Unit }
4646

4747
actual suspend fun reauthenticateAndRetrieveData(credential: AuthCredential): AuthResult =
48-
AuthResult(ios.awaitResult { reauthenticateAndRetrieveDataWithCredential(credential.ios, it) })
48+
AuthResult(ios.awaitResult { reauthenticateWithCredential(credential.ios, it) })
4949

5050
actual suspend fun sendEmailVerification(actionCodeSettings: ActionCodeSettings?) = ios.await {
5151
actionCodeSettings?.let { settings -> sendEmailVerificationWithActionCodeSettings(settings.toIos(), it) }

firebase-common/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ version = project.property("firebase-common.version") as String
77
plugins {
88
id("com.android.library")
99
kotlin("multiplatform")
10-
kotlin("plugin.serialization") version "1.4.10"
10+
kotlin("plugin.serialization") version "1.4.21"
1111
}
1212

1313
android {
@@ -63,17 +63,17 @@ kotlin {
6363
sourceSets {
6464
val commonMain by getting {
6565
dependencies {
66-
api("org.jetbrains.kotlinx:kotlinx-serialization-core:1.0.0")
66+
api("org.jetbrains.kotlinx:kotlinx-serialization-core:1.0.1")
6767
}
6868
}
6969
val androidMain by getting {
7070
dependencies {
71-
api("com.google.firebase:firebase-common:19.3.0")
71+
api("com.google.firebase:firebase-common:19.4.0")
7272
}
7373
}
7474
val jsMain by getting {
7575
dependencies {
76-
api(npm("firebase", "7.14.0"))
76+
api(npm("firebase", "8.2.0"))
7777
}
7878
}
7979
val iosMain by getting {

0 commit comments

Comments
 (0)