SPB Git

Repository Public BSD-3-Clause

0001-module-layout.md 837 B

# ADR 0001 — One SwiftPM package per module

Date: 2026-11-25 · Status: accepted

Context. The product is split into modules with dependencies pointing at business interfaces (directive §3). Several people or agents work on modules at the same time.

Decision. Each module is its own SwiftPM package under Packages/<Module>/ and depends on others by relative path. Build-time tools live under Infrastructure/ as macOS-only packages. The application (Apps/ORIXMaps) is an XcodeGen project that links the packages.

Consequences. Every module builds and tests alone with swift test on macOS, with its own .build directory, so parallel work never blocks on another module's broken state. The price is one Package.swift per module and a rebuild of ORIXGeoCore in each package's build directory (a few seconds).

Files main
Menu

Theme