Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
07783fb
feat: move app files to app folder, create basic server in server folder
weasdown May 25, 2025
c917e45
refactor: rename server_base.dart to web_socket_server.dart
weasdown May 25, 2025
ee569d0
style: auto-formatting
weasdown May 25, 2025
25fe6ea
refactor: rename unnamed constructor to run()
weasdown May 25, 2025
6118ca9
feat: add main.dart entrypoint for server package
weasdown May 25, 2025
11f8716
fix: correct dispatch app version to 0.1.0 from 1.0.0
weasdown May 25, 2025
e9e591d
feat: add _units list in WebSocketServer
weasdown May 25, 2025
a0368a5
feat: add placeholder WebSocketServer.units getter
weasdown May 25, 2025
a34ea82
style: sort WebSocketServer members alphabetically
weasdown May 25, 2025
ac39a8d
revert: comment out Deprecated annotation on WebSocketServer.messageF…
weasdown May 25, 2025
077e8c1
feat: add Events storage in WebSocketServer
weasdown May 25, 2025
27e2bf3
feat: add WebSocketServer.add<T>() method
weasdown May 25, 2025
edb60ba
feat: add example units and events
weasdown May 25, 2025
3db3f73
feat: use example units and events
weasdown May 25, 2025
91ba2e0
refactor: move event.dart into new event folder, split out parts depe…
weasdown May 25, 2025
c2735b8
refactor: delete default_data.dart
weasdown May 25, 2025
34e6a56
refactor: remove dependency of LocalDataService on flutter/material.dart
weasdown May 25, 2025
19de01d
feat: add Event/Unit.toString() overrides
weasdown May 25, 2025
bfa728f
fix: fix callsign for HeliMed 24
weasdown May 25, 2025
f380331
feat: add private LocalDataService._events, _units attributes
weasdown May 25, 2025
99139fb
refactor: move Unit._iconAsset, mapMarker getters to new unit_map_mar…
weasdown May 25, 2025
b8451e7
refactor: move Event._iconAsset, mapMarker getters to new event_map_m…
weasdown May 25, 2025
174b2f6
docs: remove redundant TODO
weasdown May 25, 2025
f9102cb
feat: add Category.toJson()
weasdown May 25, 2025
144b921
feat: add Event.toJson()
weasdown May 25, 2025
35075e7
feat: add Unit.toJson()
weasdown May 25, 2025
c06b561
feat: add CFR option in VehicleType enum
weasdown May 26, 2025
e887f2e
feat: add to _defaultUnits, assign units to some _defaultEvents
weasdown May 26, 2025
8003ad0
fix: fix Unit location encoding
weasdown May 26, 2025
5766c12
feat: add api_client.dart with ApiClient
weasdown May 26, 2025
c86fcd6
fix: fix WebSocketServer message handling
weasdown May 26, 2025
3261f9b
fix: add placeholder map marker image for CFR
weasdown May 26, 2025
86baac2
feat: add NOC to Event.toJson()
weasdown May 26, 2025
52f3ed3
fix: print correct reply message
weasdown May 26, 2025
0c9707c
feat: add example of data retrieval from WebSocketServer
weasdown May 26, 2025
3fdfe1c
docs: add TODO to revert to Home
weasdown May 26, 2025
f89b776
refactor: make Status.category non-nullable
weasdown May 26, 2025
02bb8a2
refactor: get Event category from status
weasdown May 26, 2025
72fb673
refactor: rename Status to EventStatus
weasdown May 26, 2025
efd473e
feat: add Event.fromJson() factory
weasdown May 26, 2025
7e5bb74
chore: update IDE files
weasdown May 26, 2025
b400c1b
feat: add server main.dart run configuration
weasdown May 26, 2025
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
679 changes: 679 additions & 0 deletions .idea/caches/deviceStreaming.xml

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions .idea/libraries/Dart_SDK.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/libraries/Flutter_Plugins.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/libraries/KotlinJavaRuntime.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/runConfigurations/server_main_dart.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions android/dispatch_android.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android" name="Android">
<configuration>
<option name="ALLOW_USER_CONFIGURATION" value="false" />
<option name="GEN_FOLDER_RELATIVE_PATH_APT" value="/gen" />
<option name="GEN_FOLDER_RELATIVE_PATH_AIDL" value="/gen" />
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/app/src/main/AndroidManifest.xml" />
<option name="RES_FOLDER_RELATIVE_PATH" value="/app/src/main/res" />
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/app/src/main/assets" />
<option name="LIBS_FOLDER_RELATIVE_PATH" value="/app/src/main/libs" />
<option name="PROGUARD_LOGS_FOLDER_RELATIVE_PATH" value="/app/src/main/proguard_logs" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/app/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/app/src/main/kotlin" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/gen" isTestSource="false" generated="true" />
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
<excludeFolder url="file://$MODULE_DIR$/app/.cxx" />
</content>
<orderEntry type="jdk" jdkName="Android API 29 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Flutter for Android" level="project" />
<orderEntry type="library" name="KotlinJavaRuntime" level="project" />
</component>
</module>
227 changes: 227 additions & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,227 @@
# Created by https://www.toptal.com/developers/gitignore/api/dart,flutter,androidstudio
# Edit at https://www.toptal.com/developers/gitignore?templates=dart,flutter,androidstudio

