GeminiKMP icon indicating copy to clipboard operation
GeminiKMP copied to clipboard

Kotlin Multiplatform sample that uses Gemini Generative AI APIs. Runs on Android, iOS, Desktop and Wasm based Compose for Web.

kotlin-version

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

Related posts:

Screenshots

iOS

Simulator Screenshot - iPhone 15 Pro - 2024-01-19 at 19 15 53

Android

Screenshot_1705691519

Compose for Desktop

Screenshot 2024-01-19 at 19 03 52 Screenshot 2024-01-14 at 17 41 26

Wasm based Compose for Web

Screenshot 2023-12-31 at 13 01 02 Screenshot 2024-01-14 at 19 26 05

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)