vk_location_sharing 1.0.2
vk_location_sharing: ^1.0.2 copied to clipboard
A Flutter package for implementing location sharing with foreground streams and periodic background updates.
1.0.2 #
- Fixed background callback in Workmanager
- Fixed network constraint restriction
- Added example Android configuration
- Added debug logging to background service
- Updated README with background setup
1.0.1 #
- updated
workmanagerversion.
1.0.0 #
BREAKING CHANGES:
- Renamed
startForegroundSharing()toshareLocation()for unified API - Renamed
initializeBackground()toinitialize()- now required initialization - Removed separate start/stop foreground and background methods
- Changed from returning streams to exposing stream properties
- Modified callback signature to include
isBackgroundflag
NEW FEATURES:
- New
LocationConfigclass for centralized configuration - Added
initialize()method that must be called beforeshareLocation() - Two separate streams:
foregroundLocationStreamandbackgroundLocationStream - New
handleForegroundAndBackgroundSeparatelyoption inLocationConfig - Custom callback support via
onLocationUpdateinLocationConfig - New
dispose()method for proper cleanup - Added
shared_preferencesdependency for background location persistence
IMPROVEMENTS:
- Better permission handling with improved error messages
- More flexible stream management with StreamController
- Better support for custom location handlers and callbacks
- Improved test coverage with updated unit tests
- Updated workmanager to ^0.9.0 for better compatibility with modern Flutter
- Fixed Kotlin compilation errors on Android
DOCUMENTATION:
- Comprehensive dartdoc comments for all public APIs
- Updated README with new API usage examples
- Added detailed example application
0.0.1 #
- Initial release of
vk_location_sharing. - Support for foreground location streaming using
geolocator. - Support for background location updates using
workmanager. - Integrated permission handling.
- Configurable accuracy and distance filters.
- Unified API via
VkLocationSharingclass.