firebase_update 1.0.2
firebase_update: ^1.0.2 copied to clipboard
Flutter force update, maintenance mode & patch notes via Firebase Remote Config. Real-time, server-controlled, with built-in UI and full customization.
1.0.2 #
- RC-driven store URLs:
store_url_android,store_url_ios,store_url_macos,store_url_windows,store_url_linux,store_url_webcan now be set in the Remote Config JSON payload. When present, they take priority over the localFirebaseUpdateConfig.fallbackStoreUrlsvalues, allowing store URLs to be updated without a rebuild.
1.0.1 #
- Topics: Added pub.dev topics (
updates,versioning,remote-config,firebase,app-management) - Store launch override: New
onStoreLaunchcallback onFirebaseUpdateConfig— replaces the defaultapp_review+url_launcherstore-open flow with your own logic; dialog dismisses automatically after the callback returns - Button callback hooks:
onForceUpdateTap,onOptionalUpdateTap,onOptionalLaterTaponFirebaseUpdateConfig— fire in addition to default behavior for analytics and side effects - Skip version: Opt-in
showSkipVersion: boolconfig flag adds a persistent "Skip this version" tertiary button to optional-update prompts; persists across restarts viashared_preferences - Session dismiss (default): Tapping "Later" now suppresses the optional-update prompt for the current app session. The prompt reappears on the next launch
- Timed snooze (opt-in): Set
snoozeDuration(e.g.Duration(hours: 24)) to persist the snooze across restarts — the prompt stays hidden until the duration elapses - Persistence: New
FirebaseUpdatePreferencesStoreabstract interface +SharedPreferencesFirebaseUpdateStoredefault implementation; inject a custom store viaFirebaseUpdateConfig.preferencesStore - Programmatic skip/snooze API:
FirebaseUpdate.instance.snoozeOptionalUpdate(),skipVersion(),dismissOptionalUpdateForSession(),clearSnooze(),clearSkippedVersion()— lets customoptionalUpdateWidgetbuilders drive SDK state without relying on built-in buttons - Shorebird patches: New
FirebaseUpdatePatchSourceabstract interface,FirebaseUpdateKind.shorebirdPatchstate,patchSource+onPatchApplied+shorebirdPatchWidgetconfig fields, and a built-in patch dialog/sheet with async download progress indicator;onPatchAppliedcallback lets you trigger your own restart logic - Labels: Added
skipVersion,patchAvailableTitle,patchAvailableMessage,applyPatchtoFirebaseUpdateLabels - Presentation data: Added
tertiaryLabelandonTertiaryTaptoFirebaseUpdatePresentationData(andcopyWith) - Dependencies: Added
shared_preferences: ">=2.2.0 <4.0.0"
1.0.0 #
First stable release.
- Firebase Remote Config driven update state: optional update, force update, maintenance mode
- Fixed Remote Config schema —
FirebaseUpdateConfig()works with zero required parameters remoteConfigKeydefaults tofirebase_update_config, override if needed- Real-time Remote Config listening via
onConfigUpdatedwith opt-out support - Package-managed default UI: optional update dialog, optional update bottom sheet, force update dialog, maintenance dialog
- Custom builder hooks to replace any default surface with your own widget
FirebaseUpdateBuilder— reactive widget for building in-screen update surfacesFirebaseUpdateContentAlignmentenum to control icon, title, and body alignment across all surfaces- Skip-version behavior: tapping Later suppresses the same version; clears when a newer version arrives
- Patch notes with read-more expansion for plain text (5-line threshold) and HTML content
- Per-platform store URLs via
FirebaseUpdateStoreUrls - Native store listing launch via
app_reviewwith URL fallback - Theme tokens: surface, accent, content, outline, barrier, blur, hero gradient, border radius
- 19 widget tests covering initialization, optional update, force update, maintenance, escalation, skip-version, and patch notes rendering