mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-29 22:01:56 +02:00
fixed compile error on release mode
This commit is contained in:
@@ -34,6 +34,11 @@ import CoreData
|
|||||||
*/
|
*/
|
||||||
public final class DataStack: Equatable {
|
public final class DataStack: Equatable {
|
||||||
|
|
||||||
|
/**
|
||||||
|
The resolved application name, used by the `DataStack` as the default Xcode model name (.xcdatamodel filename) if not explicitly provided.
|
||||||
|
*/
|
||||||
|
public static let applicationName = (Bundle.main.object(forInfoDictionaryKey: "CFBundleName") as? String) ?? "CoreData"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Convenience initializer for `DataStack` that creates a `SchemaHistory` from the model with the specified `modelName` in the specified `bundle`.
|
Convenience initializer for `DataStack` that creates a `SchemaHistory` from the model with the specified `modelName` in the specified `bundle`.
|
||||||
|
|
||||||
@@ -477,8 +482,6 @@ public final class DataStack: Equatable {
|
|||||||
|
|
||||||
internal static var defaultConfigurationName = "PF_DEFAULT_CONFIGURATION_NAME"
|
internal static var defaultConfigurationName = "PF_DEFAULT_CONFIGURATION_NAME"
|
||||||
|
|
||||||
internal static let applicationName = (Bundle.main.object(forInfoDictionaryKey: "CFBundleName") as? String) ?? "CoreData"
|
|
||||||
|
|
||||||
internal let coordinator: NSPersistentStoreCoordinator
|
internal let coordinator: NSPersistentStoreCoordinator
|
||||||
internal let rootSavingContext: NSManagedObjectContext
|
internal let rootSavingContext: NSManagedObjectContext
|
||||||
internal let mainContext: NSManagedObjectContext
|
internal let mainContext: NSManagedObjectContext
|
||||||
|
|||||||
Reference in New Issue
Block a user