All works

Case study · Kotlin Multiplatform · Starter · Internal

KMP Template

A production-ready starting point for Kotlin Multiplatform apps: a modular clean architecture with YAMVIP and Anubis, a 100% Compose Android app, a 100% SwiftUI iOS app and CI from the first commit.

Delivered at MerkleEnterprise mobile & digital engineering

Context
Internal engineering at Merkle
My role
Contributor: implementation and design
Period
Sep 2023 – Oct 2024 (approx.)
Platform
Kotlin Multiplatform · Compose · SwiftUI

The idea

Every new KMP project used to start with the same week of setup. The template packs the team's decisions into a repository that builds on both platforms from day one.

New apps start from proven structure instead of a blank page.

What I did

  • Worked on the multi-module clean architecture and the Gradle convention plugin.
  • Wired in SQLDelight, Koin dependency injection and Moko resources.
  • Integrated YAMVIP presenters and Anubis server-driven UI.
  • Worked on the Compose Android app with NavHost and the SwiftUI iOS app with NavigationStack, generated with Tuist.
  • Set up CI that builds both apps, with the version from a file and the build number from CI.

What's inside

  1. Apps

    • Android: Compose, NavHost
    • iOS: SwiftUI, NavigationStack, Tuist
  2. Shared features

    • YAMVIP presenters
    • Anubis SDUI
    • Samples: AppMenu, RandomUser
  3. Core

    • Clean architecture modules
    • Koin
    • SQLDelight
    • Moko resources
  4. Tooling

    • Gradle convention plugin
    • mise tool versions
    • CI for Android and iOS

Stack

  • Kotlin Multiplatform
  • Compose
  • SwiftUI
  • Tuist
  • Koin
  • SQLDelight
  • Moko resources
  • CI/CD

Team

Built by the internal mobile engineering team at Merkle, as internal reference work.

The result

A template the team could start new KMP projects from, with architecture, tooling and CI already decided.

Next case study Masse