How leboncoin/spark-android works
Project Type and Purpose
• This is a multi-module Android Compose design system library with:
• spark: the core design system (UI components & tokens)
• spark-screenshot-testing: Paparazzi-based screenshot testing tooling
• catalog: a demo/configurator app showcasing and testing components
Main Components (to include
• Catalog App (catalog): Android Compose application—frontend entry point.
• Core Library (spark): publishes Composable UI components, tokens, themes.
• Screenshot-Testing Tool (spark-screenshot-testing): provides JUnit rules & utilities for visual regression.
Relationships and Data Flows
• catalog → depends on → spark (uses UI components & theme)
• spark-screenshot-testing → depends on → spark (tests snapshots of core components)
Architectural Patterns & Principles
• Gradle Multi-Module: clearly separated, independently versioned modules.
• Layered:
• Core layer (spark)
• Consumer layer (catalog)
• Testing layer (spark-screenshot-testing)
• Compose-First: all UI delivered as Jetpack Compose components.
• CI/CD: each module publishes to MavenCentral and is verified via GitHub Actions.
Technologies & Frameworks
• Kotlin Multiplatform (Android)
• Jetpack Compose (Material3 override)
• Gradle Kotlin DSL for builds
• Paparazzi for screenshot tests