Skip to content

Commit

Permalink
Corrected availability of FileWriter and FileStrategyRotate so that t…
Browse files Browse the repository at this point in the history
…hey compile correctly on iOS.
  • Loading branch information
tonystone committed Sep 16, 2019
1 parent 4c050a3 commit e6fad55
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions Sources/TraceLog/Writers/FileStrategy+Rotate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 3 additions & 1 deletion Sources/TraceLog/Writers/FileWriter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -143,6 +143,7 @@ public class FileWriter: OutputStreamWriter {
private var fileManager: FileStrategyManager
}

@available(iOSApplicationExtension, unavailable)
extension FileWriter {

// MARK: Default Values
Expand Down Expand Up @@ -274,6 +275,7 @@ extension FileWriter {
/// Internal extension to allow use of a Set<RotationOption>
/// to ensure we only get one instance of each.
///
@available(iOSApplicationExtension, unavailable)
extension FileWriter.Strategy.RotationOption: Hashable {

/// :nodoc:
Expand Down
2 changes: 1 addition & 1 deletion TraceLog.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e6fad55

Please sign in to comment.