timetracker/.tasks/done/TT-001-dependencies-setup.md
2026-08-03 21:51:48 +02:00

36 lines
1.3 KiB
Markdown

# TT-001 — Dependencies Setup & Build Runner
**Type:** Task
**Priority:** Highest
**Labels:** setup, infrastructure
**Depends on:**
**Blocks:** TT-002, TT-003
---
## Summary
Run `flutter pub get` to install all declared dependencies and verify the
project compiles. Set up `build_runner` as the code-generation pipeline for
`drift`, `freezed`, and `riverpod_generator`.
## Background
`pubspec.yaml` has been populated with all required packages but `pub get`
has not been run yet. Generated files (`*.g.dart`, `*.freezed.dart`) do not
exist and will cause compile errors until `build_runner` has run at least once.
## Acceptance Criteria
- [ ] `flutter pub get` exits with code 0, no resolution conflicts
- [ ] `dart run build_runner build --delete-conflicting-outputs` exits with code 0
- [ ] `flutter analyze` reports zero errors (warnings acceptable for stubs)
- [ ] `flutter build apk --debug` (or `flutter build web`) succeeds
## Steps
1. `flutter pub get`
2. `dart run build_runner build --delete-conflicting-outputs`
3. `flutter analyze`
4. Fix any immediate compile errors in generated stubs
## Notes
- If version conflicts arise, prefer the newer package and update `pubspec.yaml`
- `app_router.g.dart` will fail until `@riverpod` annotation resolves —
this is expected and will be fixed as part of this ticket