From 117e0f831e32cee7c86623e92047ca8b10b9b432 Mon Sep 17 00:00:00 2001 From: kirillzyusko Date: Fri, 18 Oct 2024 12:41:38 +0200 Subject: [PATCH] fix: remove `retroactive` to fix compilation on old XCode --- AppLogsPod/AppLogs.swift | 2 +- ios/OSLogStoreHelper.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AppLogsPod/AppLogs.swift b/AppLogsPod/AppLogs.swift index 5354d49..99c3284 100644 --- a/AppLogsPod/AppLogs.swift +++ b/AppLogsPod/AppLogs.swift @@ -16,7 +16,7 @@ extension DateFormatter { } @available(iOS 15.0, *) -extension OSLogEntryLog.Level: @retroactive CustomStringConvertible { +extension OSLogEntryLog.Level: CustomStringConvertible { public var description: String { switch self { case .undefined: diff --git a/ios/OSLogStoreHelper.swift b/ios/OSLogStoreHelper.swift index 80cfa9b..90ed479 100644 --- a/ios/OSLogStoreHelper.swift +++ b/ios/OSLogStoreHelper.swift @@ -16,7 +16,7 @@ extension DateFormatter { } @available(iOS 15.0, *) -extension OSLogEntryLog.Level: @retroactive CustomStringConvertible { +extension OSLogEntryLog.Level: CustomStringConvertible { public var description: String { switch self { case .undefined: @@ -44,7 +44,7 @@ public class OSLogStoreHelper: NSObject { private var logStore: OSLogStore? private static var onNewLogs: (([NSDictionary]) -> Void)? = nil private let formatter = DateFormatter().apply { - $0.timeZone = TimeZone(abbreviation: "UTC"); + $0.timeZone = TimeZone(abbreviation: "UTC") $0.dateFormat = "yyyy-MM-dd'T'HH:mm:ss'Z'" }