How adriantache/gptassistantdesktop works
Project type and purpose
• This is a Kotlin Multiplatform Compose UI application targeting Android and Desktop (Windows, macOS, Linux).
• Its purpose is to provide a GUI for interacting with the OpenAI ChatGPT API (text and image generation), with local persistence (conversation history, personas, settings) via DataStore and optional encryption on Android.
File structure
• Top-level:
• build.gradle.kts, settings.gradle.kts, gradle/ – build scripts & version catalog
• composeApp/ – the multiplatform module
• composeApp/src:
• commonMain/ – shared code: domain layer (use cases, entities, data/repo interfaces, mappers), data layer (repositories, data sources, network & DataStore helpers), presentation layer (Compose screens, presenters, state machines), theme & utilities.
• androidMain/ – Android entry point (MainActivity), AndroidManifest, platformSpecific implementations (DataStorePreferences, TtsHelper.android, BackHandler, scrollbar), Android resources.
• desktopMain/ – Desktop entry (main.kt), platformSpecific implementations for JVM/Desktop equivalents.
• Supporting files:
• .github/workflows – CI for Android, desktop releases, PR tests
• gradle.properties, module packaging config (composeApp/build.gradle.kts)
README for additional insights
• Confirms Compose UI, Kotlin Serialization + Ktor for networking, DataStore for local storage, personas feature, conversation history, packaging via Gradle (MSI/DMG).
• Mentions pending work (AACA architecture, DI), but core layers already separated following Clean Architecture principles.