Skip to content

Repository files navigation

kotlin-version

Firebase AI Logic Compose/Kotlin Multiplatform Sample

Compose/Kotlin Multiplatform sample that makes use of the Firebase AI Logic SDK. The iOS and Android clients share the same Compose UI code but delegate to platform specific Swift and Kotlin code to invoke the respective SDKs. Currently generates markdown text, configured json or images (using Imagegen 3)

The project uses the following multiplatform dependencies

Setup

This project talks to Firebase AI Logic, so you need to connect it to your own Firebase project. The Firebase config files are not committed — add your own:

  • Android: place google-services.json in the androidApp/ directory.
  • iOS: place GoogleService-Info.plist in the iosApp/ directory.

Then enable Firebase AI Logic (Gemini Developer API backend) for your Firebase project in the Firebase console. No API key is set in code — the app authenticates through your Firebase project via those config files.

Related posts

Screenshots

Screenshot 2025-08-09 at 15 49 21

Full set of Kotlin Multiplatform/Compose/SwiftUI samples

About

Compose Multiplatform sample that uses the Firebase AI Logic SDKs

Topics

Resources

Stars

64 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages