Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @MrAlders0n
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI

on:
pull_request:
branches: [main, dev]
workflow_dispatch:

permissions:
contents: read

jobs:
analyze:
name: Analyze & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: subosito/flutter-action@v2
with:
channel: 'stable'

- run: flutter pub get
- run: dart run build_runner build --delete-conflicting-outputs
- run: flutter analyze
- run: flutter test
8 changes: 8 additions & 0 deletions assets/device-models.json
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,14 @@
"txPower": 22,
"notes": "Seeed Tracker T1000"
},
{
"manufacturer": "Seeed Xiao-nrf52",
"shortName": "Seeed Xiao nRF52",
"power": 0.3,
"platform": "nrf52",
"txPower": 22,
"notes": "Seeed Xiao nRF52840 bare board, no PA amplifier"
},
{
"manufacturer": "Xiao C3",
"shortName": "Xiao C3",
Expand Down
9 changes: 8 additions & 1 deletion lib/models/user_preferences.dart
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class UserPreferences {
autoStopAfterIdle: (json['autoStopAfterIdle'] as bool?) ?? true,
showTopRepeaters: (json['showTopRepeaters'] as bool?) ?? false,
markerStyle: (json['markerStyle'] as String?) ?? 'dot',
gpsMarkerStyle: (json['gpsMarkerStyle'] as String?) ?? 'arrow',
gpsMarkerStyle: _migrateGpsMarkerStyle(json['gpsMarkerStyle'] as String?),
colorVisionType: (json['colorVisionType'] as String?) ?? 'none',
mapTilesEnabled: (json['mapTilesEnabled'] as bool?) ?? true,
disconnectAlertEnabled: (json['disconnectAlertEnabled'] as bool?) ?? false,
Expand All @@ -200,6 +200,13 @@ class UserPreferences {
);
}

/// Migrate the legacy 'pacman' gps marker id to 'chomper' after the rename.
static String _migrateGpsMarkerStyle(String? value) {
if (value == null) return 'arrow';
if (value == 'pacman') return 'chomper';
return value;
}

/// Convert to JSON (for persistence)
Map<String, dynamic> toJson() {
return {
Expand Down
Loading
Loading