Kotlin/Compose Multiplatform sample to demonstrate Gemini Generative AI APIs (text and image based queries). Uses Generative AI SDK.
Running on
- iOS
- Android
- Wear OS (contributed by https://github.com/yschimke)
- Desktop
- Web (Wasm)
Set your Gemini API key (gemini_api_key) in local.properties (which should also
contain your Android sdk.dir).
The project is split into per-platform modules:
androidApp— Android applicationwearApp— Wear OS applicationcomposeApp— shared Kotlin Multiplatform code plus the Desktop and Web (Wasm) entry pointsiosApp— iOS application (Xcode project)
Run each target with:
- Android —
./gradlew :androidApp:installDebug(or run theandroidAppconfiguration from Android Studio) - Wear OS —
./gradlew :wearApp:installDebug - Desktop —
./gradlew :composeApp:hotRunDesktop(orpackageDistributionForCurrentOSto build a native installer) - Web (Wasm) —
./gradlew :composeApp:wasmJsBrowserDevelopmentRun - iOS — open
iosApp/iosApp.xcodeprojin Xcode and run
Related posts:
| Assistant | Chat |
|---|---|
![]() |
![]() |
- 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)




