Skip to content

Commit 5c5a931

Browse files
committed
Merge branch 'release/4.0.0'
2 parents 56224d3 + db39382 commit 5c5a931

18 files changed

+150
-107
lines changed

FFCoreData/FFCoreData.xcodeproj/project.pbxproj

Lines changed: 128 additions & 91 deletions
Large diffs are not rendered by default.

FFCoreData/FFCoreData.xcodeproj/xcshareddata/xcschemes/FFCoreData.xcscheme

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0900"
3+
LastUpgradeVersion = "0930"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,7 +26,6 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29-
language = ""
3029
shouldUseLaunchSchemeArgsEnv = "YES">
3130
<Testables>
3231
<TestableReference
@@ -56,7 +55,6 @@
5655
buildConfiguration = "Debug"
5756
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
5857
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
59-
language = ""
6058
launchStyle = "0"
6159
useCustomWorkingDirectory = "NO"
6260
ignoresPersistentStateOnLaunch = "NO"

FFCoreData/FFCoreData.xcworkspace/contents.xcworkspacedata

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

FFCoreData/FFCoreData/CoreDataManager.swift renamed to FFCoreData/FFCoreData/CoreDataManager/CoreDataManager.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ extension CoreDataStack {
184184
public let storePath: URL
185185
public private(set) lazy var storeURL: URL = self.storePath.appendingPathComponent(self.sqliteStoreName)
186186

187-
#if os(OSX)
187+
#if os(macOS)
188188
public let applicationSupportSubfolderName: String
189189
#endif
190190

@@ -199,7 +199,7 @@ extension CoreDataStack {
199199
}
200200
return dataFolderURL
201201
}()
202-
#elseif os(OSX)
202+
#elseif os(macOS)
203203
public static func appDataDirectoryURL(withSubfolderName subfolderName: String) -> URL {
204204
let fileManager = FileManager.default
205205
let url = fileManager.urls(for: .applicationSupportDirectory, in: .userDomainMask).last!
@@ -231,7 +231,7 @@ extension CoreDataStack {
231231

232232
#if os(iOS) || os(watchOS) || os(tvOS)
233233
self.storePath = storePath ?? CoreDataStack.Configuration.appDataDirectoryURL
234-
#elseif os(OSX)
234+
#elseif os(macOS)
235235
let subfolderName = appSupportFolderName ?? bundle.bundleIdentifier ?? targetName(from: bundle)
236236
self.applicationSupportSubfolderName = subfolderName
237237
self.storePath = storePath ?? CoreDataStack.Configuration.appDataDirectoryURL(withSubfolderName: subfolderName)
@@ -242,7 +242,7 @@ extension CoreDataStack {
242242
public init(bundle: Bundle, storePath: URL? = nil, modelName: String? = nil, sqliteName: String? = nil, removeNamespaces: Bool = true) {
243243
self.init(bundle: bundle, modelName: modelName, sqliteName: sqliteName, storePath: storePath, appSupportFolderName: nil, removeNamespaces: removeNamespaces)
244244
}
245-
#elseif os(OSX)
245+
#elseif os(macOS)
246246
public init(bundle: Bundle, applicationSupportSubfolder: String? = nil, storePath: URL? = nil, modelName: String? = nil, sqliteName: String? = nil, removeNamespaces: Bool = true) {
247247
self.init(bundle: bundle, modelName: modelName, sqliteName: sqliteName, storePath: storePath, appSupportFolderName: applicationSupportSubfolder, removeNamespaces: removeNamespaces)
248248
}

FFCoreData/FFCoreData/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>3.1.3</string>
18+
<string>4.0.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

FFCoreData/FFCoreData/MOCEntitiesObserver.swift renamed to FFCoreData/FFCoreData/ManagedObjectContext Observer/MOCEntitiesObserver.swift

File renamed without changes.

FFCoreData/FFCoreData/MOCObjectsObserver.swift renamed to FFCoreData/FFCoreData/ManagedObjectContext Observer/MOCObjectsObserver.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import class CoreData.NSManagedObjectContext
2626
public final class MOCObjectsObserver: MOCObserver {
2727
public var objectIDs: [NSManagedObjectID] {
2828
didSet {
29-
precondition(objectIDs.filter { $0.isTemporaryID }.isEmpty,
29+
precondition(!objectIDs.contains { $0.isTemporaryID },
3030
"FFCoreData: ERROR: Temporary NSManagedObjectIDs set on MOCObjectsObserver! Be sure to only use non-temporary IDs for MOCObservers!")
3131
}
3232
}

FFCoreData/FFCoreData/ManagedObjectContextObserver.swift renamed to FFCoreData/FFCoreData/ManagedObjectContext Observer/ManagedObjectContextObserver.swift

File renamed without changes.

FFCoreData/FFCoreData/FetchedResulsControllerDelegate.swift renamed to FFCoreData/FFCoreData/NSFetchedResultsController/FetchedResulsControllerDelegate.swift

File renamed without changes.

0 commit comments

Comments
 (0)