Click the image above to watch a demo of the Gemini AI KMP App on YouTube.
The Gemini AI KMP App is a Kotlin Compose Multiplatform project designed to target Android, iOS, Windows, macOS, Linux, and Web platforms. It is an application by Gemini AI where you can retrieve information from text and images in a conversational format. Additionally, it allows storing chats group-wise using SQLDelight and KStore, and facilitates changing the Gemini API key.
Platform | Release File |
---|---|
📱 Mobile | |
🖥️ Desktop | |
🌎 Web |
- Engage in conversations from any device, including smartphones, tablets, desktops, and web browsers
- Retrieve information from text and images in a conversational format.
- Store chats group-wise using SQLDelight and KStore.
- Facilitating changing the Gemini API key.
- Simple Clean UI with Animations
- Kotlin
- Clean Architecture
- Jetpack Compose for UI development
- Koin for Dependency Injection
- SQLDelight and KStore library to Store chats
- Generative AI for All AI-related stuff
- BuildKonfig - BuildConfig for Kotlin Multiplatform Project. It currently supports embedding values from gradle file.
- Koin - Kotlin dependency injection library with multiplatform support.
- Ktor - Provides multiplatform libraries required to make network calls to the REST API.
- Kermit - Kermit by Touchlab is a Kotlin Multiplatform centralized logging utility.
- ViewModel - Compose Multiplatform ViewModel and it's Kotlin Multiplatform project.
- Compose Multiplatform File Picker - A multiplatform compose widget for picking files.
- Multiplatform Settings - This is a Kotlin library for Multiplatform apps, so that common code can persist key-value data.
- SQLDelight - Cross-Platform database library
- KStore - A tiny Kotlin multiplatform library that assists in saving and restoring objects to and from disk using kotlinx.coroutines, kotlinx.serialisation and okio.
- kotlinx.coroutines - Library support for Kotlin coroutines with multiplatform support.
- kotlinx.serialization - Provides sets of libraries for various serialization formats eg. JSON, protocol buffers, CBOR etc.
- kotlinx.datetime - A multiplatform Kotlin library for working with date and time.
-
Clone this repository:
git clone https://github.com/Coding-Meet/Gemini-AI-KMP-App.git
-
Open in the latest version of Android Studio.
-
Before running the project, obtain an API key from Google AI to communicate with the Gemini API.
-
Add a
local.properties
file to the project root. -
Place your Gemini API key in
local.properties
file asGEMINI_API_KEY
property.
GEMINI_API_KEY=YOUR_API_KEY
- Configuration of SQLDelight in Android Studio:
- Click on the Gradle icon at the top right corner.
- Run the following Gradle tasks:
generateCommonMainGeminiApiChatDBInterface
generateSqlDelightInterface
- For Android, run the
composeApp
module by selecting theapp
configuration. If you need help with the configuration, follow this link for android - For iOS, run the
composeApp
module by selecting theiosApp
configuration. If you need help with the configuration, follow this link for Ios - For Desktop, run
./gradlew :composeApp:run
- For Web, run
./gradlew :composeApp:wasmJsBrowserDevelopmentRun
Feel free to contribute to this project by submitting issues, pull requests, or providing valuable feedback. Your contributions are always welcome! 🙌
Give a ⭐️ if this project helped you!
Your generosity is greatly appreciated! Thank you for supporting this project.
Meet