minimum deployment version bumped to iOS 10, macOS 10.12, tvOS 10, watchOS 3. Deprecated iCloud Storage

This commit is contained in:
John Estropia
2018-12-05 17:31:16 +09:00
parent 95c1ce52cc
commit d344b9d878
9 changed files with 32 additions and 27 deletions

View File

@@ -324,6 +324,7 @@ extension GroupBy: CustomDebugStringConvertible, CoreStoreDebugStringConvertible
// MARK: - ICloudStore
@available(*, deprecated, message: "Please see the release notes and Core Data documentation.")
extension ICloudStore: CustomDebugStringConvertible, CoreStoreDebugStringConvertible {
// MARK: CustomDebugStringConvertible

View File

@@ -748,12 +748,11 @@ public extension DataStack {
// Lightweight migration failed somehow. Proceed using InferedMappingModel below
}
}
let temporaryDirectoryURL = URL(fileURLWithPath: NSTemporaryDirectory(), isDirectory: true)
let fileManager = FileManager.default
let temporaryDirectoryURL = fileManager.temporaryDirectory
.appendingPathComponent(Bundle.main.bundleIdentifier ?? "com.CoreStore.DataStack")
.appendingPathComponent(ProcessInfo().globallyUniqueString)
let fileManager = FileManager.default
try! fileManager.createDirectory(
at: temporaryDirectoryURL,
withIntermediateDirectories: true,

View File

@@ -34,6 +34,7 @@ import CoreData
/**
A storage interface backed by an SQLite database managed by iCloud.
*/
@available(*, deprecated, message: "Please see the release notes and Core Data documentation.")
public final class ICloudStore: CloudStorage {
/**

View File

@@ -37,6 +37,7 @@ import Foundation
- the `ICloudStore` was added to a `DataStack`
- the `ICloudStore` and the `DataStack` are still persisted in memory
*/
@available(*, deprecated, message: "Please see the release notes and Core Data documentation.")
public protocol ICloudStoreObserver: class {
/**
@@ -104,6 +105,7 @@ public protocol ICloudStoreObserver: class {
func iCloudStoreDidRemoveContent(storage: ICloudStore, dataStack: DataStack)
}
@available(*, deprecated, message: "Please see the release notes and Core Data documentation.")
public extension ICloudStoreObserver {
public func iCloudStoreWillFinishUbiquitousStoreInitialImport(storage: ICloudStore, dataStack: DataStack) {}