### Dart ###
# See https://www.dartlang.org/guides/libraries/private-files

# Files and directories created by pub
.dart_tool/
.packages
build/
# If you're building an application, you may want to check-in your pubspec.lock
pubspec.lock

# Directory created by dartdoc
# If you don't generate documentation locally you can remove this line.
doc/api/

# dotenv environment variables file
.env*

# Avoid committing generated Javascript files:
*.dart.js
*.info.json # Produced by the --dump-info flag.
*.js # When generated by dart2js. Don't specify *.js if your
# project includes source files written in JavaScript.
*.js_
*.js.deps
*.js.map

.flutter-plugins
.flutter-plugins-dependencies

### Dart Patch ###
# dotenv environment variables file
.env

### Flutter ###
# Flutter/Dart/Pub related
**/doc/api/
.fvm/flutter_sdk
.pub-cache/
.pub/
coverage/
lib/generated_plugin_registrant.dart
# For library packages, don’t commit the pubspec.lock file.
# Regenerating the pubspec.lock file lets you test your package against the latest compatible versions of its dependencies.
# See https://dart.dev/guides/libraries/private-files#pubspeclock
#pubspec.lock

# Android related
**/android/**/gradle-wrapper.jar
**/android/.gradle
**/android/captures/
**/android/gradlew
**/android/gradlew.bat
**/android/key.properties
**/android/local.properties
**/android/**/GeneratedPluginRegistrant.java

# iOS/XCode related
**/ios/**/*.mode1v3
**/ios/**/*.mode2v3
**/ios/**/*.moved-aside
**/ios/**/*.pbxuser
**/ios/**/*.perspectivev3
**/ios/**/*sync/
**/ios/**/.sconsign.dblite
**/ios/**/.tags*
**/ios/**/.vagrant/
**/ios/**/DerivedData/
**/ios/**/Icon?
**/ios/**/Pods/
**/ios/**/.symlinks/
**/ios/**/profile
**/ios/**/xcuserdata
**/ios/.generated/
**/ios/Flutter/.last_build_id
**/ios/Flutter/App.framework
**/ios/Flutter/Flutter.framework
**/ios/Flutter/Flutter.podspec
**/ios/Flutter/Generated.xcconfig
**/ios/Flutter/app.flx
**/ios/Flutter/app.zip
**/ios/Flutter/flutter_assets/
**/ios/Flutter/flutter_export_environment.sh
**/ios/ServiceDefinitions.json
**/ios/Runner/GeneratedPluginRegistrant.*

# Exceptions to above rules.
!**/ios/**/default.mode1v3
!**/ios/**/default.mode2v3
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

### AndroidStudio ###
# Covers files to be ignored for android development using Android Studio.

# Built application files
*.apk
*.ap_
*.aab

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/
out/

# Gradle files
.gradle
.gradle/

# Signing files
.signing/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log

# Android Studio
/*/build/
/*/local.properties
/*/out
/*/*/build
/*/*/production
captures/
.navigation/
*.ipr
*~
*.swp

# Keystore files
*.jks
*.keystore

# Google Services (e.g. APIs or Firebase)
# google-services.json

# Android Patch
gen-external-apklibs

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild

# NDK
obj/

# IntelliJ IDEA
*.iml
*.iws
/out/

# User-specific configurations
.idea/caches/
.idea/libraries/
.idea/shelf/
.idea/workspace.xml
.idea/tasks.xml
.idea/.name
.idea/compiler.xml
.idea/copyright/profiles_settings.xml
.idea/encodings.xml
.idea/misc.xml
.idea/modules.xml
.idea/scopes/scope_settings.xml
.idea/dictionaries
.idea/vcs.xml
.idea/jsLibraryMappings.xml
.idea/datasources.xml
.idea/dataSources.ids
.idea/sqlDataSources.xml
.idea/dynamic.xml
.idea/uiDesigner.xml
.idea/assetWizardSettings.xml
.idea/gradle.xml
.idea/jarRepositories.xml
.idea/navEditor.xml

# Legacy Eclipse project files
.classpath
.project
.cproject
.settings/

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.war
*.ear

# virtual machine crash logs (Reference: http://www.java.com/en/download/help/error_hotspot.xml)
hs_err_pid*

## Plugin-specific files:

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Mongo Explorer plugin
.idea/mongoSettings.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

### AndroidStudio Patch ###

!/gradle/wrapper/gradle-wrapper.jar

# End of https://www.toptal.com/developers/gitignore/api/dart,flutter,androidstudio
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '../../../domain/models/event.dart';
import '../../../domain/models/event/event.dart';
import '../../../utils/result.dart';

/// Data source for events.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '../../../domain/models/event.dart';
import '../../../domain/models/event/event.dart';
import '../../../domain/models/status.dart';
import '../../../utils/result.dart';
import '../../services/local_data_service.dart';
Expand Down
Loading