Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -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<List<Map<String, Any>>>().map { m ->
val conversation = call.arguments<List<Map<String, Any>>>()!!.map { m ->
if(m["isLocalUser"] as Boolean) {
return@map TextMessage.createForLocalUser(m["text"] as String, m["timestamp"] as Long)
} else {
Expand Down
6 changes: 3 additions & 3 deletions ios/smart_reply.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
Pod::Spec.new do |s|
s.name = 'smart_reply'
s.version = '0.0.1'
s.version = '1.0.0'
s.summary = 'Generate relevant replies to messages using MLKit.'
s.description = <<-DESC
Generate relevant replies to messages using MLKit.
Expand All @@ -15,9 +15,9 @@ 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 = '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' }
Expand Down