fix(ios): resolve compilation errors and enable successful build
Fixed critical compilation errors preventing iOS plugin build: - Updated logger API calls from logger.debug(TAG, msg) to logger.log(.debug, msg) across all iOS plugin files to match DailyNotificationLogger interface - Fixed async/await concurrency in makeConditionalRequest using semaphore pattern - Fixed NotificationContent immutability by creating new instances instead of mutation - Changed private access control to internal for extension-accessible methods - Added iOS 15.0+ availability checks for interruptionLevel property - Fixed static member references using Self.MEMBER_NAME syntax - Added missing .scheduling case to exhaustive switch statement - Fixed variable initialization in retry state closures Added DailyNotificationStorage.swift implementation matching Android pattern. Updated build scripts with improved error reporting and full log visibility. iOS plugin now compiles successfully. All build errors resolved.
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import Capacitor
|
||||
import CoreData
|
||||
|
||||
/**
|
||||
@@ -108,7 +109,7 @@ extension DailyNotificationPlugin {
|
||||
|
||||
// MARK: - Private Callback Implementation
|
||||
|
||||
private func fireCallbacks(eventType: String, payload: [String: Any]) async throws {
|
||||
func fireCallbacks(eventType: String, payload: [String: Any]) async throws {
|
||||
// Get registered callbacks from Core Data
|
||||
let context = persistenceController.container.viewContext
|
||||
let request: NSFetchRequest<Callback> = Callback.fetchRequest()
|
||||
@@ -246,7 +247,7 @@ extension DailyNotificationPlugin {
|
||||
}
|
||||
}
|
||||
|
||||
private func getHealthStatus() async throws -> [String: Any] {
|
||||
func getHealthStatus() async throws -> [String: Any] {
|
||||
let context = persistenceController.container.viewContext
|
||||
|
||||
// Get next runs (simplified)
|
||||
|
||||
Reference in New Issue
Block a user