Skip to content
OGStudioPublic

About

Native cross-platform Redux architecture

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

Dialect

Dialect is a way to write cross-platform logic core natively without a burden of having KMP-like binary, wrappers, and other runtime / build time overhead. SwiftUI, Jetpack Compose and native effects remain your duty, only Redux-like logic core is taken care of.

How you should now work:

  1. Write macOS application with Swift and SwiftUI to serve as Single source of truth
  2. Add iOS support by adapting SwiftUI to mobile UX
  3. Add Android support by using 'kotlin' target inside dialect.yml to have it transpiled to dialect.kt via LLM

Supported platforms

Currently Dialect only supports development for: macOS, iOS, and Android.

Linux and Windows support is pending.

Example

Have a look at example directory. The dialect.swift file is generated for macOS & iOS. The dialect.kt file is an equivalent transpilation to Kotlin.

Dependencies

Prerequisites for macOS:

  • Xcode

Prerequisites for iOS:

  • XcodeGen: brew install xcodegen

Prerequisites for Android:

  • Android Studio for macOS

Prerequisites for Swift-to-Kotlin transpilation:

  • Run ollama serve to launch Ollama server process in the background
  • Run ollama run qwen2.5-coder:7b (~4.7 GB VRAM) once to install the model

Running generator on macOS

./util/run-generator-script --file=/path/to/dialect.yml

About

Native cross-platform Redux architecture

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages