Skip to Content
CrowCrow

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

  1. 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 zero android.* or androidx.* 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.

  2. checkCoreIndependence — Design Systems Are Optional Core modules never import or depend on crow-material3, crow-lens, or crow-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.

  3. checkDesignSystemHygiene — Zero Internal Shortcuts Design systems (crow-material3, crow-lens, crow-guide) may only consume Crow core's public API — no reaching into UiNodeScope, 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-ui compiles straight to Android RenderNode / HWUI + AGSL shaders + native AccessibilityNodeProvider + zero-AndroidX @CrowApp — no cross-platform abstraction tax.
  • Zero-Gradle App Builds & Hot Reload: crow-build (crow.jsonc / crow.lock) and the native Rust crow CLI (crow-cli-rs) drive a persistent crow-daemon for zero-AGP APK packaging and ~30 ms on-device delta-DEX hot reload via crow-live + crow-live-android.
  • Public ABI stability: Every published library module maintains committed Kotlin ABI dumps verified by gradle checkApi, paired with crow-bom for aligned releases.

How is this guide?

On this page