From 6119d58951a93a790363a5fd3f315aa4b51ae609 Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Sun, 12 Nov 2023 20:25:36 +0100 Subject: [PATCH] updated tests --- example/integration_test/util.dart | 2 +- lib/src/chrome_safari_browser/chrome_safari_browser.dart | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/example/integration_test/util.dart b/example/integration_test/util.dart index 3bf631e6..031873ad 100644 --- a/example/integration_test/util.dart +++ b/example/integration_test/util.dart @@ -159,7 +159,7 @@ class MyChromeSafariBrowser extends ChromeSafariBrowser { @override void onPostMessage(String message) { if (!postMessageReceived.isCompleted) { - postMessageReceived.complete(); + postMessageReceived.complete(message); } } diff --git a/lib/src/chrome_safari_browser/chrome_safari_browser.dart b/lib/src/chrome_safari_browser/chrome_safari_browser.dart index 3090d895..0fe2ff2d 100755 --- a/lib/src/chrome_safari_browser/chrome_safari_browser.dart +++ b/lib/src/chrome_safari_browser/chrome_safari_browser.dart @@ -504,7 +504,8 @@ class ChromeSafariBrowser extends ChannelController { /// ///**Supported Platforms/Implementations**: ///- Android ([Official API - CustomTabsClient.getPackageName](https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsClient#getPackageName(android.content.Context,java.util.List%3Cjava.lang.String%3E,boolean)))) - static Future getPackageName({List? packages, bool ignoreDefault = false}) async { + static Future getPackageName( + {List? packages, bool ignoreDefault = false}) async { Map args = {}; args.putIfAbsent("packages", () => packages); args.putIfAbsent("ignoreDefault", () => ignoreDefault);