Files
sf-app-platform/modules/legacy/packages/legacy_device_state/pubspec.yaml
JulianAlcala 6cf994cd5d refactor(legacy): extract shared device state into legacy_device_state package
- New package legacy_device_state hosts shared device/position state
  consumed by both control_panel and location screens. ControlPanel*
  classes renamed to LegacyDevice* in 8 moved files.
- Move PositionEntity + AddressEntity + NetworkEntity +
  LatestPositionsResponseModel + BatteryUtils + DateFormatUtils from
  control_panel to legacy_shared (shared domain entities).
- Remove anti-pattern re-export of sf_infrastructure/dio_error_mapper
  from legacy_shared barrel. Update consumers to import
  sf_infrastructure directly.
- Clean 14 unused legacy_shared imports across view models in
  account, device_management, legacy_auth and settings modules.

Eliminates cross-module dependency location -> control_panel.
0 errors, 0 warnings in flutter analyze across 11 packages/modules.
2026-04-26 21:52:50 +02:00

37 lines
810 B
YAML

name: legacy_device_state
description: "Shared device state (selected device + latest positions) consumed by legacy modules (control_panel, location)."
publish_to: 'none'
resolution: workspace
version: 1.0.0+1
environment:
sdk: ^3.9.2
flutter: ">=1.17.0"
dependencies:
flutter:
sdk: flutter
legacy_shared:
path: ../legacy_shared
sf_infrastructure:
path: ../../../../packages/sf_infrastructure
sf_shared:
path: ../../../../packages/sf_shared
sf_tracking:
path: ../../../../packages/sf_tracking
flutter_riverpod: ^3.0.3
freezed_annotation: ^3.1.0
json_annotation: ^4.9.0
dio: ^5.9.2
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^5.0.0
build_runner: ^2.7.1
freezed: ^3.2.3
json_serializable: ^6.11.2
flutter:
uses-material-design: true