in_app_update_android 1.1.2
in_app_update_android: ^1.1.2 copied to clipboard
A Flutter plugin for prompting users about Android in-app updates using Play Core API.
1.1.2 #
- Fixed:
AppUpdateInfo.hashCodenow includes allowed preconditions, consistent with equality. - Updated: Example project SDK to
^3.12.0.
1.1.1 #
- Fixed:
AppUpdateInfoequality now compares allowed preconditions by value. - Added:
AppUpdateInfo.toString()for easier debugging. - Fixed:
onCancelno longer unregisters listener during active flexible update. - Fixed: Null-safe pending result handling on engine/activity detach.
- Fixed:
pendingEventslist is now thread-safe. - Fixed:
handleCompleteUpdatereturnsNO_FLEXIBLE_UPDATEerror when no flexible update is in progress. - Added:
InAppUpdate.resetCachedStream()for test isolation. - Added: ProGuard consumer rules for Play Core library.
- Added: Unit tests for
completeFlexibleUpdateerror path. - Migrated to Flutter's built-in Kotlin support.
- Minimum Flutter
>=3.44.0, Dart^3.12.0.
1.1.0 #
- Fixed: Flexible update listener registered eagerly to prevent missed progress events.
- Fixed: Install state events buffered and flushed when stream is listened to.
- Fixed: Flexible update auto-completes pending result on terminal state.
- Improved: Example app shows distinct UI states for flexible update.
- Added: Unit tests for
startFlexibleUpdateandinstallStateListener.
1.0.9 #
- Fixed: Example app builds on AGP 9+ with built-in Kotlin support.
- Fixed: Lifecycle listeners unregistered on engine detach to prevent leaks.
- Minimum Flutter
3.44.0, Dart3.12.
1.0.8 #
- Added:
InAppUpdate.isAndroidguard for cross-platform apps. - Added:
InAppUpdateExceptionfor typed plugin errors. - Added: Optional
allowAssetPackDeletionfor immediate and flexible updates. - Added:
AppUpdateInfo.updateAvailable,immediateUpdateInProgress,InstallState.downloadProgresshelpers. - Changed: Native update flow now uses
AppUpdateOptionsconsistently. - Improved: Example app listens to
installStateListenerwith progress display. - Fixed: Pending result completed with error on engine detach.
1.0.7 #
- Added:
InstallStateclass with status, bytes downloaded/total, and error code. - Added:
InAppUpdate.installStateListenerstream. - Deprecated:
installUpdateListener(useinstallStateListener). - Fixed: Aligned Kotlin
jvmTargetto17for compilation compatibility. - Fixed: Listener registration cleanup to prevent memory leaks.
1.0.6 #
- Breaking:
showImmediateUpdatePrompt()now uses Play Core's native popup. Removed custom dialog parameters. - Added:
installStateStreamAndroidworks for both immediate and flexible updates. - Changed:
showImmediateUpdatePrompt()re-triggers ondeveloperTriggeredUpdateInProgress. - Fixed:
IntentSender.SendIntentExceptioncaught on native side. - Fixed:
appUpdateTypecleared after activity result to prevent stale state. - Fixed:
onActivityResumedvalidates activity and checksisUpdateTypeAllowed.
1.0.5 #
- Added:
showImmediateUpdatePrompt()with version dialog and immediate update flow. - Added: Customizable dialog parameters.
1.0.4 #
- Fixed: Immediate update resumes after returning from Play Store.
- Added:
ActivityLifecycleCallbacksto monitor resume and restart interrupted flows.
1.0.3 #
- Migrated to Flutter built-in Kotlin support.
1.0.2 #
- Null safety: removed force unwrapping in method channel calls.
- Fixed: Listener leak during configuration changes.
- Added: 24 Dart unit tests.
- Added: GitHub Actions CI workflow.
1.0.1 #
- Performance improvements and minor bug fixes.
1.0.0 #
- Initial release.