Skip to content

Commit

Permalink
fixing issue with build
Browse files Browse the repository at this point in the history
  • Loading branch information
leogdion committed Oct 22, 2024
1 parent 7d3c745 commit a3698a7
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 81 deletions.
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
6 changes: 6 additions & 0 deletions .github/workflows/FelinePine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ jobs:
watchOSVersion: "10.2"
watchName: "Apple Watch Series 9 (45mm)"
iPhoneName: "iPhone 15 Pro"
- runs-on: macos-15
xcode: "/Applications/Xcode_16.1.app"
iOSVersion: "18.1"
watchOSVersion: "11.1"
watchName: "Apple Watch Series 10 (46mm)"
iPhoneName: "iPhone 16 Pro"
steps:
- uses: actions/checkout@v3
- name: Cache swift package modules
Expand Down
13 changes: 2 additions & 11 deletions Sources/FelinePine/Feline.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,9 @@

import Foundation

#if swift(<6.0)
#if canImport(os)
import os

#endif
#else
#if canImport(os)
public import os
#if canImport(os)

#endif
#endif
public import os

/// Defines the ``LoggingSystem`` to use as well as the category.
public protocol Feline {
Expand All @@ -52,7 +44,6 @@ public protocol Feline {
}
}

#if canImport(os)
extension Feline where Self: Pine {
/// Use the ``loggingCategory`` to define the shared logger for type.
public static var logger: Logger {
Expand Down
14 changes: 2 additions & 12 deletions Sources/FelinePine/Logger+LoggerCategory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,9 @@
// OTHER DEALINGS IN THE SOFTWARE.
//

#if swift(<6.0)
#if canImport(os)
import os

#endif
#else
#if canImport(os)
public import os

#endif
#endif

#if canImport(os)
public import os

extension Logger {
internal init<Category: RawRepresentable>(
subsystem: String,
Expand Down
28 changes: 0 additions & 28 deletions Sources/FelinePine/Logger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,34 +27,6 @@
// OTHER DEALINGS IN THE SOFTWARE.
//

//
// Logger.swift
// FelinePine
//
// Created by Leo Dion.
// Copyright © 2024 BrightDigit.
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the “Software”), to deal in the Software without
// restriction, including without limitation the rights to use,
// copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following
// conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.
//
#if canImport(os)
public import os
public typealias Logger = os.Logger
Expand Down
12 changes: 2 additions & 10 deletions Sources/FelinePine/LoggingSystem+LoggingSystemRepository.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,8 @@

import Foundation

#if swift(<6.0)
#if canImport(os)
import os

#endif
#else
#if canImport(os)
public import os

#endif
#if canImport(os)
public import os
#endif

// swiftlint:disable strict_fileprivate
Expand Down
12 changes: 2 additions & 10 deletions Sources/FelinePine/LoggingSystem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,8 @@

import Foundation

#if swift(<6.0)
#if canImport(os)
import os

#endif
#else
#if canImport(os)
public import os

#endif
#if canImport(os)
public import os
#endif

/// Defines the logging categories for your application.
Expand Down
12 changes: 2 additions & 10 deletions Sources/FelinePine/Pine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,8 @@

import Foundation

#if swift(<6.0)
#if canImport(os)
import os

#endif
#else
#if canImport(os)
public import os

#endif
#if canImport(os)
public import os
#endif

#if canImport(os)
Expand Down

0 comments on commit a3698a7

Please sign in to comment.