File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
packages/amplify_datastore/ios Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 44import Flutter
55import Foundation
66import Amplify
7+ import AWSPluginsCore
78
89struct FlutterModelSchema {
910 let name : String
@@ -98,3 +99,11 @@ struct FlutterModelSchema {
9899 return ( fields, name)
99100 }
100101}
102+
103+ // This enables custom selection set behavior within Amplify-Swift v1.
104+ // Which allows models to be decoded when created on Android and received to iOS
105+ extension FlutterModelSchema : SubscriptionSelectionSetBehavior {
106+ public var includePrimaryKeysOnly : Bool {
107+ return true
108+ }
109+ }
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ The DataStore module for Amplify Flutter.
1515 s . source = { :git => 'https://github.com/aws-amplify/amplify-flutter.git' }
1616 s . source_files = 'Classes/**/*'
1717 s . dependency 'Flutter'
18- s . dependency 'Amplify' , '1.29.2 '
19- s . dependency 'AmplifyPlugins/AWSAPIPlugin' , '1.29.2 '
20- s . dependency 'AmplifyPlugins/AWSDataStorePlugin' , '1.29.2 '
18+ s . dependency 'Amplify' , '1.30.4 '
19+ s . dependency 'AmplifyPlugins/AWSAPIPlugin' , '1.30.4 '
20+ s . dependency 'AmplifyPlugins/AWSDataStorePlugin' , '1.30.4 '
2121 s . platform = :ios , '13.0'
2222
2323 # Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
You can’t perform that action at this time.
0 commit comments