flutter_app_update_manager 0.1.0
flutter_app_update_manager: ^0.1.0 copied to clipboard
A powerful Flutter package to easily manage in-app updates using Firebase Firestore with multiple dialog styles and custom dialog support.
Changelog #
0.1.0 2024-01-XX #
Added #
- Multiple Dialog Styles: Added support for different dialog styles including:
DialogStyle.defaultStyle
: Classic AlertDialogDialogStyle.modernStyle
: Modern rounded dialog with iconsDialogStyle.materialStyle
: Material Design 3 inspired dialogDialogStyle.custom
: Custom dialog support
- Custom Dialog Interface: Added
CustomUpdateDialog
interface for creating custom update dialogs - App Name Customization: Added
appName
parameter to display app name in dialogs - Smart Force Update Handling: Automatically hide "Later" button when
forceUpdate
is true - Enhanced Dialog Content: Improved dialog text to show app name when provided
- Firestore App ID Management: App IDs can now be configured in Firestore for centralized management
Changed #
- Removed Parameters: Removed
showLaterButton
,playStoreUrl
, andappStoreUrl
parameters - Simplified URL Generation: URLs are now automatically generated from
androidId
andiosId
- Improved Auto Setup: Enhanced auto setup with better documentation and warnings
- Updated Example App: Completely redesigned example app with interactive dialog style selection
- Enhanced Firestore Integration: App IDs can now be managed centrally in Firestore
Fixed #
- Deprecated Method Usage: Fixed
withOpacity
usage to usewithValues
for better precision - Test Coverage: Improved test coverage with simplified test structure
Breaking Changes #
showLaterButton
parameter removed - "Later" button now automatically shows/hides based onforceUpdate
playStoreUrl
andappStoreUrl
parameters removed - URLs now generated from app IDs- Constructor signature changed to support new dialog styles and custom dialogs
Migration Guide #
To migrate from version 0.0.3 to 0.1.0:
Before:
AppUpdateManager(
context: context,
androidId: 'com.example.app',
iosId: '123456789',
showLaterButton: true,
appName: 'MyApp',
playStoreUrl: 'https://play.google.com/store/apps/details?id=com.example.app',
appStoreUrl: 'https://apps.apple.com/app/id123456789',
).checkForUpdate();
After:
AppUpdateManager(
context: context,
androidId: 'com.example.app',
iosId: '123456789',
appName: 'MyApp',
dialogStyle: DialogStyle.defaultStyle, // or other styles
).checkForUpdate();