Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(datastore): Amplify Swift version bump to 1.30.4 #3327

Merged
merged 1 commit into from
Jun 30, 2023
Merged
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 @@ -4,6 +4,7 @@
import Flutter
import Foundation
import Amplify
import AWSPluginsCore

struct FlutterModelSchema {
let name: String
Expand Down Expand Up @@ -98,3 +99,11 @@ struct FlutterModelSchema {
return (fields, name)
}
}

// This enables custom selection set behavior within Amplify-Swift v1.
// Which allows models to be decoded when created on Android and received to iOS
extension FlutterModelSchema: SubscriptionSelectionSetBehavior {
public var includePrimaryKeysOnly: Bool {
return true
}
}
6 changes: 3 additions & 3 deletions packages/amplify_datastore/ios/amplify_datastore.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ The DataStore module for Amplify Flutter.
s.source = { :git => 'https://github.com/aws-amplify/amplify-flutter.git' }
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'
s.dependency 'Amplify', '1.29.2'
s.dependency 'AmplifyPlugins/AWSAPIPlugin', '1.29.2'
s.dependency 'AmplifyPlugins/AWSDataStorePlugin', '1.29.2'
s.dependency 'Amplify', '1.30.4'
s.dependency 'AmplifyPlugins/AWSAPIPlugin', '1.30.4'
s.dependency 'AmplifyPlugins/AWSDataStorePlugin', '1.30.4'
s.platform = :ios, '13.0'

# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
Expand Down