How aristote94/smith-android works
SMITH is an offline Android icon pack with a home dashboard and Glance widget. The user opens the dashboard to see demo home metrics and app tiles; selecting an installed tile launches its app. The screen and widget share the repository contract, while the icon-pack catalog supplies the app entries. The README documents launcher compatibility and deterministic demo data. Some widget and icon-pack wiring is only partially sampled, so unverified relationships are omitted or marked dashed.
Main entry points: HomeViewModel.kt Home view model · MainActivity.kt Main activity · HomeRepository.kt Home repository · HomeScreen.kt Home screen
Components 18
App surfaces
- Main activity
app/src/main/kotlin/fr/smith/android/MainActivity.kt - Home view model
app/src/main/kotlin/fr/smith/android/ui/home/HomeViewModel.kt - Home UI state
app/src/main/kotlin/fr/smith/android/ui/home/HomeUiState.kt - Home screen
app/src/main/kotlin/fr/smith/android/ui/home/HomeScreen.kt - House card
app/src/main/kotlin/fr/smith/android/ui/home/components/HouseCard.kt - App tile
app/src/main/kotlin/fr/smith/android/ui/home/components/AppTile.kt - Home widget
app/src/main/kotlin/fr/smith/android/widget/SmithWidget.kt
Home data
- App container
app/src/main/kotlin/fr/smith/android/di/AppContainer.kt - Home repository
app/src/main/kotlin/fr/smith/android/domain/repository/HomeRepository.kt - Demo data source
app/src/main/kotlin/fr/smith/android/data/demo/DemoHomeRepository.kt - Home snapshot
app/src/main/kotlin/fr/smith/android/domain/model/HomeSnapshot.kt - Value formatting
app/src/main/kotlin/fr/smith/android/core/format/HomeFormat.kt
Icon pack
- Icon catalog
app/src/main/kotlin/fr/smith/android/iconpack/IconPackCatalog.kt - App launcher
app/src/main/kotlin/fr/smith/android/iconpack/AppLauncher.kt - Icon assets
app/src/main/res/drawable - Launcher mappings
app/src/main/res/xml/appfilter.xml
Other components
- User
- Android system
Connections 20
- User → Main activity: opens
app/src/main/kotlin/fr/smith/android/MainActivity.kt - Main activity → Home view model: creates
app/src/main/kotlin/fr/smith/android/MainActivity.kt - Main activity → Home screen: renders
app/src/main/kotlin/fr/smith/android/MainActivity.kt - Home view model → Home UI state: produces
app/src/main/kotlin/fr/smith/android/ui/home/HomeViewModel.kt - Home screen → House card: renders
app/src/main/kotlin/fr/smith/android/ui/home/HomeScreen.kt - Home screen → App tile: renders
app/src/main/kotlin/fr/smith/android/ui/home/HomeScreen.kt - Main activity → App launcher: launches via
app/src/main/kotlin/fr/smith/android/MainActivity.kt - Home view model → App container: gets dependencies
app/src/main/kotlin/fr/smith/android/ui/home/HomeViewModel.kt - App container → Demo data source: constructs
app/src/main/kotlin/fr/smith/android/di/AppContainer.kt - App container → Home repository: provides
app/src/main/kotlin/fr/smith/android/di/AppContainer.kt - Home view model → Home repository: observes
app/src/main/kotlin/fr/smith/android/ui/home/HomeViewModel.kt - Home widget → Home repository: observes
app/src/main/kotlin/fr/smith/android/widget/SmithWidget.kt - Home repository → Home snapshot: emits
app/src/main/kotlin/fr/smith/android/domain/repository/HomeRepository.kt - Home view model → Icon catalog: maps entries
app/src/main/kotlin/fr/smith/android/ui/home/HomeViewModel.kt - House card → Home snapshot: displays metrics
app/src/main/kotlin/fr/smith/android/ui/home/components/HouseCard.kt - House card → Value formatting: formats values
app/src/main/kotlin/fr/smith/android/ui/home/components/HouseCard.kt - Home widget → Value formatting: formats time
app/src/main/kotlin/fr/smith/android/widget/SmithWidget.kt - Icon catalog → Icon assets: references icons
app/src/main/kotlin/fr/smith/android/iconpack/IconPackCatalog.kt - Android system → Home widget: hosts
- Android system → Launcher mappings: reads mappings