VertexAI-KMP-Sample
Introduction: Compose Multiplatform sample that uses the Firebase Vertex AI SDKs
Tags:
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.jsonin theandroidApp/directory. - iOS: place
GoogleService-Info.plistin theiosApp/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
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)
