
Generative AI integration for Firebase offering model creation, content DSL, multi-turn chat with streaming, safety filters, Vertex AI backend support, and token-estimation tools.
A Kotlin Multiplatform SDK for Firebase, with a focus on Firebase AI (Generative AI) capabilities.
Add to your gradle/libs.versions.toml:
[versions]
firebase-kotlin-sdk = "0.1.0"
[libraries]
firebase-app = { module = "dev.ynagai.firebase:firebase-app", version.ref = "firebase-kotlin-sdk" }
firebase-ai = { module = "dev.ynagai.firebase:firebase-ai", version.ref = "firebase-kotlin-sdk" }
firebase-auth = { module = "dev.ynagai.firebase:firebase-auth", version.ref = "firebase-kotlin-sdk" }
firebase-firestore = { module = "dev.ynagai.firebase:firebase-firestore", version.ref = "firebase-kotlin-sdk" }Add to your module's build.gradle.kts:
kotlin {
sourceSets {
commonMain.dependencies {
implementation(libs.firebase.app)
implementation(libs.firebase.ai)
implementation(libs.firebase.auth)
implementation(libs.firebase.firestore)
}
}
}See each module's README for detailed usage and examples:
Add your google-services.json to your app module and apply the Google Services plugin:
// build.gradle.kts (project)
plugins {
id("com.google.gms.google-services") version "4.4.2" apply false
}
// build.gradle.kts (app)
plugins {
id("com.google.gms.google-services")
}Add your GoogleService-Info.plist to your Xcode project and initialize Firebase in your app delegate:
import FirebaseCore
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
FirebaseApp.configure()
return true
}
}Copyright 2025 Yuki Nagai
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
A Kotlin Multiplatform SDK for Firebase, with a focus on Firebase AI (Generative AI) capabilities.
Add to your gradle/libs.versions.toml:
[versions]
firebase-kotlin-sdk = "0.1.0"
[libraries]
firebase-app = { module = "dev.ynagai.firebase:firebase-app", version.ref = "firebase-kotlin-sdk" }
firebase-ai = { module = "dev.ynagai.firebase:firebase-ai", version.ref = "firebase-kotlin-sdk" }
firebase-auth = { module = "dev.ynagai.firebase:firebase-auth", version.ref = "firebase-kotlin-sdk" }
firebase-firestore = { module = "dev.ynagai.firebase:firebase-firestore", version.ref = "firebase-kotlin-sdk" }Add to your module's build.gradle.kts:
kotlin {
sourceSets {
commonMain.dependencies {
implementation(libs.firebase.app)
implementation(libs.firebase.ai)
implementation(libs.firebase.auth)
implementation(libs.firebase.firestore)
}
}
}See each module's README for detailed usage and examples:
Add your google-services.json to your app module and apply the Google Services plugin:
// build.gradle.kts (project)
plugins {
id("com.google.gms.google-services") version "4.4.2" apply false
}
// build.gradle.kts (app)
plugins {
id("com.google.gms.google-services")
}Add your GoogleService-Info.plist to your Xcode project and initialize Firebase in your app delegate:
import FirebaseCore
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
FirebaseApp.configure()
return true
}
}Copyright 2025 Yuki Nagai
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.