flutter_network_watcher 0.0.2
flutter_network_watcher: ^0.0.2 copied to clipboard
Real-time network connectivity monitoring with offline queue management for Flutter applications. Supports all platforms (Android, iOS, Web, Windows, macOS, Linux) with WASM compatibility and Swift Pa [...]
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.0.2 - 2025-01-09 #
Added #
- Multi-Platform Support: Extended platform support to all 6 Flutter platforms
- ✅ Web platform support with WASM compatibility
- ✅ Windows desktop support with C++ implementation
- ✅ macOS desktop support with Swift implementation
- ✅ Linux desktop support with C++ implementation
- Swift Package Manager (SPM) Support: Full SPM integration for iOS and macOS
- Platform Abstraction Layer: Conditional imports for WASM compatibility
- Web Plugin Implementation: Native web plugin registration
- Desktop Native Plugins: Complete CMake configurations for Windows and Linux
Fixed #
- WASM Compatibility: Resolved
dart:io
import issues preventing web compilation - Platform Declaration: Updated pubspec.yaml to properly declare all platform support
- Conditional Imports: Implemented platform-specific code loading to avoid compilation errors
Changed #
- Architecture: Refactored to use platform abstraction pattern
- Code Organization: Split implementation into platform-specific modules
- Dependencies: Added
flutter_web_plugins
for web platform support
Technical Improvements #
- Platform-specific implementations use conditional exports
- Native plugin boilerplate for all desktop platforms
- Proper CMake configurations for Windows and Linux
- Swift Package Manager manifest and source structure
- Web platform plugin registration with Flutter Web
Platform Support Matrix #
- Mobile: Android ✅, iOS ✅ (CocoaPods + SPM)
- Web: Web ✅ (with WASM compatibility)
- Desktop: Windows ✅, macOS ✅, Linux ✅
0.0.1 - 2024-01-20 #
Added #
- Initial release of flutter_network_watcher
- Real-time network connectivity monitoring
- Offline queue management system
- Automatic request queuing during offline periods
- Network state change notifications
- Persistent queue storage using SharedPreferences
- RxDart streams for reactive programming
- Comprehensive error handling
- Support for custom retry policies
- Background network monitoring
- Flutter plugin architecture for platform-specific implementations
Features #
- NetworkWatcher: Core class for monitoring network connectivity
- OfflineQueue: Queue management for offline requests
- NetworkRequest: Model for queued network requests
- ConnectivityState: Enum for network connection states
- NetworkWatcherConfig: Configuration options for the network watcher
- Stream-based API: Reactive programming with RxDart
- Persistent Storage: Automatic queue persistence across app sessions
- Retry Mechanism: Configurable retry policies for failed requests
- Platform Support: Android and iOS compatibility
Documentation #
- Comprehensive API documentation
- Usage examples and code samples
- Integration guide for Flutter applications
- Migration guide for existing network implementations