Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.1 KB

README.md

File metadata and controls

25 lines (17 loc) · 1.1 KB

This is a Kotlin Multiplatform project targeting Android, iOS, Web, Desktop.

Project Structure

  • /composeApp is for code that will be shared across your Compose Multiplatform applications. It contains several subfolders:
    • commonMain is 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.
  • /domain is for shared code that is not UI-specific.

Running the project

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/.

UI

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.

Screenshot and Video