Files
meshcore-sar_android/pubspec.yaml
Janez T f96d8022ac feat: add Codec2 voice messages over LoRa mesh (iOS/macOS only)
Push-to-talk voice messaging using the Codec2 ultra-low-bitrate speech
codec, transmitted as V: prefixed packets over the existing MeshCore
LoRa mesh pipeline.

Voice recording UI (long-press send button or + menu) is gated behind
Platform.isIOS || Platform.isMacOS since the `record` package only
supports microphone capture on those platforms in this build.

Key changes:
- VoiceRecorderService: streams 8kHz mono PCM chunks via `record` package
- VoicePlayerService: decodes Codec2 bytes to WAV and plays via audioplayers
- VoiceCodecService: async Codec2 encode/decode in background isolates
- VoiceProvider: reassembles multi-packet sessions, drives playback
- VoiceMessageBubble: shows packet progress, play/stop controls
- MessagesProvider: detects V: prefix, routes to VoiceProvider
- MessagesTab: PTT long-press gesture + recording indicator (iOS/macOS)
- Message model: isVoice + voiceId fields for session tracking
- Auto-selects codec mode from radio bandwidth (700C/1200/1300 bps)
- codec2_flutter + meshcore_client switched from path to git deps
2026-02-28 19:19:46 +01:00

200 lines
6.1 KiB
YAML

name: meshcore_sar_app
description: "MeshCore SAR (Search & Rescue) app with BLE mesh networking and offline maps"
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 2025.1214.2+3
environment:
sdk: ^3.9.2
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
# Internationalization
intl: any
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.8
# MeshCore BLE protocol client
meshcore_client:
git:
url: https://github.com/dz0ny/meshcore_client.git
# Codec2 ultra-low-bitrate speech codec (FFI plugin)
codec2_flutter:
git:
url: https://github.com/dz0ny/codec2_flutter.git
ffi: ^2.1.0
# Voice recording (raw PCM stream at 8000 Hz)
record: ^6.0.0
# Voice playback (plays WAV from file)
audioplayers: ^6.0.0
# BLE connectivity
flutter_blue_plus: ^2.0.0
# State management
provider: ^6.1.0
# Map display
flutter_map: ^8.2.2
latlong2: ^0.9.0
# Offline tile caching
flutter_map_tile_caching: ^10.1.1
# Vector map tiles
vector_map_tiles: ^9.0.0-beta.8
vector_map_tiles_mbtiles:
git:
url: https://github.com/josxha/flutter_map_plugins.git
path: vector_map_tiles_mbtiles
vector_tile_renderer: ^6.0.0
mbtiles: ^0.4.0
http: ^1.2.0
# Coordinate system projections for WMS (EPSG:3794)
proj4dart: ^2.1.0
# Permissions
permission_handler: ^12.0.1
# Location services
geolocator: ^14.0.2
flutter_compass: ^0.8.0
# File handling
share_plus: ^12.0.0
path_provider: ^2.1.5
file_picker: ^10.3.3
# Persistent storage
shared_preferences: ^2.3.3
# Package info
package_info_plus: ^8.1.2
# Background services
flutter_background_service: ^5.0.13
# Notifications
flutter_local_notifications: ^19.5.0
timezone: ^0.10.0
# Vibration
vibration: ^3.1.4
# URL launching
url_launcher: ^6.3.0
# Cryptographic functions (for channel secret hashing)
crypto: ^3.0.3
# XML parsing for GPX import/export
xml: ^6.5.0
# SSE web server for multi-user support
shelf: ^1.4.0
shelf_router: ^1.1.0
# Network Service Discovery (Bonjour/mDNS)
nsd: ^4.0.3
dev_dependencies:
flutter_test:
sdk: flutter
# The "flutter_lints" package below contains a set of recommended lints to
# encourage good coding practices. The lint set provided by the package is
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^6.0.0
flutter_launcher_icons: "^0.14.4"
flutter_launcher_icons:
android: "launcher_icon"
ios: true
image_path: "icon.png"
min_sdk_android: 21 # android min sdk min:16, default 21
web:
generate: true
image_path: "icon.png"
background_color: "#ddd" # background color for web icon, default white
theme_color: "#fff" # theme color for web icon, default white
windows:
generate: true
image_path: "icon.png"
icon_size: 48 # min:48, max:256, default: 48
macos:
generate: true
image_path: "icon.png"
# The following section is specific to Flutter packages.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# Enable generation of localization files
generate: true
# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/to/resolution-aware-images
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/to/asset-from-package
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/to/font-from-package