Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 2.4 KB

File metadata and controls

51 lines (41 loc) · 2.4 KB

Future

Dependencies & Infrastructure Updates

  • Updated androidx.work from 2.9.0 to 2.10.2 with improved Flow-based observability
  • Regenerated Pigeon files with updated version 26.0.0

Breaking Changes

  • BREAKING: Update registerPeriodicTask to use ExistingPeriodicWorkPolicy instead of ExistingWorkPolicy
    • This provides better type safety and mirrors Android's native API

Bug Fixes

  • Fix issue #622: Periodic tasks running at incorrect frequencies when re-registered
    • Changed default ExistingPeriodicWorkPolicy from KEEP to UPDATE
    • Ensures new task configurations properly replace existing ones
  • Fix null callback crash in BackgroundWorker when FlutterCallbackInformation is null (thanks to @jonathanduke, @Muneeza-PT)

Improvements

  • Improve SharedPreferenceHelper callback handling - now calls callback immediately when preferences are already loaded

0.8.0

Initial Release

  • BREAKING: Migrate to federated plugin architecture
  • Initial release of the Android implementation
  • Implement all WorkmanagerPlatform methods for Android
  • Support for one-off and periodic tasks using WorkManager API
  • Migrate from be.tramckrijte to dev.fluttercommunity namespace

Breaking Changes

  • BREAKING: Enum values changed from snake_case to camelCase:
    • NetworkType values: not_requirednotRequired, not_roamingnotRoaming, meteredmetered (unchanged)
    • OutOfQuotaPolicy values: run_as_non_expedited_work_requestrunAsNonExpeditedWorkRequest, drop_work_requestdropWorkRequest
  • BREAKING: Removed JSON serialization for inputData - now uses native Map transfer

New Features

  • Add isScheduledByUniqueName method to check if a periodic task is scheduled by its unique name
  • Support for constraints: network type, battery not low, charging, device idle, storage not low
  • Support for backoff policies: linear and exponential
  • Added comprehensive integration tests

Bug Fixes

  • Fixed NullPointerException when isInDebugMode was not properly initialized
  • Fixed inputData type handling - now properly supports all primitive types and lists
  • Fixed v2 embedding import in BackgroundWorker

Improvements

  • Updated to Android target SDK 35
  • Updated Android dependencies to latest versions
  • Improved CI/CD with Android emulator caching
  • Better error handling and type safety
  • Fix documentation formatting and typo in BackgroundWorker