Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joreilly/geminikmp

Kotlin Multiplatform sample that uses Gemini Generative AI APIs. Runs on Android, iOS, Desktop and Wasm based Compose for Web.
https://github.com/joreilly/geminikmp

android compose compose-multiplatform gemini ios kotlin-multiplatform wasm

Last synced: 4 days ago
JSON representation

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

Awesome Lists containing this project

README

        

![kotlin-version](https://img.shields.io/badge/kotlin-2.0.0-blue?logo=kotlin)

Kotlin/Compose Multiplatform sample to demonstrate Gemini Generative AI APIs (text and image based queries).
Uses [Generative AI SDK](https://github.com/PatilShreyas/generative-ai-kmp).

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:
* [Exploring use of Gemini Generative AI APIs in a Kotlin/Compose Multiplatform project](https://johnoreilly.dev/posts/gemini-kotlin-multiplatform/)

## Screenshots

### iOS

![Simulator Screenshot - iPhone 15 Pro - 2024-01-19 at 19 15 53](https://github.com/joreilly/GeminiKMP/assets/6302/91e5d4f5-7cb5-40d4-95fb-c5d87bac7918)

### Android

![Screenshot_1705691519](https://github.com/joreilly/GeminiKMP/assets/6302/668145c1-1dcf-4cd5-8b1d-a04f7ebd6866)

### 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)