revert recent swizzling update. sorry about that

This commit is contained in:
John Estropia
2017-02-10 20:33:07 +09:00
parent 19fea6953a
commit 03973790a8
7 changed files with 232 additions and 222 deletions

View File

@@ -58,8 +58,9 @@ public final class DataStack: Equatable {
- parameter migrationChain: the `MigrationChain` that indicates the sequence of model versions to be used as the order for progressive migrations. If not specified, will default to a non-migrating data stack.
*/
public required init(model: NSManagedObjectModel, migrationChain: MigrationChain = nil) {
_ = DataStack.isGloballyInitialized
// TODO: test before release (rolled back)
// _ = DataStack.isGloballyInitialized
CoreStore.assert(
migrationChain.valid,
@@ -501,11 +502,12 @@ public final class DataStack: Equatable {
// MARK: Private
private static let isGloballyInitialized: Bool = {
NSManagedObject.cs_swizzleMethodsForLogging()
return true
}()
// TODO: test before release (rolled back)
// private static let isGloballyInitialized: Bool = {
//
// NSManagedObject.cs_swizzleMethodsForLogging()
// return true
// }()
private var configurationStoreMapping = [String: NSPersistentStore]()
private var entityConfigurationsMapping = [String: Set<String>]()