Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import PackageDescription
let package = Package(
name: "Occurrence",
platforms: [
.macOS(.v13),
.macCatalyst(.v16),
.iOS(.v16),
.tvOS(.v16),
.watchOS(.v9),
.visionOS(.v1), // .v2 ~ iOS 18
.macOS(.v15),
.macCatalyst(.v18),
.iOS(.v18),
.tvOS(.v18),
.watchOS(.v11),
.visionOS(.v2),
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
Expand Down
2 changes: 1 addition & 1 deletion Sources/Occurrence/CoreData/CoreDataLogProvider.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Foundation
import Logging
import Mutex
#if canImport(CoreData)
@preconcurrency import CoreData
import Synchronization

final class CoreDataLogProvider: LogProvider {

Expand Down
2 changes: 1 addition & 1 deletion Sources/Occurrence/CoreData/LogModel.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation
import Mutex
#if canImport(CoreData)
import CoreData
import Synchronization

enum LogModel {
case version_1_0_0
Expand Down
4 changes: 4 additions & 0 deletions Sources/Occurrence/Occurrence.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import Foundation
import Logging
#if canImport(Synchronization)
import Synchronization
#else
import Mutex
#endif

public struct Occurrence: LogHandler {

Expand Down
4 changes: 4 additions & 0 deletions Sources/Occurrence/Streamer/OccurrenceLogStreamer.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import Foundation
import Logging
#if canImport(Synchronization)
import Synchronization
#else
import Mutex
#endif

final class OccurrenceLogStreamer: LogStreamer {

Expand Down
2 changes: 2 additions & 0 deletions Sources/Occurrence/SwiftUI/LogView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public struct LogView: View {
.toolbar {
ToolbarItemGroup(placement: .primaryAction) {
if allowManagement {
#if !os(watchOS)
Menu {
Text("Subsystem")

Expand Down Expand Up @@ -131,6 +132,7 @@ public struct LogView: View {
} label: {
Label("Trash", systemImage: "trash")
}
#endif
}

Toggle(isOn: $live) {
Expand Down