Gemini-AI-KMP-App
                                
                                 Gemini-AI-KMP-App copied to clipboard
                                
                                    Gemini-AI-KMP-App copied to clipboard
                            
                            
                            
                        Gemini AI Kotlin Multiplatform project designed to target Android, iOS, Windows, macOS, Linux, and Web platforms.
Gemini AI KMP App - Chat with Gemini AI 💬✨
Click the image above to watch a demo of the Gemini AI KMP App on YouTube.
Overview
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.
Download / View App ⬇️
| Platform | Release File | 
|---|---|
| 📱 Mobile |  | 
| 🖥️ Desktop |  | 
| 🌎 Web |  | 
Features
- 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
Technologies:
- 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
Libraries 🛠️
- 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.
- PreCompose - 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.
Getting Started
Installation 🛠️
- 
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.propertiesfile to the project root.
- 
Place your Gemini API key in local.propertiesfile asGEMINI_API_KEYproperty.
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

Run the app on your device or emulator:
- For Android, run the composeAppmodule by selecting theappconfiguration. If you need help with the configuration, follow this link for android
- For iOS, run the composeAppmodule by selecting theiosAppconfiguration. If you need help with the configuration, follow this link for Ios
- For Desktop, run ./gradlew :composeApp:run
- For Web, run ./gradlew :composeApp:wasmJsBrowserDevelopmentRun
Screenshot 💻
Android
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  | 
Window
|  | 
|  | 
|  | 
|  | 
|  | 
|  | 
|  | 
|  | 
|  | 
|  | 
Mac
|  | 
|  | 
|  | 
|  | 
|  | 
|  | 
|  | 
|  | 
|  | 
|  | 
Website
|  | 
|  | 
|  | 
|  | 
|  | 
|  | 
|  | 
|  | 
|  | 
|  | 
Contributing 🤝
Feel free to contribute to this project by submitting issues, pull requests, or providing valuable feedback. Your contributions are always welcome! 🙌
❤ Show your support
Give a ⭐️ if this project helped you!
 
Your generosity is greatly appreciated! Thank you for supporting this project.
Connect with me
Author
Meet
