diff --git a/firebase-app/src/androidMain/kotlin/dev/gitlive/firebase/firebase.kt b/firebase-app/src/androidMain/kotlin/dev/gitlive/firebase/firebase.kt index fe3f354aa..37c834ac3 100644 --- a/firebase-app/src/androidMain/kotlin/dev/gitlive/firebase/firebase.kt +++ b/firebase-app/src/androidMain/kotlin/dev/gitlive/firebase/firebase.kt @@ -29,11 +29,11 @@ actual fun Firebase.initialize(context: Any?, options: FirebaseOptions, name: St actual fun Firebase.initialize(context: Any?, options: FirebaseOptions) = FirebaseApp(com.google.firebase.FirebaseApp.initializeApp(context as Context, options.toAndroid())) -actual class FirebaseApp internal constructor(val android: com.google.firebase.FirebaseApp) { +actual data class FirebaseApp internal constructor(val android: com.google.firebase.FirebaseApp) { actual val name: String get() = android.name actual val options: FirebaseOptions - get() = android.options.run { FirebaseOptions(applicationId, apiKey, databaseUrl, gaTrackingId, storageBucket, projectId) } + get() = android.options.run { FirebaseOptions(applicationId, apiKey, databaseUrl, gaTrackingId, storageBucket, projectId, gcmSenderId) } actual suspend fun delete() { android.delete() @@ -51,4 +51,4 @@ private fun FirebaseOptions.toAndroid() = com.google.firebase.FirebaseOptions.Bu .setStorageBucket(storageBucket) .setProjectId(projectId) .setGcmSenderId(gcmSenderId) - .build() \ No newline at end of file + .build() diff --git a/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt b/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt index e3074d2dc..f28d6ddee 100644 --- a/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt +++ b/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt @@ -27,11 +27,11 @@ actual fun Firebase.initialize(context: Any?, options: FirebaseOptions, name: St actual fun Firebase.initialize(context: Any?, options: FirebaseOptions) = FIRApp.configureWithOptions(options.toIos()).let { app } -actual class FirebaseApp internal constructor(val ios: FIRApp) { +actual data class FirebaseApp internal constructor(val ios: FIRApp) { actual val name: String get() = ios.name actual val options: FirebaseOptions - get() = ios.options.run { FirebaseOptions(bundleID, APIKey!!, databaseURL!!, trackingID, storageBucket, projectID) } + get() = ios.options.run { FirebaseOptions(bundleID, APIKey!!, databaseURL!!, trackingID, storageBucket, projectID, GCMSenderID) } actual suspend fun delete() { val deleted = CompletableDeferred() diff --git a/firebase-crashlytics/package.json b/firebase-crashlytics/package.json index 38a6f85f6..8b0981a1a 100644 --- a/firebase-crashlytics/package.json +++ b/firebase-crashlytics/package.json @@ -1,6 +1,6 @@ { "name": "@gitlive/firebase-crashlytics", - "version": "1.11.1", + "version": "1.12.0", "description": "Wrapper around firebase for usage in Kotlin Multiplatform projects", "main": "firebase-crashlytics.js", "scripts": { diff --git a/firebase-installations/package.json b/firebase-installations/package.json index f42942cd0..ab86a6f71 100644 --- a/firebase-installations/package.json +++ b/firebase-installations/package.json @@ -1,6 +1,6 @@ { "name": "@gitlive/firebase-installations", - "version": "1.11.1", + "version": "1.12.0", "description": "Wrapper around firebase for usage in Kotlin Multiplatform projects", "main": "firebase-installations.js", "scripts": { diff --git a/firebase-perf/package.json b/firebase-perf/package.json index b2ae653a5..f454d775c 100644 --- a/firebase-perf/package.json +++ b/firebase-perf/package.json @@ -1,6 +1,6 @@ { "name": "@gitlive/firebase-perf", - "version": "1.11.1", + "version": "1.12.0", "description": "Wrapper around firebase for usage in Kotlin Multiplatform projects", "main": "firebase-perf.js", "scripts": { diff --git a/firebase-storage/package.json b/firebase-storage/package.json index b3428f03c..67f721da8 100644 --- a/firebase-storage/package.json +++ b/firebase-storage/package.json @@ -1,6 +1,6 @@ { "name": "@gitlive/firebase-storage", - "version": "1.11.1", + "version": "1.12.0", "description": "Wrapper around firebase for usage in Kotlin Multiplatform projects", "main": "firebase-storage.js", "scripts": {