Skip to content

Commit 2528f78

Browse files
committed
Updated swift version declaration for cocoapods, conditionally skipping NSLoggerAppender for whatchOS
1 parent 4bfb0d9 commit 2528f78

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.swift-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

Log4swift.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Pod::Spec.new do |s|
2222
s.ios.deployment_target = "8.0"
2323
s.watchos.deployment_target = "2.0"
2424
s.osx.deployment_target = "10.10"
25+
s.swift_versions = ['4.0', '4.1', '4.2', '5.0']
2526

2627
s.source = { :git => "https://github.com/jduquennoy/Log4swift.git", :tag => "v1.1.0" }
2728

Log4swift/Appenders/AppendersRegistry.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ public struct AppendersRegistry {
1616
var appenders = [
1717
StdOutAppender.self,
1818
FileAppender.self,
19-
NSLoggerAppender.self,
2019
NSLogAppender.self,
2120
ASLAppender.self,
2221
SystemAppender.self
2322
]
23+
#if !os(watchOS)
24+
appenders.append(NSLoggerAppender.self)
25+
#endif
2426
if #available(iOS 10.0, macOS 10.12, watchOS 3, *) {
2527
appenders.append(AppleUnifiedLoggerAppender.self)
2628
}

0 commit comments

Comments
 (0)