Skip to Content
CrowCrow

Installation

Configure Crow with crow.jsonc or Gradle, the K2 compiler plugin, and modular Android libraries.

Crow is structured as a modular set of Kotlin libraries powered by the crow-compiler K2 plugin, the zero-Gradle crow-build engine (crow.jsonc + crow CLI), and Gradle plugins (crow.app and crow.routes).

Requirements

  • Kotlin: 2.4.21 (K2 compiler)
  • JDK: 17 toolchain (21 for AGP runtime)
  • Android: minSdk = 26 (compileSdk = 36)
  • Gradle: 9.9+ (when building with Gradle)

Option A: Declarative crow.jsonc (Zero-Gradle)

Scaffold a new Android-native Crow app with the crow CLI:

crow new my-app --design-system lens --routes --inject
cd my-app
crow dev

Your project manifest lives in crow.jsonc with full JSON Schema validation and deterministic crow.lock dependency locking.

Option B: Gradle Setup

Apply Crow Gradle plugins

For a standalone Android app, apply crow.app (which generates your zero-AndroidX Activity and Application from @CrowApp) and optionally crow.routes for file-based routing.

app/build.gradle.kts
plugins {
    alias(libs.plugins.android.application)
    id("crow.app")
    id("crow.routes") // Optional: file-based routing
}

Register the K2 compiler plugin

Wire crow-compiler into Kotlin's compiler plugin classpath so @Ui functions, live props, LocalGraph lowering, modifier fusion, zero-key saved(), and CR1001/CR1002/CR1003 checks run automatically:

app/build.gradle.kts
configurations
    .matching { it.name.startsWith("kotlinCompilerPluginClasspath") }
    .configureEach {
        dependencies.add(project.dependencies.project(":crow-compiler"))
    }

Add dependencies

Pick only the modules you need. Every core library stays strictly independent of design systems (crow-material3 and crow-lens are optional design systems).

app/build.gradle.kts
dependencies {
    implementation(project(":crow-ui"))
    implementation(project(":crow-router"))
    implementation(project(":crow-query"))
    implementation(project(":crow-store"))
    implementation(project(":crow-schema"))
    implementation(project(":crow-color"))
    implementation(project(":crow-motion"))
    implementation(project(":crow-lens"))
    implementation(project(":crow-symbols"))
    implementation(project(":crow-guide"))

    testImplementation(project(":crow-ui-test"))
    testImplementation(kotlin("test-junit"))
}

Module Map

Crow separates pure-JVM core modules (verified Android-free by gradle checkCorePurity) from Android UI rendering, devtools, and optional design systems (verified by gradle checkCoreIndependence):

ModuleLayerTargetPurpose
crow-signalsCoreJVMReactive graph: signal, derived, effect, resource, transitions, action
crow-runtimeCoreJVM@Ui, @Once, @Props, For, Loading, Errored, BackStack, NavHost, saved()
crow-compilerCompilerK2 PluginK2 FIR checks (CR1001–CR1003, CR2001–CR2007), $ui lowering, LocalGraph, modifier & binding fusion
crow-uiRendererAndroidLNode tree, RenderNode chunks, layout, gestures, crow.ui, crow.style, AGSL glass engine
crow-routerStackJVMTyped navigation & crow.routes file-based routing runtime
crow-queryStackJVMTyped server-state cache (query, infiniteQuery, QueryClient, optimistic mutations)
crow-storeStackJVMReactive key/document store, codecs, migrations, crash-safe FileStoreBackend
crow-stateStackJVMStructured app state containers and unidirectional state primitives
crow-schemaStackJVMZod-style validation DSL, FormState, cross-field rules, JSON Schema export
crow-colorStackJVMPerceptual OKLab/OKLCH, WCAG/APCA contrast solver, palettes, artwork extraction
crow-motionStackJVMAnalytic springs, Animatable, animateFloat, velocity-preserving retargeting
crow-imageStackJVMByte-budgeted LRU ImageEngine, cover-size hardware bitmaps, imageResource
crow-injectStackJVMScoped lifetime dependency graphs with Async bindings and test overrides
crow-guideStackAndroidTipKit-style contextual tips and morphing spotlight tours across routes
crow-mediaStackAndroidNative Android media playback, gestures, and surface primitives
crow-material3Design systemAndroidOptional Material 3 components, live ColorScheme, dynamic wallpaper color
crow-lensDesign systemAndroidOptional shadcn × Liquid Glass design system
crow-symbolsIconsAndroid3,893 Material Symbols (Rounded/Outlined/Sharp + SymbolStyle.Soft) + variable axes + subsetter
crow-codegenToolingJVMShared Android code generators for @CrowApp and crow.routes
crow-buildToolingJVMDeclarative crow.jsonc / crow.lock, zero-AGP Android APK pipeline, persistent crow-daemon, and project scaffolder
crow-cliToolingRustThin native < 5 ms crow CLI binary driving crow-daemon
crow-liveToolingJVMWarm K2 compiler, delta-DEX Android hot-reload pusher, LiveProtocol v2
crow-live-androidToolingAndroidDebug-only on-device CrowDevAgent receiver, tree & signal-graph inspectors
crow-ui-testTestingAndroid/JVMHeadless Robolectric test harness: frames, gestures, semantics dumps, PNG snapshots
crow-bomBOMJVMBill of Materials aligning versions across all Crow library modules

Verify Your Workspace

If you are working inside the Crow repository, run the core test suite and boundary checks with:

gradle :crow-signals:test :crow-runtime:test :crow-compiler:test \
  :crow-ui:testReleaseUnitTest :crow-ui-test:testReleaseUnitTest \
  checkCorePurity checkCoreIndependence checkDesignSystemHygiene

How is this guide?

On this page