Skip to content

Commit

Permalink
Update to Swift 6
Browse files Browse the repository at this point in the history
  • Loading branch information
marekpridal committed Nov 20, 2024
1 parent 69c61dc commit c00c7f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.2
// swift-tools-version:6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand Down
6 changes: 3 additions & 3 deletions Sources/LogKit/LogKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import StoreKit

@available(OSX 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
public enum Log {
public enum Category: String, CaseIterable {
public enum Category: String, CaseIterable, Sendable {
case `deinit`
case function
case networking
Expand All @@ -23,8 +23,8 @@ public enum Log {
case dependencyInjection
}

public static var subsystem = Bundle.main.bundleIdentifier!
public static var enabledLogging: [Category] = Category.allCases
nonisolated(unsafe) public static var subsystem = Bundle.main.bundleIdentifier!
nonisolated(unsafe) public static var enabledLogging: [Category] = Category.allCases

public static func `deinit`(of object: AnyObject) {
guard enabledLogging.contains(.deinit) else { return }
Expand Down

0 comments on commit c00c7f9

Please sign in to comment.