Files
oott/frontend/pubspec.yaml
T
rzuastiandClaude Opus 4.8 4a1fe60ec3 Derive the version from the Cargo/pubspec manifests
The version string was duplicated across six places. Collapse it to two
ecosystem sources of truth and derive the rest:

- backend/src/web_server.rs: omit the OpenAPI info.version so utoipa fills
  it from CARGO_PKG_VERSION (backend/Cargo.toml); add a test pinning this.
- nix/package.nix: read the version from backend/Cargo.toml via fromTOML.
- nix/frontend.nix: read the version from frontend/pubspec.yaml by splitting
  into lines (a whole-file regex triggers catastrophic backtracking in Nix's
  regex engine).
- frontend/lib/about/about.dart: read the version at runtime via
  package_info_plus instead of a hardcoded constant.

Also drop frontend/pubspec.lock.json: it is unreferenced (Nix's
autoPubspecLock generates its own JSON from pubspec.lock) and was going stale.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-02 16:49:52 -04:00

32 lines
588 B
YAML

name: frontend
description: "OOTT - Easy to setup and use network device discovery and alert system"
publish_to: "none"
version: 0.1.0
environment:
sdk: ^3.10.8
dependencies:
flutter:
sdk: flutter
go_router: ^17.1.0
intl: ^0.20.2
provider: ^6.1.5
dio: ^5.9.1
dio_smart_retry: ^7.0.1
connectivity_plus: ^7.0.0
encrypter: ^2.0.0
shared_preferences: ^2.5.4
fl_chart: ^1.2.0
google_fonts: ^6.2.1
url_launcher: ^6.3.0
package_info_plus: ^8.0.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^6.0.0
flutter:
uses-material-design: true