deep_link_manager 0.4.0
deep_link_manager: ^0.4.0 copied to clipboard
A generic deep link management package for Flutter.
0.4.0 #
- BREAKING CHANGE: Changed
DeepLinkAuthProvider.authStateChangesfromStream<bool>?toListenable?for better Flutter integration.- Migration: Instead of passing a
Stream, pass aChangeNotifier,ValueNotifier, or anyListenable. - Before:
authProvider: SimpleAuthProvider(navigatorKey, authNotifier.authStateStream) - After:
authProvider: SimpleAuthProvider(navigatorKey, authNotifier)
- Migration: Instead of passing a
- BREAKING CHANGE: Removed
StreamControllerrequirement from example - now usesChangeNotifierdirectly. - Improvement: Added
autoSetAppReadyparameter (default:true) - automatically marks app as ready on first frame.- Set to
falseif you need to wait for splash screen/config before processing deep links. - No more manual
setAppReady()calls in most cases!
- Set to
- Improvement: Pending links are now automatically cleared on logout (when
authStateChangesemits andisAuthenticatedbecomesfalse). No need to manually callclearPendingLink()anymore! - Improvement: Simplified API - no need to manually emit events or close controllers.
- Improvement: Better compatibility with all Flutter state management solutions (Provider, Riverpod, Bloc, etc.).
- Fix: Eliminated potential memory leaks from unclosed
StreamControllerinstances.
0.3.0 #
- Feat: Added
pendingLinkExpirationparameter toinitialize()to configure how long pending links are kept (default: 5 minutes). - Feat: Added
authStateChangesstream toDeepLinkAuthProviderto allowDeepLinkManagerto automatically process pending links when authentication state changes. - Fix: Added error handling (
onError) to auth state stream subscription to prevent silent failures. - Fix: Added initial authentication check after subscription setup to handle race conditions when user is already authenticated during initialization.
- Fix: Added
dispose()method to exampleAuthNotifierto properly closeStreamControllerand prevent memory leaks. - Refactor: Updated
exampleproject to demonstrate reactive authentication handling usingAuthNotifierstream. - Test: Added comprehensive test for reactive auth stream triggering pending link checks.
0.2.0 #
- BREAKING CHANGE: Refactored
DeepLinkStrategyto be genericDeepLinkStrategy<T>.extractDatanow returnsT?.handlenow receivesT? data.- This improves type safety for extracted data.
- Updated
DeepLinkManagerto support heterogeneous generic strategies. - Example app updated to demonstrate Generic Strategies and Reactive Auth flow.
0.1.4 #
- Added
checkPendingLinks()method to manually trigger pending link processing (e.g., after login). - Added support for injecting a custom
navigatorKeyininitialize. - Added warning log when
requiresAuthis true but noauthProvideris set. - Added
DeepLinkAuthProvider.fromCallbacksfor simpler auth integration (from 0.1.3).
0.1.2 #
- Updated documentation to credit
app_linkspackage.
0.1.1 #
- Added example project.
- Updated README integration guide.
0.1.0 #
- Initial release of
deep_link_manager. - Includes
DeepLinkManager,DeepLinkStrategy, andDeepLinkAuthProviderfor generic deep link handling.