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 4
4
import Flutter
5
5
import Foundation
6
6
import Amplify
7
+ import AWSPluginsCore
7
8
8
9
struct FlutterModelSchema {
9
10
let name : String
@@ -98,3 +99,11 @@ struct FlutterModelSchema {
98
99
return ( fields, name)
99
100
}
100
101
}
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.
15
15
s . source = { :git => 'https://github.com/aws-amplify/amplify-flutter.git' }
16
16
s . source_files = 'Classes/**/*'
17
17
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 '
21
21
s . platform = :ios , '13.0'
22
22
23
23
# 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