mirror of
https://github.com/modo-studio/SugarRecord.git
synced 2024-09-11 14:36:41 +03:00
only perform version checks on debug builds. refs #269
This commit is contained in:
parent
ce538e76bc
commit
c6e8090085
@ -96,7 +96,9 @@ public class CoreDataDefaultStorage: Storage {
|
||||
self.persistentStore = try cdInitializeStore(store, storeCoordinator: persistentStoreCoordinator, migrate: migrate)
|
||||
self.rootSavingContext = cdContext(withParent: .Coordinator(self.persistentStoreCoordinator), concurrencyType: .PrivateQueueConcurrencyType, inMemory: false)
|
||||
self.mainContext = cdContext(withParent: .Context(self.rootSavingContext), concurrencyType: .MainQueueConcurrencyType, inMemory: false)
|
||||
#if DEBUG
|
||||
versionController.check()
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -96,7 +96,9 @@ public class CoreDataiCloudStorage: Storage {
|
||||
self.rootSavingContext = cdContext(withParent: .Coordinator(self.persistentStoreCoordinator), concurrencyType: .PrivateQueueConcurrencyType, inMemory: false)
|
||||
self.mainContext = cdContext(withParent: .Context(self.rootSavingContext), concurrencyType: .MainQueueConcurrencyType, inMemory: false)
|
||||
self.observeiCloudChangesInCoordinator()
|
||||
#if DEBUG
|
||||
versionController.check()
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -16,7 +16,9 @@ public class RealmDefaultStorage: Storage {
|
||||
|
||||
internal init(configuration: Realm.Configuration? = nil, versionController: VersionController) {
|
||||
self.configuration = configuration
|
||||
#if DEBUG
|
||||
versionController.check()
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user