https://github.com/joreilly/firebaseailogickmpsample
Compose Multiplatform sample that uses the Firebase AI Logic SDKs
https://github.com/joreilly/firebaseailogickmpsample
android compose compose-ios compose-multiplatform firebase firebase-ai firebase-ai-logic gemini ios kmp kotlin kotlin-multiplatform swift
Last synced: 4 months ago
JSON representation
Compose Multiplatform sample that uses the Firebase AI Logic SDKs
- Host: GitHub
- URL: https://github.com/joreilly/firebaseailogickmpsample
- Owner: joreilly
- License: apache-2.0
- Created: 2024-10-23T17:06:12.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-22T16:11:07.000Z (4 months ago)
- Last Synced: 2025-08-30T15:42:42.301Z (4 months ago)
- Topics: android, compose, compose-ios, compose-multiplatform, firebase, firebase-ai, firebase-ai-logic, gemini, ios, kmp, kotlin, kotlin-multiplatform, swift
- Language: Kotlin
- Homepage:
- Size: 624 KB
- Stars: 51
- Watchers: 1
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Firebase AI Logic Compose/Kotlin Multiplatform Sample
Compose/Kotlin Multiplatform sample that makes use of the [Firebase AI Logic SDK](https://firebase.google.com/products/firebase-ai-logic).
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
- [Compose Multiplatform](https://jb.gg/compose)
- [Jetpack ViewModel](https://developer.android.com/topic/libraries/architecture/viewmodel)
- [Koin](https://github.com/InsertKoinIO/koin)
- [Markdown Renderer](https://github.com/mikepenz/multiplatform-markdown-renderer)
- [Coil](https://github.com/coil-kt/coil)
### Related posts
* [Using Vertex AI in a Compose/Kotlin Multiplatform project](https://johnoreilly.dev/posts/vertex-ai-kmp/)
## Screenshots

## Full set of Kotlin Multiplatform/Compose/SwiftUI samples
* PeopleInSpace (https://github.com/joreilly/PeopleInSpace)
* GalwayBus (https://github.com/joreilly/GalwayBus)
* Confetti (https://github.com/joreilly/Confetti)
* BikeShare (https://github.com/joreilly/BikeShare)
* FantasyPremierLeague (https://github.com/joreilly/FantasyPremierLeague)
* ClimateTrace (https://github.com/joreilly/ClimateTraceKMP)
* GeminiKMP (https://github.com/joreilly/GeminiKMP)
* MortyComposeKMM (https://github.com/joreilly/MortyComposeKMM)
* StarWars (https://github.com/joreilly/StarWars)
* WordMasterKMP (https://github.com/joreilly/WordMasterKMP)
* Chip-8 (https://github.com/joreilly/chip-8)
* FirebaseAILogicKMPSample (https://github.com/joreilly/FirebaseAILogicKMPSample)