fix(ios): make PersistenceController public for build access
Fixed build error: 'cannot find PersistenceController in scope' Changes: - Made PersistenceController class public - Made shared static property public - Made container property public - Made init method public This allows DailyNotificationPlugin to access PersistenceController across module boundaries. CocoaPods pod install was required to regenerate project files with updated access modifiers. Result: iOS plugin now builds successfully
This commit is contained in:
@@ -115,12 +115,12 @@ extension History: Identifiable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Persistence Controller
|
// MARK: - Persistence Controller
|
||||||
class PersistenceController {
|
public class PersistenceController {
|
||||||
static let shared = PersistenceController()
|
public static let shared = PersistenceController()
|
||||||
|
|
||||||
let container: NSPersistentContainer
|
public let container: NSPersistentContainer
|
||||||
|
|
||||||
init(inMemory: Bool = false) {
|
public init(inMemory: Bool = false) {
|
||||||
container = NSPersistentContainer(name: "DailyNotificationModel")
|
container = NSPersistentContainer(name: "DailyNotificationModel")
|
||||||
|
|
||||||
if inMemory {
|
if inMemory {
|
||||||
|
|||||||
Reference in New Issue
Block a user