Skip to content

Mekate-Studio/Mobi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

136 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Mobi

Mobi is a public reference architecture repository for Kotlin Multiplatform mobile work.

It demonstrates how to structure a modular shared Kotlin codebase, how to keep native Android and iOS shells explicit while still sharing meaningful feature state, and how to document architecture decisions in a way that stays useful as the code evolves.

This repository is not trying to be:

  • a polished product app
  • a minimal starter template
  • a CI portability showcase first

Those concerns still matter here, but the primary value of Mobi is the architecture itself and the documentation around it.

What Mobi Demonstrates

  • modular shared Kotlin layers for core, feature, dependency wiring, and shared UI
  • native Android and iOS shells consuming the same shared feature state
  • shared async feature state modeled explicitly instead of with ad hoc booleans
  • repo-owned build and release orchestration that stays understandable from the codebase itself
  • architecture documentation through ADRs and focused reference guides

Clean-Clone Quickstart

Install Ruby dependencies:

bundle install

Set a writable Amper cache:

export AMPER_BOOTSTRAP_CACHE_DIR="$PWD/.amper-cache"

Run the main local smoke path:

./scripts/ci/run_job.sh android-build-debug
./scripts/ci/run_job.sh android-test
./scripts/ci/run_job.sh ios-build-debug
./scripts/ci/run_job.sh ios-test
./scripts/ci/run_job.sh quality-check

That path is the fastest way to validate that a clean clone can exercise the same repo-owned jobs used by CI.

For the Android smoke jobs, the repository generates ignored local debug signing files under android-app/ if no Android signing material has been provided. Release-oriented Android jobs still expect explicit signing inputs.

Start Here

If you are approaching this repo as a reader first, these are the most useful entry points:

The Gradle bridge material is intentionally documented as a transitional constraint in the current repository shape, not as the long-term ideal.

Repository Shape

Architecture And Operations

Even though this repository is not primarily a CI showcase, the operational layer is still part of the reference architecture.

The main pattern is:

  • GitHub Actions stays thin
  • repository scripts own the job contract
  • Fastlane wraps build and release commands
  • Amper remains the multiplatform build entry point

That keeps the runtime and release mechanics close to the architecture instead of hiding them inside CI configuration alone.

Linting and Static Analysis

The repository keeps quality checks behind repo-owned scripts instead of pushing tool orchestration into CI or the Gradle bridge.

  • just format applies Kotlin and Swift formatting
  • just lint verifies Kotlin, Swift, and shell quality checks
  • just check runs the current quality gate

The current tool split is:

  • ktlint for Kotlin formatting checks and autofix
  • detekt for Kotlin static analysis
  • SwiftFormat for Swift formatting checks and autofix
  • SwiftLint for Swift linting
  • ShellCheck for repo-owned shell scripts

Current Example Surface

The current sample app exposes two visible home flows on both platforms:

  • Native Home: a native shell consuming shared feature state
  • Shared UI: a shared Compose screen consuming the same feature state

The shared feature includes an asynchronous repository seam so both native shells and the shared UI can exercise the same loading, success, and failure states.

Contributing And Support

  • Use GitHub Discussions for architecture questions and design conversations.
  • Use GitHub Issues for bugs, docs gaps, and concrete improvement requests.
  • See CONTRIBUTING.md for contribution guidance.
  • See SECURITY.md for security reporting expectations.

Licensing

Code in this repository is licensed under the GNU Affero General Public License v3.0. Documentation and brand/trademark handling are intentionally treated separately. See the repository license files and notices for the current details.

About

Mobi is a public reference architecture repository for Kotlin Multiplatform mobile work.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors