in_app_update_android 1.0.7
in_app_update_android: ^1.0.7 copied to clipboard
A Flutter plugin for prompting users about Android in-app updates using Play Core API.
1.0.7 #
- Added:
InstallStateclass to represent detailed in-app update progress (status, bytes downloaded, total bytes, and error code). - Added:
InAppUpdate.installStateListenerstream to listen to the new detailedInstallStateprogress events. - Deprecated:
InAppUpdate.installUpdateListener(replaced byinstallStateListener). - Fixed: Native Android compilation target compatibility by aligning Kotlin's
jvmTargetto17inbuild.gradle. - Fixed: Resolved Kotlin compilation overrides mismatch for
ActivityLifecycleCallbacks. - Fixed: Cleaned up activity and stream listener registration to prevent memory leaks and handle permanent detachment.
1.0.6 #
- Breaking:
showImmediateUpdatePrompt()now launches Google Play Core's native update popup directly instead of showing a custom Material dialog. Removedcontext,title,message,updateButtonText,cancelButtonTextparameters. - Added:
installStateStreamAndroidnow works for both immediate and flexible updates. TheInstallStateUpdatedListeneris registered permanently while the plugin is attached, so install state events (download progress, install status) are emitted regardless of update type. - Changed:
showImmediateUpdatePrompt()now also triggers whendeveloperTriggeredUpdateInProgressis detected, so the prompt reappears every time the app is opened until the update is installed. - Fixed: Added
try-catcharoundstartUpdateFlowForResulton the native side to properly handleIntentSender.SendIntentException. - Fixed:
appUpdateTypeis now cleared after activity result handling, preventing stale state on subsequent lifecycle callbacks. - Fixed:
onActivityResumednow verifies the activity matches the plugin's activity and checksisUpdateTypeAlloweddirectly for more reliable update resumption.
1.0.5 #
- Added:
showImmediateUpdatePrompt()– convenience method that checks for an update, shows a Material confirmation dialog with version details, and starts the immediate update flow on user acceptance. - Added: Customizable dialog parameters (
title,message,updateButtonText,cancelButtonText). - Added: Package layout documentation to README.
1.0.4 #
- Fixed: Immediate update flow now correctly resumes when returning from the Play Store update activity by handling
DEVELOPER_TRIGGERED_UPDATE_IN_PROGRESSstate. - Added:
Application.ActivityLifecycleCallbacksto monitor activity resume and restart interrupted update flows.
1.0.3 #
- Migrated to Flutter Built-in Kotlin support by removing manual KGP configuration.
1.0.2 #
- Null safety improvements: removed force unwrapping in method channel calls.
- Code cleanup: merged duplicate Kotlin branches in update handler.
- Fixed: listener leak during configuration changes.
- Fixed: gradle version string now matches pubspec.
- Added: Dart unit tests (24 tests).
- Added: CI workflow (GitHub Actions).
1.0.1 #
-
Performance Improvements: Under-the-hood optimizations for a smoother and faster app experience.
-
Bug Fixes: Resolved minor issues to improve overall app stability.
1.0.0 #
- Initial version.