From e6fad557e14adb90046e3f0a85121b475b8551d9 Mon Sep 17 00:00:00 2001 From: Tony Stone Date: Mon, 16 Sep 2019 07:29:40 -0500 Subject: [PATCH] Corrected availability of FileWriter and FileStrategyRotate so that they compile correctly on iOS. --- CHANGELOG.md | 5 +++++ Sources/TraceLog/Writers/FileStrategy+Rotate.swift | 1 + Sources/TraceLog/Writers/FileWriter.swift | 4 +++- TraceLog.podspec | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00a3c19a..51f7886e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Change Log All significant changes to this project will be documented in this file. +## [5.0.0-beta.4](https://github.com/tonystone/tracelog/tree/5.0.0-beta.4) + +#### Updated +- Corrected availability of FileWriter and FileStrategyRotate so that they compile correctly on iOS. + ## [5.0.0-beta.3](https://github.com/tonystone/tracelog/tree/5.0.0-beta.3) #### Added diff --git a/Sources/TraceLog/Writers/FileStrategy+Rotate.swift b/Sources/TraceLog/Writers/FileStrategy+Rotate.swift index 13ec9641..3bec4a54 100644 --- a/Sources/TraceLog/Writers/FileStrategy+Rotate.swift +++ b/Sources/TraceLog/Writers/FileStrategy+Rotate.swift @@ -20,6 +20,7 @@ import CoreFoundation import Foundation +@available(iOSApplicationExtension, unavailable) internal class FileStrategyRotate: FileStrategyManager { /// The current url in use or if none open yet, the one that will be used. diff --git a/Sources/TraceLog/Writers/FileWriter.swift b/Sources/TraceLog/Writers/FileWriter.swift index e9d0a490..152541e1 100644 --- a/Sources/TraceLog/Writers/FileWriter.swift +++ b/Sources/TraceLog/Writers/FileWriter.swift @@ -69,7 +69,7 @@ import Foundation /// /// - SeeAlso: `FileWriter.Strategy` for complete details of all strategies that can be used. /// -@available(iOSApplicationExtension, unavailable, message: "FielWriter can not be initialized in an Extension. Please initialize it in the main App.") +@available(iOSApplicationExtension, unavailable, message: "FileWriter can not be initialized in an Extension. Please initialize it in the main App.") public class FileWriter: OutputStreamWriter { // MARK: Initialization @@ -143,6 +143,7 @@ public class FileWriter: OutputStreamWriter { private var fileManager: FileStrategyManager } +@available(iOSApplicationExtension, unavailable) extension FileWriter { // MARK: Default Values @@ -274,6 +275,7 @@ extension FileWriter { /// Internal extension to allow use of a Set /// to ensure we only get one instance of each. /// +@available(iOSApplicationExtension, unavailable) extension FileWriter.Strategy.RotationOption: Hashable { /// :nodoc: diff --git a/TraceLog.podspec b/TraceLog.podspec index e48b72d0..5c5ddb82 100644 --- a/TraceLog.podspec +++ b/TraceLog.podspec @@ -9,7 +9,7 @@ Pod::Spec.new do |s| s.name = "TraceLog" - s.version = "5.0.0-beta.3" + s.version = "5.0.0-beta.4" s.summary = "Dead Simple: logging the way it's meant to be!" s.description = <<-DESC TraceLog is a configurable debug logging system. It is unique in that it's configured