Stand up the Tanemaki monorepo and the first end-to-end vertical slice of Block 1 (offline, encrypted inventory): add a seed → see it in a categorized, searchable list → it persists → reopen and it's still there. Architecture (state management like G1nkgo, adapted to Tane's reality): - flutter_bloc (Cubit-first), but the encrypted Drift DB is the single source of truth; cubits stream from repositories (no hydrated_bloc/Hive, which would write plaintext at rest). - get_it composition root; go_router; slang i18n (ES/EN, Weblate-friendly JSON). Workspace & core: - pub workspace: packages/commons_core (pure Dart) + apps/app_seeds (Flutter). - commons_core primitives: UUIDv7 IdGen, Hybrid Logical Clock, Quantity value type (+ plant-aware QuantityKind), IdentityService root-seed stub. Data & security: - Drift schemaVersion=1 with all 10 Block-1 tables + common CRDT columns (HLC updated_at, last_author, tombstones); Movement append-only. - SQLCipher via an injectable executor that refuses to open a plaintext DB; DB key + root seed in the OS keystore (separate secrets). - Exported drift_schema_v1.json + migration scaffold. Tests (near-TDD; nothing merges without tests): - commons_core units (24), Drift migration test, "no plaintext at rest" security guard (runs where SQLCipher is present, skips otherwise), repository, widget, full quick-add flow, file-reopen persistence, and a no-hardcoded-strings i18n guard. GitLab CI: format + analyze + test + coverage. Follow-on Block-1 stories (item detail/edit, species catalog, germination UI) and all of Block 2 remain out of scope.
36 lines
1.2 KiB
Text
36 lines
1.2 KiB
Text
# This file tracks properties of this Flutter project.
|
|
# Used by Flutter tool to assess capabilities and perform upgrades etc.
|
|
#
|
|
# This file should be version controlled and should not be manually edited.
|
|
|
|
version:
|
|
revision: "00b0c91f06209d9e4a41f71b7a512d6eb3b9c694"
|
|
channel: "stable"
|
|
|
|
project_type: app
|
|
|
|
# Tracks metadata for the flutter migrate command
|
|
migration:
|
|
platforms:
|
|
- platform: root
|
|
create_revision: 00b0c91f06209d9e4a41f71b7a512d6eb3b9c694
|
|
base_revision: 00b0c91f06209d9e4a41f71b7a512d6eb3b9c694
|
|
- platform: android
|
|
create_revision: 00b0c91f06209d9e4a41f71b7a512d6eb3b9c694
|
|
base_revision: 00b0c91f06209d9e4a41f71b7a512d6eb3b9c694
|
|
- platform: ios
|
|
create_revision: 00b0c91f06209d9e4a41f71b7a512d6eb3b9c694
|
|
base_revision: 00b0c91f06209d9e4a41f71b7a512d6eb3b9c694
|
|
- platform: linux
|
|
create_revision: 00b0c91f06209d9e4a41f71b7a512d6eb3b9c694
|
|
base_revision: 00b0c91f06209d9e4a41f71b7a512d6eb3b9c694
|
|
|
|
# User provided section
|
|
|
|
# List of Local paths (relative to this file) that should be
|
|
# ignored by the migrate tool.
|
|
#
|
|
# Files that are not part of the templates will be ignored by default.
|
|
unmanaged_files:
|
|
- 'lib/main.dart'
|
|
- 'ios/Runner.xcodeproj/project.pbxproj'
|