app_lifecycle_executor 0.0.1
app_lifecycle_executor: ^0.0.1 copied to clipboard
A Flutter package for executing lifecycle callbacks on iOS and Android.
0.0.1 #
- Initial release
- Execute callbacks on first app installation
- Execute callbacks on app version upgrades with
Versionobjects (usingversionpackage) - API: Renamed
migrationCallbacktoonVersionChangedfor clarity - NEW:
AppLifecycleExecutor.onFirstInstall()- Register first install callback - NEW:
AppLifecycleExecutor.onVersionChanged()- Register version change callback - NEW:
AppLifecycleExecutor.onError()- Register error handler - Two usage patterns: register callbacks then init, or pass callbacks to init
- Type-safe semantic version comparisons in version change callbacks
- Automatic execution tracking using SharedPreferences
- Ensures callbacks execute only once per lifecycle event
- Built-in error handling support
- Helper methods for version checking and state management
- Full test coverage