Architecture & Module Boundaries
Enforced module boundaries, pure-JVM core guarantees, and Crow's Android-native layered stack.
Crow is engineered from day one as an Android-native, layered, strictly bounded architecture verified on every CI run by Gradle invariant checks.
Three Enforced Architectural Guarantees
-
checkCorePurity— Pure-JVM, Android-Free Core Eleven core modules (crow-signals,crow-runtime,crow-router,crow-image,crow-query,crow-store,crow-state,crow-color,crow-schema,crow-motion,crow-inject) are verified to contain zeroandroid.*orandroidx.*imports. Everything from reactive state and async transitions to lazy list layout, routing, caching, persistence, validation, and perceptual color runs and tests in milliseconds on a plain JVM. -
checkCoreIndependence— Design Systems Are Optional Core modules never import or depend oncrow-material3,crow-lens, orcrow-symbols. Core APIs use neutral concepts (overlay instead of state layer, unstyled bases instead of Material buttons), so you can ship Material 3, Lens Liquid Glass, or your own brand system on equal footing. -
checkDesignSystemHygiene— Zero Internal Shortcuts Design systems (crow-material3,crow-lens,crow-guide) may only consume Crow core's public API — no reaching intoUiNodeScope,currentUiScope(), or unchecked compiler casts. If a design system hits a limit, core gets a clean public primitive.
Layered Stack Overview
┌──────────────────────────────────────────────────────────────────────┐
│ Optional Design Systems & Icons: crow-material3 · crow-lens · crow-symbols │
├──────────────────────────────────────────────────────────────────────┤
│ Android Renderer & UI: crow-ui · crow-guide · crow-media │
│ Testing & Dev Live: crow-ui-test · crow-live-android │
├──────────────────────────────────────────────────────────────────────┤
│ Pure-JVM App Stack: crow-router · crow-query · crow-store │
│ crow-state · crow-schema · crow-color │
│ crow-motion · crow-image · crow-inject │
├──────────────────────────────────────────────────────────────────────┤
│ Core, K2 & Build Tools: crow-signals · crow-runtime · crow-compiler│
│ crow-build · crow-live · crow-cli-rs │
└──────────────────────────────────────────────────────────────────────┘Android-Native by Design
- Direct Android Rendering:
crow-uicompiles straight to AndroidRenderNode/ HWUI + AGSL shaders + nativeAccessibilityNodeProvider+ zero-AndroidX@CrowApp— no cross-platform abstraction tax. - Zero-Gradle App Builds & Hot Reload:
crow-build(crow.jsonc/crow.lock) and the native RustcrowCLI (crow-cli-rs) drive a persistentcrow-daemonfor zero-AGP APK packaging and ~30 ms on-device delta-DEX hot reload viacrow-live+crow-live-android. - Public ABI stability: Every published library module maintains committed Kotlin ABI dumps verified by
gradle checkApi, paired withcrow-bomfor aligned releases.
How is this guide?