Skip to content

Commit e6fad55

Browse files
committed
Corrected availability of FileWriter and FileStrategyRotate so that they compile correctly on iOS.
1 parent 4c050a3 commit e6fad55

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Change Log
22
All significant changes to this project will be documented in this file.
33

4+
## [5.0.0-beta.4](https://github.com/tonystone/tracelog/tree/5.0.0-beta.4)
5+
6+
#### Updated
7+
- Corrected availability of FileWriter and FileStrategyRotate so that they compile correctly on iOS.
8+
49
## [5.0.0-beta.3](https://github.com/tonystone/tracelog/tree/5.0.0-beta.3)
510

611
#### Added

Sources/TraceLog/Writers/FileStrategy+Rotate.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import CoreFoundation
2121
import Foundation
2222

23+
@available(iOSApplicationExtension, unavailable)
2324
internal class FileStrategyRotate: FileStrategyManager {
2425

2526
/// The current url in use or if none open yet, the one that will be used.

Sources/TraceLog/Writers/FileWriter.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ import Foundation
6969
///
7070
/// - SeeAlso: `FileWriter.Strategy` for complete details of all strategies that can be used.
7171
///
72-
@available(iOSApplicationExtension, unavailable, message: "FielWriter can not be initialized in an Extension. Please initialize it in the main App.")
72+
@available(iOSApplicationExtension, unavailable, message: "FileWriter can not be initialized in an Extension. Please initialize it in the main App.")
7373
public class FileWriter: OutputStreamWriter {
7474

7575
// MARK: Initialization
@@ -143,6 +143,7 @@ public class FileWriter: OutputStreamWriter {
143143
private var fileManager: FileStrategyManager
144144
}
145145

146+
@available(iOSApplicationExtension, unavailable)
146147
extension FileWriter {
147148

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

279281
/// :nodoc:

TraceLog.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
Pod::Spec.new do |s|
1111
s.name = "TraceLog"
12-
s.version = "5.0.0-beta.3"
12+
s.version = "5.0.0-beta.4"
1313
s.summary = "Dead Simple: logging the way it's meant to be!"
1414
s.description = <<-DESC
1515
TraceLog is a configurable debug logging system. It is unique in that it's configured

0 commit comments

Comments
 (0)