Skip to content

Commit

Permalink
Update Package.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
rismay-luassat committed Jun 25, 2024
1 parent 40d4585 commit 7dd44d4
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@ extension SwiftSetting {
])
}

// MARK: - Package Service

struct PackageService {
static let shared = PackageService()

var swiftSettings: [SwiftSetting]

init() {
swiftSettings = ProcessInfo.useLocalDeps ? [SwiftSetting.profile] : []
}
}


// MARK: - Package Declaration

let package = Package(
Expand All @@ -41,6 +54,6 @@ let package = Package(
.target(
name: "WrkstrmLog",
dependencies: [.product(name: "Logging", package: "swift-log")],
swiftSettings: ProcessInfo.useLocalDeps ? [.profile] : []),
swiftSettings: PackageService.shared.swiftSettings),
.testTarget(name: "WrkstrmLogTests", dependencies: ["WrkstrmLog"]),
])

0 comments on commit 7dd44d4

Please sign in to comment.