front docs improvement

This commit is contained in:
oskar 2026-01-12 22:43:29 +01:00
parent ec670e90ae
commit 8cfb81c99d

View file

@ -7,9 +7,11 @@ management, and a login flow ready to integrate with a Swagger/OpenAPI backend.
- `lib/src/app`: app shell + router (GoRouter)
- `lib/src/di`: dependency providers
- `lib/src/core`: config + networking
- `lib/src/core`: config, networking, and core utilities
- `lib/src/features/auth`: auth domain/data/presentation
- `lib/src/features/home`: home screen
- `lib/src/features/telemetry`: telemetry domain/data/presentation
- `lib/l10n`: localization (arb files)
## Configuration
@ -39,7 +41,7 @@ When the spec is ready, generate a client and replace `ApiClient` usage:
1. Save your spec (e.g., `openapi.yaml`) or point to its URL.
2. Generate a Dart client (OpenAPI Generator or Swagger Codegen).
3. Swap `AuthRemoteDataSource` to call the generated client.
3. Swap `AuthRemoteDataSource` or `TelemetryRemoteDataSource` to call the generated client.
## Running
@ -85,8 +87,9 @@ flutter run -d <device_id> \
Redirect configuration:
- Android: `android/app/build.gradle.kts` sets `appAuthRedirectScheme`/`appAuthRedirectHost` for AppAuth, and `android/app/src/main/AndroidManifest.xml` registers the `RedirectUriReceiverActivity`.
- iOS: `ios/Runner/Info.plist` registers `com.mosenioring.app` under `CFBundleURLTypes`.
- Localization: `l10n.yaml` and `lib/l10n/*.arb` files.
Launcher icons:
```sh
flutter pub run flutter_launcher_icons
dart run flutter_launcher_icons
```