Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# manUp

## [9.3.1]

- Fix update url not being passed to dialog callback

## [9.3.0]

- Support `firebase_remote_config` v6 and `firebase_analytics` v12
Expand Down
1 change: 1 addition & 0 deletions lib/src/mixin/man_up_dialog_mixin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ mixin DialogMixin<T extends StatefulWidget> on State<T> {
status: status,
context: context,
message: message,
updateUrl: updateUrl,
onUpdateConfirmed: (url) {
_launchUrl(updateUrl!);
},
Expand Down
4 changes: 2 additions & 2 deletions lib/src/ui/man_up_app_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ class ManUpAppDialog {
falseText: "Later",
);

if (confirmed == true) {
onUpdateConfirmed(updateUrl!);
if (confirmed == true && updateUrl != null) {
onUpdateConfirmed(updateUrl);
}
return confirmed ?? false;
case ManUpStatus.unsupported:
Expand Down
8 changes: 4 additions & 4 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -420,10 +420,10 @@ packages:
dependency: "direct main"
description:
name: meta
sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c
sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394"
url: "https://pub.dev"
source: hosted
version: "1.16.0"
version: "1.17.0"
mime:
dependency: transitive
description:
Expand Down Expand Up @@ -641,10 +641,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: "522f00f556e73044315fa4585ec3270f1808a4b186c936e612cab0b565ff1e00"
sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55
url: "https://pub.dev"
source: hosted
version: "0.7.6"
version: "0.7.7"
timing:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: manup
description: Mandatory update for Flutter Apps that prompts or forces app update by querying a hosted JSON file.
version: 9.3.0
version: 9.3.1
homepage: https://github.com/NextFaze/flutter_manup

environment:
Expand Down