diff --git a/build.gradle.kts b/build.gradle.kts index d48cda42..3f242929 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -10,6 +10,7 @@ buildscript { google() mavenCentral() } + dependencies { classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion") classpath("org.jetbrains.dokka:dokka-gradle-plugin:1.7.10") diff --git a/server-firebase/build.gradle.kts b/server-firebase/build.gradle.kts index 4e038386..54f06435 100644 --- a/server-firebase/build.gradle.kts +++ b/server-firebase/build.gradle.kts @@ -17,7 +17,7 @@ val khrysalisVersion: String by project dependencies { api(project(":server-core")) - api("com.google.firebase:firebase-admin:9.1.1") + api("com.google.firebase:firebase-admin:9.3.0") ksp(project(":processor")) kspTest(project(":processor")) diff --git a/server-firebase/src/main/kotlin/com/lightningkite/lightningserver/notifications/FcmNotificationClient.kt b/server-firebase/src/main/kotlin/com/lightningkite/lightningserver/notifications/FcmNotificationClient.kt index 13ad2442..15f66ac0 100644 --- a/server-firebase/src/main/kotlin/com/lightningkite/lightningserver/notifications/FcmNotificationClient.kt +++ b/server-firebase/src/main/kotlin/com/lightningkite/lightningserver/notifications/FcmNotificationClient.kt @@ -9,7 +9,6 @@ import kotlinx.coroutines.withContext import java.io.File import com.google.firebase.messaging.Notification as FCMNotification - /** * The concrete implementation of NotificationClient that will use Firebase Messaging to send push notifications to * clients. @@ -144,7 +143,7 @@ object FcmNotificationClient : NotificationClient { } .forEach { withContext(Dispatchers.IO) { - FirebaseMessaging.getInstance().sendMulticast(it) + FirebaseMessaging.getInstance().sendEachForMulticast(it) } }