diff --git a/Sources/Site/Music/Atlas.swift b/Sources/Site/Music/Atlas.swift index 47153e60..d2ee87bf 100644 --- a/Sources/Site/Music/Atlas.swift +++ b/Sources/Site/Music/Atlas.swift @@ -16,9 +16,10 @@ import os #endif extension Logger { - nonisolated(unsafe) static let atlas = Logger(category: "atlas") #if swift(>=6.0) - #warning("nonisolated(unsafe) unneeded.") + static let atlas = Logger(category: "atlas") + #else + nonisolated(unsafe) static let atlas = Logger(category: "atlas") #endif } diff --git a/Sources/Site/Music/AtlasCache.swift b/Sources/Site/Music/AtlasCache.swift index a535db12..6df21535 100644 --- a/Sources/Site/Music/AtlasCache.swift +++ b/Sources/Site/Music/AtlasCache.swift @@ -10,9 +10,10 @@ import Foundation import os extension Logger { - nonisolated(unsafe) static let atlasCache = Logger(category: "atlasCache") #if swift(>=6.0) - #warning("nonisolated(unsafe) unneeded.") + static let atlasCache = Logger(category: "atlasCache") + #else + nonisolated(unsafe) static let atlasCache = Logger(category: "atlasCache") #endif } diff --git a/Sources/Site/Music/Lookup.swift b/Sources/Site/Music/Lookup.swift index b2634011..56f6a250 100644 --- a/Sources/Site/Music/Lookup.swift +++ b/Sources/Site/Music/Lookup.swift @@ -9,9 +9,10 @@ import Foundation import os extension Logger { - nonisolated(unsafe) static let lookup = Logger(category: "lookup") #if swift(>=6.0) - #warning("nonisolated(unsafe) unneeded.") + static let lookup = Logger(category: "lookup") + #else + nonisolated(unsafe) static let lookup = Logger(category: "lookup") #endif } diff --git a/Sources/Site/Music/Music+URL.swift b/Sources/Site/Music/Music+URL.swift index 6857735a..26f77348 100644 --- a/Sources/Site/Music/Music+URL.swift +++ b/Sources/Site/Music/Music+URL.swift @@ -9,10 +9,12 @@ import Foundation import os extension Logger { - nonisolated(unsafe) static let url = Logger(category: "url") - nonisolated(unsafe) static let music = Logger(category: "music") #if swift(>=6.0) - #warning("nonisolated(unsafe) unneeded.") + static let url = Logger(category: "url") + static let music = Logger(category: "music") + #else + nonisolated(unsafe) static let url = Logger(category: "url") + nonisolated(unsafe) static let music = Logger(category: "music") #endif } diff --git a/Sources/Site/Music/NSUserActivity+ArchiveCategory.swift b/Sources/Site/Music/NSUserActivity+ArchiveCategory.swift index eb903541..e74d627b 100644 --- a/Sources/Site/Music/NSUserActivity+ArchiveCategory.swift +++ b/Sources/Site/Music/NSUserActivity+ArchiveCategory.swift @@ -10,10 +10,14 @@ import Intents import os extension Logger { - nonisolated(unsafe) static let updateCategoryActivity = Logger(category: "updateCategoryActivity") - nonisolated(unsafe) static let decodeCategoryActivity = Logger(category: "decodeCategoryActivity") #if swift(>=6.0) - #warning("nonisolated(unsafe) unneeded.") + static let updateCategoryActivity = Logger(category: "updateCategoryActivity") + static let decodeCategoryActivity = Logger(category: "decodeCategoryActivity") + #else + nonisolated(unsafe) static let updateCategoryActivity = Logger( + category: "updateCategoryActivity") + nonisolated(unsafe) static let decodeCategoryActivity = Logger( + category: "decodeCategoryActivity") #endif } diff --git a/Sources/Site/Music/NSUserActivity+ArchivePath.swift b/Sources/Site/Music/NSUserActivity+ArchivePath.swift index d32977df..4e0edd84 100644 --- a/Sources/Site/Music/NSUserActivity+ArchivePath.swift +++ b/Sources/Site/Music/NSUserActivity+ArchivePath.swift @@ -9,10 +9,12 @@ import Foundation import os extension Logger { - nonisolated(unsafe) static let updateActivity = Logger(category: "updateActivity") - nonisolated(unsafe) static let decodeActivity = Logger(category: "decodeActivity") #if swift(>=6.0) - #warning("nonisolated(unsafe) unneeded.") + static let updateActivity = Logger(category: "updateActivity") + static let decodeActivity = Logger(category: "decodeActivity") + #else + nonisolated(unsafe) static let updateActivity = Logger(category: "updateActivity") + nonisolated(unsafe) static let decodeActivity = Logger(category: "decodeActivity") #endif } diff --git a/Sources/Site/Music/SiteModel.swift b/Sources/Site/Music/SiteModel.swift index 23508ef7..e86802d3 100644 --- a/Sources/Site/Music/SiteModel.swift +++ b/Sources/Site/Music/SiteModel.swift @@ -9,9 +9,10 @@ import Foundation import os extension Logger { - nonisolated(unsafe) static let vaultLoader = Logger(category: "vaultLoader") #if swift(>=6.0) - #warning("nonisolated(unsafe) unneeded.") + static let vaultLoader = Logger(category: "vaultLoader") + #else + nonisolated(unsafe) static let vaultLoader = Logger(category: "vaultLoader") #endif } diff --git a/Sources/Site/Music/UI/ArchiveCategoryShareActivityModifier.swift b/Sources/Site/Music/UI/ArchiveCategoryShareActivityModifier.swift index 2a416822..e9344211 100644 --- a/Sources/Site/Music/UI/ArchiveCategoryShareActivityModifier.swift +++ b/Sources/Site/Music/UI/ArchiveCategoryShareActivityModifier.swift @@ -9,9 +9,10 @@ import SwiftUI import os extension Logger { - nonisolated(unsafe) static let sharing = Logger(category: "sharing") #if swift(>=6.0) - #warning("nonisolated(unsafe) unneeded.") + static let sharing = Logger(category: "sharing") + #else + nonisolated(unsafe) static let sharing = Logger(category: "sharing") #endif } diff --git a/Sources/Site/Music/UI/ArchiveNavigation.swift b/Sources/Site/Music/UI/ArchiveNavigation.swift index 7d3e274c..5669569f 100644 --- a/Sources/Site/Music/UI/ArchiveNavigation.swift +++ b/Sources/Site/Music/UI/ArchiveNavigation.swift @@ -9,9 +9,10 @@ import Foundation import os extension Logger { - nonisolated(unsafe) static let archive = Logger(category: "archive") #if swift(>=6.0) - #warning("nonisolated(unsafe) unneeded.") + static let archive = Logger(category: "archive") + #else + nonisolated(unsafe) static let archive = Logger(category: "archive") #endif } diff --git a/Sources/Site/Music/UI/ArchiveStateView.swift b/Sources/Site/Music/UI/ArchiveStateView.swift index 0b4c9676..f6bbc4b5 100644 --- a/Sources/Site/Music/UI/ArchiveStateView.swift +++ b/Sources/Site/Music/UI/ArchiveStateView.swift @@ -9,9 +9,10 @@ import SwiftUI import os extension Logger { - nonisolated(unsafe) static let link = Logger(category: "link") #if swift(>=6.0) - #warning("nonisolated(unsafe) unneeded.") + static let link = Logger(category: "link") + #else + nonisolated(unsafe) static let link = Logger(category: "link") #endif } diff --git a/Sources/Site/Music/UI/NotificationModifier.swift b/Sources/Site/Music/UI/NotificationModifier.swift index 7a28bd72..f74e3488 100644 --- a/Sources/Site/Music/UI/NotificationModifier.swift +++ b/Sources/Site/Music/UI/NotificationModifier.swift @@ -9,9 +9,10 @@ import SwiftUI import os extension Logger { - nonisolated(unsafe) static let notification = Logger(category: "notification") #if swift(>=6.0) - #warning("nonisolated(unsafe) unneeded.") + static let notification = Logger(category: "notification") + #else + nonisolated(unsafe) static let notification = Logger(category: "notification") #endif } diff --git a/Sources/Site/Music/UI/SiteView.swift b/Sources/Site/Music/UI/SiteView.swift index 80173b82..bd1003f8 100644 --- a/Sources/Site/Music/UI/SiteView.swift +++ b/Sources/Site/Music/UI/SiteView.swift @@ -9,9 +9,10 @@ import SwiftUI import os extension Logger { - nonisolated(unsafe) static let vaultLoad = Logger(category: "vaultLoad") #if swift(>=6.0) - #warning("nonisolated(unsafe) unneeded.") + static let vaultLoad = Logger(category: "vaultLoad") + #else + nonisolated(unsafe) static let vaultLoad = Logger(category: "vaultLoad") #endif } diff --git a/Sources/Site/Music/Vault+URL.swift b/Sources/Site/Music/Vault+URL.swift index 1f198e51..8e5f5a8b 100644 --- a/Sources/Site/Music/Vault+URL.swift +++ b/Sources/Site/Music/Vault+URL.swift @@ -9,9 +9,10 @@ import Foundation import os extension Logger { - nonisolated(unsafe) static let vault = Logger(category: "vault") #if swift(>=6.0) - #warning("nonisolated(unsafe) unneeded.") + static let vault = Logger(category: "vault") + #else + nonisolated(unsafe) static let vault = Logger(category: "vault") #endif } diff --git a/Sources/Site/Music/VaultModel.swift b/Sources/Site/Music/VaultModel.swift index 0e132abf..8a61f052 100644 --- a/Sources/Site/Music/VaultModel.swift +++ b/Sources/Site/Music/VaultModel.swift @@ -16,9 +16,10 @@ import os #endif extension Logger { - nonisolated(unsafe) static let vaultModel = Logger(category: "vaultModel") #if swift(>=6.0) - #warning("nonisolated(unsafe) unneeded.") + static let vaultModel = Logger(category: "vaultModel") + #else + nonisolated(unsafe) static let vaultModel = Logger(category: "vaultModel") #endif } diff --git a/Sources/Site/Utility/Data+JSON.swift b/Sources/Site/Utility/Data+JSON.swift index de813c03..4bb1dc2f 100644 --- a/Sources/Site/Utility/Data+JSON.swift +++ b/Sources/Site/Utility/Data+JSON.swift @@ -9,9 +9,10 @@ import Foundation import os extension Logger { - nonisolated(unsafe) static let json = Logger(category: "json") #if swift(>=6.0) - #warning("nonisolated(unsafe) unneeded.") + static let json = Logger(category: "json") + #else + nonisolated(unsafe) static let json = Logger(category: "json") #endif } diff --git a/Sources/Site/Utility/LocationManager.swift b/Sources/Site/Utility/LocationManager.swift index 0f442355..aafa7fb0 100644 --- a/Sources/Site/Utility/LocationManager.swift +++ b/Sources/Site/Utility/LocationManager.swift @@ -9,9 +9,10 @@ import CoreLocation import os extension Logger { - nonisolated(unsafe) static let location = Logger(category: "location") #if swift(>=6.0) - #warning("nonisolated(unsafe) unneeded.") + static let location = Logger(category: "location") + #else + nonisolated(unsafe) static let location = Logger(category: "location") #endif }