mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Backend (Rust): - push_tokens migration, model (PushToken/PushPlatform), and db layer (upsert/list/delete/delete_many) - PUT/DELETE /api/push_tokens endpoints wired into the router + OpenAPI - "push" notification method: relay sender (reqwest) that forwards only the sanitized title/body and prunes dead tokens, plus settings with a default relay_url - 164 tests pass, clippy clean Relay (push_relay/, TypeScript Firebase Cloud Function): - POST /v1/push (firebase-admin sendEach + per-token status mapping), GET /healthz, payload validation, per-IP Firestore rate limiting - Jest tests + README documenting the manual project-owned setup Frontend (Flutter): - oott_api_push.dart (register/unregister), push_service.dart behind a PushService abstraction, and a per-device push toggle in settings - firebase_core/firebase_messaging/flutter_local_notifications deps - 145 tests pass, dart analyze clean Dev shell: - add nodejs_22 to the Nix dev shell so the relay tests/build run locally Remaining (manual, project-owned): create the Firebase project, deploy the relay and set the real default_relay_url, add native Firebase config, and test on real devices. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
81 lines
2.2 KiB
YAML
81 lines
2.2 KiB
YAML
name: frontend
|
|
description: "OOTT - Easy to setup and use network device discovery and alert system"
|
|
publish_to: "none"
|
|
version: 0.1.3
|
|
|
|
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
|
|
firebase_core: ^3.8.0
|
|
firebase_messaging: ^15.1.6
|
|
flutter_local_notifications: ^18.0.1
|
|
|
|
dev_dependencies:
|
|
flutter_test:
|
|
sdk: flutter
|
|
flutter_lints: ^6.0.0
|
|
http_mock_adapter: ^0.6.1
|
|
flutter_native_splash: ^2.4.7
|
|
flutter_launcher_icons: ^0.14.3
|
|
|
|
flutter:
|
|
uses-material-design: true
|
|
|
|
# Native launcher / home-screen icon for every platform.
|
|
# OOTT wordmark on the brand orange (#fe8019). The square source is full-bleed
|
|
# (iOS/web/desktop apply their own corner mask); Android uses an adaptive icon
|
|
# with a transparent foreground over the orange background so it survives any
|
|
# launcher mask. Regenerate the native icon sets after changing the images:
|
|
# dart run flutter_launcher_icons
|
|
flutter_launcher_icons:
|
|
image_path: assets/icon/oott_icon.png
|
|
ios: true
|
|
remove_alpha_ios: true
|
|
android: true
|
|
adaptive_icon_background: "#fe8019"
|
|
adaptive_icon_foreground: assets/icon/oott_icon_foreground.png
|
|
macos:
|
|
generate: true
|
|
image_path: assets/icon/oott_icon.png
|
|
windows:
|
|
generate: true
|
|
image_path: assets/icon/oott_icon.png
|
|
web:
|
|
generate: true
|
|
image_path: assets/icon/oott_icon.png
|
|
background_color: "#fe8019"
|
|
theme_color: "#fe8019"
|
|
|
|
# Branded native launch screen (Android + iOS).
|
|
# OOTT wordmark on the Gruvbox-dark background (#1d2021).
|
|
# Regenerate native files after changing this block or the images:
|
|
# dart run flutter_native_splash:create
|
|
flutter_native_splash:
|
|
color: "#1d2021"
|
|
color_dark: "#1d2021"
|
|
image: assets/splash/oott_logo.png
|
|
image_dark: assets/splash/oott_logo.png
|
|
android_12:
|
|
image: assets/splash/oott_logo_android12.png
|
|
icon_background_color: "#1d2021"
|
|
image_dark: assets/splash/oott_logo_android12.png
|
|
icon_background_color_dark: "#1d2021"
|
|
android: true
|
|
ios: true
|
|
web: false
|