Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / setupwizard / AGENTS.md
| 1 | # AGENTS.md — setupwizard/ (':setupwizard') |
| 2 | |
| 3 | > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `setupwizard/` + allowed shared modules. Do not root-scan. |
| 4 | |
| 5 | _Install: ./install setupwizard (dev by default)._ |
| 6 | <!-- last-reviewed: 2026-10-16 --> |
| 7 | - Gradle: :setupwizard / dir: setupwizard/ |
| 8 | - Package roots present: ui, platform |
| 9 | - Entry files: MainActivity.kt, Route.kt, Navigation.kt |
| 10 | - Deps: (none declared) |
| 11 | - Metadata: metadata_data/setupwizard.md (present) |
| 12 | - Rust: no / screenshotTest: no |
| 13 | |
| 14 | ## Overview |
| 15 | **Purpose:** First-run OS setup — language, Wi-Fi, time, location, lock, restore, bootloader warning; hands steps to owner apps, disables itself when done. Shorter secondary-user flow. |
| 16 | **Key features:** `platform/SetupFlow` step machine + `SetupViewModel` → welcome/gestures/location/migration/OEM-unlock/handoff/finish screens; `SystemSetup` + `SetupIntents` delegate to owner apps; `DebugFlags` for testing. |
| 17 | **Entry points:** `Route` → `MainActivity.kt` → `Navigation.kt` → `platform/SetupFlow.kt` → `ui/WelcomeScreen.kt`. |
| 18 | **Gotchas:** Runs once and disables itself — testing needs the re-enable path (`DebugFlags`); bootloader-warning copy is security-sensitive, don't soften it. |
| 19 | |
| 20 | ## Key files |
| 21 | ### Root — entry + navigation |
| 22 | - com/vayunmathur/setupwizard/MainActivity.kt |
| 23 | - com/vayunmathur/setupwizard/Navigation.kt |
| 24 | - com/vayunmathur/setupwizard/Route.kt |
| 25 | ### platform/ — flow machine + delegation |
| 26 | - com/vayunmathur/setupwizard/platform/SetupFlow.kt |
| 27 | - com/vayunmathur/setupwizard/platform/SetupViewModel.kt |
| 28 | - com/vayunmathur/setupwizard/platform/SystemSetup.kt |
| 29 | - com/vayunmathur/setupwizard/platform/SetupIntents.kt |
| 30 | - com/vayunmathur/setupwizard/platform/DebugFlags.kt |
| 31 | ### ui/ — setup steps |
| 32 | - com/vayunmathur/setupwizard/ui/WelcomeScreen.kt |
| 33 | - com/vayunmathur/setupwizard/ui/GesturesScreen.kt |
| 34 | - com/vayunmathur/setupwizard/ui/LocationScreen.kt |
| 35 | - com/vayunmathur/setupwizard/ui/MigrationScreen.kt |
| 36 | - com/vayunmathur/setupwizard/ui/OemUnlockScreen.kt |
| 37 | - com/vayunmathur/setupwizard/ui/HandoffScreen.kt |
| 38 | - com/vayunmathur/setupwizard/ui/FinishScreen.kt |
| 39 | - com/vayunmathur/setupwizard/ui/components/SetupCheckboxRow.kt |
| 40 | - com/vayunmathur/setupwizard/ui/dialogs/LanguagePickerDialog.kt |
| 41 | |
| 42 | ## Verify (this module only) |
| 43 | ``` |
| 44 | ./gradlew :setupwizard:compileDevKotlin |
| 45 | ./gradlew :setupwizard:lint |
| 46 | ./gradlew :setupwizard:checkMetadata |
| 47 | ``` |