From aafd1c00a0e59ade67b66da58803ef44643b371b Mon Sep 17 00:00:00 2001 From: Gary O'Neall Date: Mon, 20 Mar 2023 14:48:45 -0700 Subject: [PATCH] Change return type to bool for shareOption Fixes https://github.com/ShekarMudaliyar/social_share/issues/117 The Dart code is expecting a return type of bool and the Android code is returning a type String. I'm assuming "success" should be translated to True. I looked at the iOS code and it is returning a boolean type for the same function. Signed-off-by: Gary O'Neall --- .../com/shekarmudaliyar/social_share/SocialSharePlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/kotlin/com/shekarmudaliyar/social_share/SocialSharePlugin.kt b/android/src/main/kotlin/com/shekarmudaliyar/social_share/SocialSharePlugin.kt index e3f549b..ae7b2f5 100644 --- a/android/src/main/kotlin/com/shekarmudaliyar/social_share/SocialSharePlugin.kt +++ b/android/src/main/kotlin/com/shekarmudaliyar/social_share/SocialSharePlugin.kt @@ -136,7 +136,7 @@ class SocialSharePlugin:FlutterPlugin, MethodCallHandler, ActivityAware { chooserIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) activeContext!!.startActivity(chooserIntent) - result.success("success") + result.success(true) } else if (call.method == "copyToClipboard") {