This repository was archived by the owner on Feb 13, 2025. It is now read-only.
Releases: Kinvey/swift-sdk
Releases · Kinvey/swift-sdk
3.12.0
3.11.0
3.10.1
3.10.0
Improvements
- New enum
ValidationStrategy
added, which allow users to define a strategy to validate results upfront. There's 3 options available:.all
,.randomSample(percentage:)
and.custom(validationBlock: (Array<Dictionary<String, Any>>) -> Swift.Error?)
. Please see Reference Docs for more details. (#248)
let dataStore = DataStore<Person>.collection(.network, validationStrategy: .all)
Bugfixes
- None
Deprecated
- None
Breaking Changes
- None
3.9.1
3.9.0
Improvements
- Better Support for Xcode 9 and Swift 4.0 while keeps support for Swift 3.2 (#245)
FileStore.create()
creates a file entry in the server so thefileId
can be used to perform resumable uploads (#239)- Allow custom
URLSession
for each call usingOptions
(#244) - Support for
SFAuthenticationSession
for iOS 11, otherwise useSFSafariViewController
(#246)
Bugfixes
- Register for push notifications not being called in main thread (#240)
- Infinite loop if they keyword
dynamic
not being used in the property declaration onEntity
subclasses (#243) DataStore.syncCount()
andDataStore.sync()
considering entities that are not the generic class specified onDataStore
(#247)
Deprecated
- None
Breaking Changes
- None
3.8.0
Improvements
- Make explicit that
_id
is required (#234) - New Feature:
DataStore<T>.collection(autoPagination: true)
enables auto pagination, so no need to do it manually. This feature is disabled by default, soDataStore<T>.collection()
meansDataStore<T>.collection(autoPagination: false)
(#231) User.logout()
is now async since it performs a network request to invalidate the token in the backend (#237)
Bugfixes
File.mapping()
was notopen
(#233)- During
save()
the cache implementation now performs deletes on nested objects (#229) - Cache path on macOS was
~/Documents/<kinvey app key>
, but should be~/Library/Application Support/<bundle id>/<kinvey app key>
(#236)
Deprecated
- None
Breaking Changes
- The
clientId
parameter was renamed toauthServiceId
inUser.presentMICViewController()
,User.login()
andOptions()
(#238) - Now
Kinvey.Error.unauthorized
also includes adebug
property. So now aswitch
case
should look likecase .unauthorized(let httpResponse, let data, let error, let debug, let description):
(#235)
3.7.1
3.7.0
Improvements
- Better performance and lower memory consumption by overloading the methods
find()
,pull()
andsync()
that now has aResult<AnyRandomAccessCollection<T>, Swift.Error>
as the result for the completion handler.
Bugfixes
- None
Deprecated
- None
Breaking Changes
- None