This is a Kotlin Multiplatform project targeting Android, iOS, Web, Desktop.
/composeAppis for code that will be shared across your Compose Multiplatform applications. It contains several subfolders:commonMainis for code that’s common for all targets.- Other folders are for Kotlin code that will be compiled for only the platform indicated in the folder name.
/domainis for shared code that is not UI-specific.
To use Gemini API you need to provide the API key. You can get the API key from here.
Then in local.properties add the following line to it:
API_KEY=YOUR_API_KEY or you can set in UI using options menu.
You can try web version at https://devjn.github.io/simple-chat-kmm/.
The UI is built using Jetpack Compose. The main UI code can be found in the ui/chat directory.
You can open the web application by running the :composeApp:wasmJsBrowserDevelopmentRun Gradle task.
