From d4e3aa533bb33d2b9a6c70fc7b89db1f2dc6105a Mon Sep 17 00:00:00 2001 From: Gabriel Castiglioni Date: Tue, 17 May 2022 12:03:59 -0300 Subject: [PATCH 1/9] Update SmartReplyPlugin.kt --- .../src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt b/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt index af9607c..51c8625 100644 --- a/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt +++ b/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt @@ -46,7 +46,7 @@ class SmartReplyPlugin: FlutterPlugin, MethodCallHandler { override fun onMethodCall(@NonNull call: MethodCall, @NonNull result: Result) { if (call.method == "suggestReplies") { - val conversation = call.arguments>>().map { m -> + val conversation = call.arguments>?>().map { m -> if(m["isLocalUser"] as Boolean) { return@map TextMessage.createForLocalUser(m["text"] as String, m["timestamp"] as Long) } else { From 062d9caff42f4143ce6e67eec8d27a92eaa57f96 Mon Sep 17 00:00:00 2001 From: Gabriel Castiglioni Date: Tue, 17 May 2022 12:06:20 -0300 Subject: [PATCH 2/9] Update SmartReplyPlugin.kt --- .../src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt b/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt index 51c8625..908e03d 100644 --- a/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt +++ b/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt @@ -46,7 +46,7 @@ class SmartReplyPlugin: FlutterPlugin, MethodCallHandler { override fun onMethodCall(@NonNull call: MethodCall, @NonNull result: Result) { if (call.method == "suggestReplies") { - val conversation = call.arguments>?>().map { m -> + val conversation = call.arguments>>?().map { m -> if(m["isLocalUser"] as Boolean) { return@map TextMessage.createForLocalUser(m["text"] as String, m["timestamp"] as Long) } else { From 7f19804e8a620afa0752b7c4cd073f26b31cefe5 Mon Sep 17 00:00:00 2001 From: Gabriel Castiglioni Date: Tue, 17 May 2022 12:09:04 -0300 Subject: [PATCH 3/9] Update SmartReplyPlugin.kt --- .../src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt b/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt index 908e03d..af9607c 100644 --- a/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt +++ b/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt @@ -46,7 +46,7 @@ class SmartReplyPlugin: FlutterPlugin, MethodCallHandler { override fun onMethodCall(@NonNull call: MethodCall, @NonNull result: Result) { if (call.method == "suggestReplies") { - val conversation = call.arguments>>?().map { m -> + val conversation = call.arguments>>().map { m -> if(m["isLocalUser"] as Boolean) { return@map TextMessage.createForLocalUser(m["text"] as String, m["timestamp"] as Long) } else { From 14d0bdf869752b1ee345502af504718337494416 Mon Sep 17 00:00:00 2001 From: Gabriel Castiglioni Date: Tue, 17 May 2022 12:12:15 -0300 Subject: [PATCH 4/9] Update SmartReplyPlugin.kt --- .../src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt b/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt index af9607c..3ae040b 100644 --- a/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt +++ b/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt @@ -46,7 +46,7 @@ class SmartReplyPlugin: FlutterPlugin, MethodCallHandler { override fun onMethodCall(@NonNull call: MethodCall, @NonNull result: Result) { if (call.method == "suggestReplies") { - val conversation = call.arguments>>().map { m -> + val conversation = call.arguments>>()?.map { m -> if(m["isLocalUser"] as Boolean) { return@map TextMessage.createForLocalUser(m["text"] as String, m["timestamp"] as Long) } else { From 681e0264116d0aea03b7e77c9606e6c8d8ab15f2 Mon Sep 17 00:00:00 2001 From: Gabriel Castiglioni Date: Tue, 17 May 2022 12:14:53 -0300 Subject: [PATCH 5/9] Update SmartReplyPlugin.kt --- .../src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt b/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt index 3ae040b..c123298 100644 --- a/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt +++ b/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt @@ -46,7 +46,7 @@ class SmartReplyPlugin: FlutterPlugin, MethodCallHandler { override fun onMethodCall(@NonNull call: MethodCall, @NonNull result: Result) { if (call.method == "suggestReplies") { - val conversation = call.arguments>>()?.map { m -> + val conversation = call.arguments>>()!.map { m -> if(m["isLocalUser"] as Boolean) { return@map TextMessage.createForLocalUser(m["text"] as String, m["timestamp"] as Long) } else { From d6bcedbcea87d8cbe15d901ea9d25a38aedd7a87 Mon Sep 17 00:00:00 2001 From: Gabriel Castiglioni Date: Tue, 17 May 2022 12:16:00 -0300 Subject: [PATCH 6/9] Update SmartReplyPlugin.kt --- .../src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt b/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt index c123298..0322ccb 100644 --- a/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt +++ b/android/src/main/kotlin/com/kirpal/smart_reply/SmartReplyPlugin.kt @@ -46,7 +46,7 @@ class SmartReplyPlugin: FlutterPlugin, MethodCallHandler { override fun onMethodCall(@NonNull call: MethodCall, @NonNull result: Result) { if (call.method == "suggestReplies") { - val conversation = call.arguments>>()!.map { m -> + val conversation = call.arguments>>()!!.map { m -> if(m["isLocalUser"] as Boolean) { return@map TextMessage.createForLocalUser(m["text"] as String, m["timestamp"] as Long) } else { From 459a75a4b5679b44b9a623e2c4e888e914204fb4 Mon Sep 17 00:00:00 2001 From: Gabriel Castiglioni Date: Mon, 31 Oct 2022 20:38:51 -0300 Subject: [PATCH 7/9] Update smart_reply.podspec --- ios/smart_reply.podspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/smart_reply.podspec b/ios/smart_reply.podspec index 8e67def..a80c3a7 100644 --- a/ios/smart_reply.podspec +++ b/ios/smart_reply.podspec @@ -4,7 +4,7 @@ # Pod::Spec.new do |s| s.name = 'smart_reply' - s.version = '0.0.1' + s.version = '0.1.0' s.summary = 'Generate relevant replies to messages using MLKit.' s.description = <<-DESC Generate relevant replies to messages using MLKit. @@ -17,7 +17,7 @@ Generate relevant replies to messages using MLKit. s.dependency 'Flutter' s.dependency 'GoogleMLKit/SmartReply' s.static_framework = true - s.ios.deployment_target = '10.0' + s.ios.deployment_target = '12.0' # Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported. s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' } From c29956c503598eaed9352f067d97a31040509ab2 Mon Sep 17 00:00:00 2001 From: Gabriel Castiglioni Date: Mon, 31 Oct 2022 20:41:55 -0300 Subject: [PATCH 8/9] Update smart_reply.podspec --- ios/smart_reply.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/smart_reply.podspec b/ios/smart_reply.podspec index a80c3a7..e630c8d 100644 --- a/ios/smart_reply.podspec +++ b/ios/smart_reply.podspec @@ -15,7 +15,7 @@ Generate relevant replies to messages using MLKit. s.source = { :path => '.' } s.source_files = 'Classes/**/*' s.dependency 'Flutter' - s.dependency 'GoogleMLKit/SmartReply' + s.dependency 'GoogleMLKit/SmartReply', '~> 3.2.0' s.static_framework = true s.ios.deployment_target = '12.0' From ca732221dcfa8d881a822f7c960a05d74887935e Mon Sep 17 00:00:00 2001 From: Gabriel Castiglioni Date: Mon, 31 Oct 2022 20:43:06 -0300 Subject: [PATCH 9/9] Update smart_reply.podspec --- ios/smart_reply.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/smart_reply.podspec b/ios/smart_reply.podspec index e630c8d..7609e5f 100644 --- a/ios/smart_reply.podspec +++ b/ios/smart_reply.podspec @@ -4,7 +4,7 @@ # Pod::Spec.new do |s| s.name = 'smart_reply' - s.version = '0.1.0' + s.version = '1.0.0' s.summary = 'Generate relevant replies to messages using MLKit.' s.description = <<-DESC Generate relevant replies to messages using MLKit.