Skip to content

Commit 54aacab

Browse files
authored
Merge pull request #41 from NextFaze/fix/update-dialog
Fix update url not being passed to dialog
2 parents a577c8a + 0fd7c2d commit 54aacab

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# manUp
22

3+
## [9.3.1]
4+
5+
- Fix update url not being passed to dialog callback
6+
37
## [9.3.0]
48

59
- Support `firebase_remote_config` v6 and `firebase_analytics` v12

lib/src/mixin/man_up_dialog_mixin.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ mixin DialogMixin<T extends StatefulWidget> on State<T> {
1818
status: status,
1919
context: context,
2020
message: message,
21+
updateUrl: updateUrl,
2122
onUpdateConfirmed: (url) {
2223
_launchUrl(updateUrl!);
2324
},

lib/src/ui/man_up_app_dialog.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ class ManUpAppDialog {
5050
falseText: "Later",
5151
);
5252

53-
if (confirmed == true) {
54-
onUpdateConfirmed(updateUrl!);
53+
if (confirmed == true && updateUrl != null) {
54+
onUpdateConfirmed(updateUrl);
5555
}
5656
return confirmed ?? false;
5757
case ManUpStatus.unsupported:

pubspec.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,10 +420,10 @@ packages:
420420
dependency: "direct main"
421421
description:
422422
name: meta
423-
sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c
423+
sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394"
424424
url: "https://pub.dev"
425425
source: hosted
426-
version: "1.16.0"
426+
version: "1.17.0"
427427
mime:
428428
dependency: transitive
429429
description:
@@ -641,10 +641,10 @@ packages:
641641
dependency: transitive
642642
description:
643643
name: test_api
644-
sha256: "522f00f556e73044315fa4585ec3270f1808a4b186c936e612cab0b565ff1e00"
644+
sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55
645645
url: "https://pub.dev"
646646
source: hosted
647-
version: "0.7.6"
647+
version: "0.7.7"
648648
timing:
649649
dependency: transitive
650650
description:

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: manup
22
description: Mandatory update for Flutter Apps that prompts or forces app update by querying a hosted JSON file.
3-
version: 9.3.0
3+
version: 9.3.1
44
homepage: https://github.com/NextFaze/flutter_manup
55

66
environment:

0 commit comments

Comments
 (0)