Skip to content

Commit 3600a58

Browse files
authoredApr 20, 2022
Merge pull request #277 from suntrix/kotlin-1-6-update
updated Kotlin to 1.6.10, Android target SDK to 31, Android Gradle Plugin to 7.1.0 & dependencies
2 parents d67cb82 + 4ce4a49 commit 3600a58

File tree

25 files changed

+103
-104
lines changed

25 files changed

+103
-104
lines changed
 

‎README.md

+21-20
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@ The Firebase Kotlin SDK is a Kotlin-first SDK for Firebase. It's API is similar
1010

1111
The following libraries are available for the various Firebase products.
1212

13-
| Service or Product | Gradle Dependency | API Coverage |
14-
| ------------------------------------------------------------------------------------ |:-----------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
15-
| [Authentication](https://firebase.google.com/docs/auth) | [`dev.gitlive:firebase-auth:1.6.0`](https://search.maven.org/artifact/dev.gitlive/firebase-auth/1.6.0/pom) | [![80%](https://img.shields.io/badge/-80%25-green?style=flat-square)](/firebase-auth/src/commonMain/kotlin/dev/gitlive/firebase/auth/auth.kt) |
16-
| [Realtime Database](https://firebase.google.com/docs/database) | [`dev.gitlive:firebase-database:1.6.0`](https://search.maven.org/artifact/dev.gitlive/firebase-database/1.6.0/pom) | [![70%](https://img.shields.io/badge/-70%25-orange?style=flat-square)](/firebase-database/src/commonMain/kotlin/dev/gitlive/firebase/database/database.kt) |
17-
| [Cloud Firestore](https://firebase.google.com/docs/firestore) | [`dev.gitlive:firebase-firestore:1.6.0`](https://search.maven.org/artifact/dev.gitlive/firebase-firestore/1.6.0/pom) | [![70%](https://img.shields.io/badge/-70%25-orange?style=flat-square)](/firebase-firestore/src/commonMain/kotlin/dev/gitlive/firebase/firestore/firestore.kt) |
18-
| [Cloud Functions](https://firebase.google.com/docs/functions)| [`dev.gitlive:firebase-functions:1.6.0`](https://search.maven.org/artifact/dev.gitlive/firebase-functions/1.6.0/pom) | [![80%](https://img.shields.io/badge/-80%25-green?style=flat-square)](/firebase-functions/src/commonMain/kotlin/dev/gitlive/firebase/functions/functions.kt) |
19-
| [Cloud Messaging](https://firebase.google.com/docs/cloud-messaging) | [`dev.gitlive:firebase-messaging:1.6.0`](https://search.maven.org/artifact/dev.gitlive/firebase-messaging/1.6.0/pom) | ![0%](https://img.shields.io/badge/-0%25-lightgrey?style=flat-square) |
20-
| [Cloud Storage](https://firebase.google.com/docs/storage) | [`dev.gitlive:firebase-storage:1.6.0`](https://search.maven.org/artifact/dev.gitlive/firebase-storage/1.6.0/pom) | ![0%](https://img.shields.io/badge/-0%25-lightgrey?style=flat-square) |
21-
| [Installations](https://firebase.google.com/docs/projects/manage-installations) | [`dev.gitlive:firebase-installations:1.6.0`](https://search.maven.org/artifact/dev.gitlive/firebase-installations/1.6.0/pom) | [![90%](https://img.shields.io/badge/-90%25-green?style=flat-square)](/firebase-installations/src/commonMain/kotlin/dev/gitlive/firebase/installations/installations.kt) |
22-
| [Remote Config](https://firebase.google.com/docs/remote-config) | [`dev.gitlive:firebase-config:1.6.0`](https://search.maven.org/artifact/dev.gitlive/firebase-config/1.6.0/pom) | ![20%](https://img.shields.io/badge/-20%25-orange?style=flat-square) |
13+
| Service or Product | Gradle Dependency | API Coverage |
14+
| ------------------------------------------------------------------------------------ | :-----------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
15+
| [Authentication](https://firebase.google.com/docs/auth) | [`dev.gitlive:firebase-auth:1.6.1`](https://search.maven.org/artifact/dev.gitlive/firebase-auth/1.6.1/pom) | [![80%](https://img.shields.io/badge/-80%25-green?style=flat-square)](/firebase-auth/src/commonMain/kotlin/dev/gitlive/firebase/auth/auth.kt) |
16+
| [Realtime Database](https://firebase.google.com/docs/database) | [`dev.gitlive:firebase-database:1.6.1`](https://search.maven.org/artifact/dev.gitlive/firebase-database/1.6.1/pom) | [![70%](https://img.shields.io/badge/-70%25-orange?style=flat-square)](/firebase-database/src/commonMain/kotlin/dev/gitlive/firebase/database/database.kt) |
17+
| [Cloud Firestore](https://firebase.google.com/docs/firestore) | [`dev.gitlive:firebase-firestore:1.6.1`](https://search.maven.org/artifact/dev.gitlive/firebase-firestore/1.6.1/pom) | [![60%](https://img.shields.io/badge/-60%25-orange?style=flat-square)](/firebase-firestore/src/commonMain/kotlin/dev/gitlive/firebase/firestore/firestore.kt) |
18+
| [Cloud Functions](https://firebase.google.com/docs/functions)| [`dev.gitlive:firebase-functions:1.6.1`](https://search.maven.org/artifact/dev.gitlive/firebase-functions/1.6.1/pom) | [![80%](https://img.shields.io/badge/-80%25-green?style=flat-square)](/firebase-functions/src/commonMain/kotlin/dev/gitlive/firebase/functions/functions.kt) |
19+
| [Cloud Messaging](https://firebase.google.com/docs/cloud-messaging) | [`dev.gitlive:firebase-messaging:1.6.1`](https://search.maven.org/artifact/dev.gitlive/firebase-messaging/1.6.1/pom) | ![0%](https://img.shields.io/badge/-0%25-lightgrey?style=flat-square) |
20+
| [Cloud Storage](https://firebase.google.com/docs/storage) | [`dev.gitlive:firebase-storage:1.6.1`](https://search.maven.org/artifact/dev.gitlive/firebase-storage/1.6.1/pom) | ![0%](https://img.shields.io/badge/-0%25-lightgrey?style=flat-square) |
21+
| [Installations](https://firebase.google.com/docs/projects/manage-installations) | [`dev.gitlive:firebase-installations:1.6.1`](https://search.maven.org/artifact/dev.gitlive/firebase-installations/1.6.1/pom) | [![90%](https://img.shields.io/badge/-90%25-green?style=flat-square)](/firebase-installations/src/commonMain/kotlin/dev/gitlive/firebase/installations/installations.kt) |
22+
| [Remote Config](https://firebase.google.com/docs/remote-config) | [`dev.gitlive:firebase-config:1.6.1`](https://search.maven.org/artifact/dev.gitlive/firebase-config/1.6.1/pom) | ![20%](https://img.shields.io/badge/-20%25-orange?style=flat-square) |
23+
2324

2425

2526

@@ -66,8 +67,8 @@ The Firebase Kotlin SDK uses Kotlin serialization to read and write custom class
6667

6768
```groovy
6869
plugins {
69-
kotlin("multiplatform") // or kotlin("jvm") or any other kotlin plugin
70-
kotlin("plugin.serialization") version "1.5.30"
70+
kotlin("multiplatform") version "1.6.10" // or kotlin("jvm") or any other kotlin plugin
71+
kotlin("plugin.serialization") version "1.6.10"
7172
}
7273
```
7374

@@ -200,14 +201,14 @@ If you are building a Kotlin multiplatform library which will be consumed from J
200201

201202
```json
202203
"dependencies": {
203-
"@gitlive/firebase-auth": "1.6.0",
204-
"@gitlive/firebase-config": "1.6.0",
205-
"@gitlive/firebase-database": "1.6.0",
206-
"@gitlive/firebase-firestore": "1.6.0",
207-
"@gitlive/firebase-functions": "1.6.0",
208-
"@gitlive/firebase-installations": "1.6.0",
209-
"@gitlive/firebase-messaging": "1.6.0",
210-
"@gitlive/firebase-storage": "1.6.0"
204+
"@gitlive/firebase-auth": "1.6.1",
205+
"@gitlive/firebase-config": "1.6.1",
206+
"@gitlive/firebase-database": "1.6.1",
207+
"@gitlive/firebase-firestore": "1.6.1",
208+
"@gitlive/firebase-functions": "1.6.1",
209+
"@gitlive/firebase-installations": "1.6.1",
210+
"@gitlive/firebase-messaging": "1.6.1",
211+
"@gitlive/firebase-storage": "1.6.1"
211212
}
212213
```
213214

‎build.gradle.kts

+9-9
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import org.gradle.api.tasks.testing.logging.TestExceptionFormat
33
import org.gradle.api.tasks.testing.logging.TestLogEvent
44

55
plugins {
6-
kotlin("multiplatform") version "1.5.31" apply false
6+
kotlin("multiplatform") version "1.6.10" apply false
77
id("base")
88
}
99

@@ -17,12 +17,12 @@ buildscript {
1717
}
1818
}
1919
dependencies {
20-
classpath("com.android.tools.build:gradle:7.0.3")
20+
classpath("com.android.tools.build:gradle:7.1.0")
2121
classpath("com.adarshr:gradle-test-logger-plugin:2.1.1")
2222
}
2323
}
2424

25-
val targetSdkVersion by extra(30)
25+
val targetSdkVersion by extra(31)
2626
val minSdkVersion by extra(19)
2727

2828
tasks {
@@ -44,7 +44,7 @@ subprojects {
4444

4545
group = "dev.gitlive"
4646

47-
apply(plugin="com.adarshr.test-logger")
47+
apply(plugin = "com.adarshr.test-logger")
4848

4949
repositories {
5050
mavenLocal()
@@ -107,7 +107,7 @@ subprojects {
107107
into.writeText(
108108
from.readText()
109109
.replace("require('firebase-kotlin-sdk-", "require('@gitlive/")
110-
// .replace("require('kotlinx-serialization-kotlinx-serialization-runtime')", "require('@gitlive/kotlinx-serialization-runtime')")
110+
// .replace("require('kotlinx-serialization-kotlinx-serialization-runtime')", "require('@gitlive/kotlinx-serialization-runtime')")
111111
)
112112
}
113113
}
@@ -197,12 +197,12 @@ subprojects {
197197
}
198198

199199
dependencies {
200-
"commonMainImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2-native-mt")
201-
"androidMainImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.5.2-native-mt")
202-
"androidMainImplementation"(platform("com.google.firebase:firebase-bom:29.0.1"))
200+
"commonMainImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0-native-mt")
201+
"androidMainImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.6.0-native-mt")
202+
"androidMainImplementation"(platform("com.google.firebase:firebase-bom:29.3.0"))
203203
"commonTestImplementation"(kotlin("test-common"))
204204
"commonTestImplementation"(kotlin("test-annotations-common"))
205-
"commonTestImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2-native-mt")
205+
"commonTestImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0-native-mt")
206206
"jsTestImplementation"(kotlin("test-js"))
207207
"androidAndroidTestImplementation"(kotlin("test-junit"))
208208
"androidAndroidTestImplementation"("junit:junit:4.13.2")

‎firebase-app/build.gradle.kts

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ android {
4040
resources.pickFirsts.add("META-INF/LGPL2.1")
4141
}
4242
lint {
43-
isAbortOnError = false
43+
abortOnError = false
4444
}
4545
}
4646

@@ -120,8 +120,8 @@ kotlin {
120120
sourceSets {
121121
all {
122122
languageSettings.apply {
123-
apiVersion = "1.5"
124-
languageVersion = "1.5"
123+
apiVersion = "1.6"
124+
languageVersion = "1.6"
125125
progressiveMode = true
126126
}
127127
}

‎firebase-app/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
},
2424
"homepage": "https://github.com/GitLiveApp/firebase-kotlin-sdk",
2525
"dependencies": {
26-
"@gitlive/firebase-common": "1.6.0",
27-
"firebase": "9.4.1",
28-
"kotlin": "1.5.31",
29-
"kotlinx-coroutines-core": "1.5.2-native-mt"
26+
"@gitlive/firebase-common": "1.6.1",
27+
"firebase": "9.6.10",
28+
"kotlin": "1.6.10",
29+
"kotlinx-coroutines-core": "1.6.0-native-mt"
3030
}
3131
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json" == 8.9.1
1+
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json" == 8.14.0

‎firebase-auth/build.gradle.kts

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ android {
5050
resources.pickFirsts.add("META-INF/LGPL2.1")
5151
}
5252
lint {
53-
isAbortOnError = false
53+
abortOnError = false
5454
}
5555
}
5656

@@ -149,8 +149,8 @@ kotlin {
149149
sourceSets {
150150
all {
151151
languageSettings.apply {
152-
apiVersion = "1.5"
153-
languageVersion = "1.5"
152+
apiVersion = "1.6"
153+
languageVersion = "1.6"
154154
progressiveMode = true
155155
optIn("kotlinx.coroutines.ExperimentalCoroutinesApi")
156156
}

‎firebase-auth/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
},
2424
"homepage": "https://github.com/GitLiveApp/firebase-kotlin-sdk",
2525
"dependencies": {
26-
"@gitlive/firebase-app": "1.6.0",
27-
"firebase": "9.4.1",
28-
"kotlin": "1.5.31",
29-
"kotlinx-coroutines-core": "1.5.2-native-mt"
26+
"@gitlive/firebase-app": "1.6.1",
27+
"firebase": "9.6.10",
28+
"kotlin": "1.6.10",
29+
"kotlinx-coroutines-core": "1.6.0-native-mt"
3030
}
3131
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAuthBinary.json" == 8.9.1
1+
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAuthBinary.json" == 8.14.0

‎firebase-common/build.gradle.kts

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ version = project.property("firebase-common.version") as String
99
plugins {
1010
id("com.android.library")
1111
kotlin("multiplatform")
12-
kotlin("plugin.serialization") version "1.5.31"
12+
kotlin("plugin.serialization") version "1.6.10"
1313
}
1414

1515
android {
@@ -36,7 +36,7 @@ android {
3636
resources.pickFirsts.add("META-INF/LGPL2.1")
3737
}
3838
lint {
39-
isAbortOnError = false
39+
abortOnError = false
4040
}
4141
}
4242

@@ -74,8 +74,8 @@ kotlin {
7474
sourceSets {
7575
all {
7676
languageSettings.apply {
77-
apiVersion = "1.5"
78-
languageVersion = "1.5"
77+
apiVersion = "1.6"
78+
languageVersion = "1.6"
7979
progressiveMode = true
8080
optIn("kotlin.Experimental")
8181
optIn("kotlinx.coroutines.ExperimentalCoroutinesApi")
@@ -86,7 +86,7 @@ kotlin {
8686

8787
val commonMain by getting {
8888
dependencies {
89-
api("org.jetbrains.kotlinx:kotlinx-serialization-core:1.3.0")
89+
api("org.jetbrains.kotlinx:kotlinx-serialization-core:1.3.2")
9090
}
9191
}
9292

‎firebase-common/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
},
2424
"homepage": "https://github.com/GitLiveApp/firebase-kotlin-multiplatform-sdk",
2525
"dependencies": {
26-
"firebase": "9.4.1",
27-
"kotlin": "1.5.31",
28-
"kotlinx-coroutines-core": "1.5.2-native-mt",
29-
"kotlinx-serialization-kotlinx-serialization-runtime": "1.3.0"
26+
"firebase": "9.6.10",
27+
"kotlin": "1.6.10",
28+
"kotlinx-coroutines-core": "1.6.0-native-mt",
29+
"kotlinx-serialization-kotlinx-serialization-runtime": "1.3.2"
3030
}
3131
}

‎firebase-config/build.gradle.kts

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ android {
3939
resources.pickFirsts.add("META-INF/LGPL2.1")
4040
}
4141
lint {
42-
isAbortOnError = false
42+
abortOnError = false
4343
}
4444
}
4545

@@ -127,8 +127,8 @@ kotlin {
127127
sourceSets {
128128
all {
129129
languageSettings.apply {
130-
apiVersion = "1.5"
131-
languageVersion = "1.5"
130+
apiVersion = "1.6"
131+
languageVersion = "1.6"
132132
progressiveMode = true
133133
optIn("kotlinx.coroutines.ExperimentalCoroutinesApi")
134134
}

‎firebase-config/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
},
2424
"homepage": "https://github.com/GitLiveApp/firebase-kotlin-sdk",
2525
"dependencies": {
26-
"@gitlive/firebase-app": "1.6.0",
27-
"firebase": "9.4.1",
28-
"kotlin": "1.5.31",
29-
"kotlinx-coroutines-core": "1.5.2-native-mt"
26+
"@gitlive/firebase-app": "1.6.1",
27+
"firebase": "9.6.10",
28+
"kotlin": "1.6.10",
29+
"kotlinx-coroutines-core": "1.6.0-native-mt"
3030
}
3131
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseRemoteConfigBinary.json" == 8.9.1
1+
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseRemoteConfigBinary.json" == 8.14.0

‎firebase-database/build.gradle.kts

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ android {
4646
resources.pickFirsts.add("META-INF/LGPL2.1")
4747
}
4848
lint {
49-
isAbortOnError = false
49+
abortOnError = false
5050
}
5151
}
5252

@@ -132,8 +132,8 @@ kotlin {
132132
sourceSets {
133133
all {
134134
languageSettings.apply {
135-
apiVersion = "1.5"
136-
languageVersion = "1.5"
135+
apiVersion = "1.6"
136+
languageVersion = "1.6"
137137
progressiveMode = true
138138
optIn("kotlinx.coroutines.ExperimentalCoroutinesApi")
139139
optIn("kotlinx.coroutines.FlowPreview")

‎firebase-database/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
},
2424
"homepage": "https://github.com/GitLiveApp/firebase-kotlin-sdk",
2525
"dependencies": {
26-
"@gitlive/firebase-app": "1.6.0",
27-
"firebase": "9.4.1",
28-
"kotlin": "1.5.31",
29-
"kotlinx-coroutines-core": "1.5.2-native-mt"
26+
"@gitlive/firebase-app": "1.6.1",
27+
"firebase": "9.6.10",
28+
"kotlin": "1.6.10",
29+
"kotlinx-coroutines-core": "1.6.0-native-mt"
3030
}
3131
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseDatabaseBinary.json" == 8.9.1
1+
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseDatabaseBinary.json" == 8.14.0

‎firebase-firestore/build.gradle.kts

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ version = project.property("firebase-firestore.version") as String
1010
plugins {
1111
id("com.android.library")
1212
kotlin("multiplatform")
13-
kotlin("plugin.serialization") version "1.5.31"
13+
kotlin("plugin.serialization") version "1.6.10"
1414
}
1515

1616
android {
@@ -42,7 +42,7 @@ android {
4242
resources.pickFirsts.add("androidsupportmultidexversion.txt")
4343
}
4444
lint {
45-
isAbortOnError = false
45+
abortOnError = false
4646
}
4747
}
4848

@@ -132,8 +132,8 @@ kotlin {
132132
sourceSets {
133133
all {
134134
languageSettings.apply {
135-
apiVersion = "1.5"
136-
languageVersion = "1.5"
135+
apiVersion = "1.6"
136+
languageVersion = "1.6"
137137
progressiveMode = true
138138
optIn("kotlinx.coroutines.ExperimentalCoroutinesApi")
139139
optIn("kotlinx.serialization.InternalSerializationApi")

‎firebase-firestore/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
},
2424
"homepage": "https://github.com/GitLiveApp/firebase-kotlin-sdk",
2525
"dependencies": {
26-
"@gitlive/firebase-app": "1.6.0",
27-
"firebase": "9.4.1",
28-
"kotlin": "1.5.31",
29-
"kotlinx-coroutines-core": "1.5.2-native-mt"
26+
"@gitlive/firebase-app": "1.6.1",
27+
"firebase": "9.6.10",
28+
"kotlin": "1.6.10",
29+
"kotlinx-coroutines-core": "1.6.0-native-mt"
3030
}
3131
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseFirestoreBinary.json" == 8.9.1
1+
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseFirestoreBinary.json" == 8.14.0

‎firebase-functions/build.gradle.kts

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ android {
3434
resources.pickFirsts.add("META-INF/LGPL2.1")
3535
}
3636
lint {
37-
isAbortOnError = false
37+
abortOnError = false
3838
}
3939
}
4040

@@ -120,8 +120,8 @@ kotlin {
120120
sourceSets {
121121
all {
122122
languageSettings.apply {
123-
apiVersion = "1.5"
124-
languageVersion = "1.5"
123+
apiVersion = "1.6"
124+
languageVersion = "1.6"
125125
progressiveMode = true
126126
optIn("kotlinx.coroutines.ExperimentalCoroutinesApi")
127127
optIn("kotlinx.serialization.InternalSerializationApi")

0 commit comments

Comments
 (0)
Failed to load comments.