Skip to content

Commit

Permalink
chore(datastore): Amplify Swift version bump to 1.30.4 (#3327)
Browse files Browse the repository at this point in the history
  • Loading branch information
Equartey authored and ragingsquirrel3 committed Jul 6, 2023
1 parent f012f91 commit 25a36f4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
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

0 comments on commit 25a36f4

Please sign in to comment.