Skip to content

Commit

Permalink
chore(datastore): Amplify Swift version bump to 1.30.7 (#4454)
Browse files Browse the repository at this point in the history
* chore(datastore): Amplify Swift version bump to 1.30.7

* chore: add timezone to the FlutterTemporal struct
  • Loading branch information
khatruong2009 authored and Equartey committed Feb 29, 2024
1 parent 4e3b4b4 commit a90de27
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ import Foundation
// Stores an ISO 8601 String to be saved to Appsync
struct FlutterTemporal: TemporalSpec {
let iso8601: String
var timeZone: TimeZone?
init(iso8601String: String) {
self.iso8601 = iso8601String
self.foundationDate = Date()
self.timeZone = TimeZone.current
}

var iso8601String: String {
Expand All @@ -21,9 +23,10 @@ struct FlutterTemporal: TemporalSpec {
// In order to properly adhere to "TemporalSpec" these functions must be implemented
// This class is solely for transmitting a ISO 8601 Date String to Appsync so these other functions are not needed
var foundationDate: Date
init(_ date: Date) {
init(_ date: Date, timeZone: TimeZone? = TimeZone.current) {
self.iso8601 = ""
self.foundationDate = date
self.timeZone = timeZone
}

static func now() -> FlutterTemporal {
Expand Down
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.30.4'
s.dependency 'AmplifyPlugins/AWSAPIPlugin', '1.30.4'
s.dependency 'AmplifyPlugins/AWSDataStorePlugin', '1.30.4'
s.dependency 'Amplify', '1.30.7'
s.dependency 'AmplifyPlugins/AWSAPIPlugin', '1.30.7'
s.dependency 'AmplifyPlugins/AWSDataStorePlugin', '1.30.7'
s.dependency 'Starscream', '4.0.4'
s.platform = :ios, '13.0'

Expand Down

0 comments on commit a90de27

Please sign in to comment.