Skip to content

Commit 25a36f4

Browse files
Equarteyragingsquirrel3
authored andcommitted
chore(datastore): Amplify Swift version bump to 1.30.4 (#3327)
1 parent f012f91 commit 25a36f4

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

packages/amplify_datastore/ios/Classes/types/model/FlutterModelSchema.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import Flutter
55
import Foundation
66
import Amplify
7+
import AWSPluginsCore
78

89
struct 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+
}

packages/amplify_datastore/ios/amplify_datastore.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)