in_app_update_android 1.1.6
in_app_update_android: ^1.1.6 copied to clipboard
A Flutter plugin for prompting users about Android in-app updates using Play Core API.
1.1.6 #
- Fixed: Only immediate update flows resume on activity resume — flexible updates no longer re-trigger when returning to the app.
- Added: Track
lastStartedUpdateTypeso the resumed flow always matches the originally triggered update type. - Fixed:
lastStartedUpdateTypecleared on update completion, cancellation, and all error paths to prevent stale state.
1.1.5 #
- Added:
consumerProguardFiles 'consumer-rules.pro'toandroid/build.gradleto ship ProGuard rules with the plugin. - Added: Keep rules for plugin classes in
android/consumer-rules.pro. - Fixed: Track
userCanceledInSessionso a user-canceled update no longer re-triggers the immediate update flow on activity resume. - Fixed: Resolved MethodChannel hanging issue when
checkForUpdate()orperformImmediateUpdate()is called after a user cancels an update prompt in the same session. - Fixed: Added
InAppUpdate.isAndroidcheck in example appinitState()to prevent exceptions on non-Android platforms.
1.1.4 #
- Updated: Version bump to 1.1.4.
- Removed:
consumerProguardFilesfromandroid/build.gradle(ProGuard rules shipped viaconsumer-rules.proremain available).
1.1.3 #
- Fixed: Added missing
android/src/main/AndroidManifest.xmlfor the plugin.
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.10.0, Dart>=3.0.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.10.0, Dart>=3.0.0.
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.