diff --git a/Package.swift b/Package.swift index efc607b..f9aa604 100644 --- a/Package.swift +++ b/Package.swift @@ -11,7 +11,7 @@ let package = Package( products: [ // The public SDK external event recognizers depend on. Ships the // `PHEventRecognizer` protocol + factory-symbol contract, nothing else. - .library(name: "phbarEvents", targets: ["phbarEvents"]), + .library(name: "phbarEvents", targets: ["phbarEvents"]) ], dependencies: [ .package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.0"), @@ -31,10 +31,13 @@ let package = Package( .product(name: "TOML", package: "swift-toml"), .target(name: "phbarEvents"), ], + exclude: [ + "Models/Event/README.md" + ], resources: [ .process("Models/Config/config.toml"), .process("Models/Theme/theme.toml"), - ], + ] ), .testTarget( name: "phbarTests", diff --git a/Sources/phbar/Events/PHEvent.swift b/Sources/phbar/Models/Event/PHEvent.swift similarity index 100% rename from Sources/phbar/Events/PHEvent.swift rename to Sources/phbar/Models/Event/PHEvent.swift diff --git a/Sources/phbar/Events/PHEventLoader.swift b/Sources/phbar/Models/Event/PHEventLoader.swift similarity index 100% rename from Sources/phbar/Events/PHEventLoader.swift rename to Sources/phbar/Models/Event/PHEventLoader.swift diff --git a/Sources/phbar/Events/PHEventManifest.swift b/Sources/phbar/Models/Event/PHEventManifest.swift similarity index 100% rename from Sources/phbar/Events/PHEventManifest.swift rename to Sources/phbar/Models/Event/PHEventManifest.swift diff --git a/Sources/phbar/Events/PHEventRegistry.swift b/Sources/phbar/Models/Event/PHEventRegistry.swift similarity index 100% rename from Sources/phbar/Events/PHEventRegistry.swift rename to Sources/phbar/Models/Event/PHEventRegistry.swift diff --git a/Sources/phbar/Events/PHEventSource.swift b/Sources/phbar/Models/Event/PHEventSource.swift similarity index 100% rename from Sources/phbar/Events/PHEventSource.swift rename to Sources/phbar/Models/Event/PHEventSource.swift diff --git a/Sources/phbar/Events/PHEventSubscription.swift b/Sources/phbar/Models/Event/PHEventSubscription.swift similarity index 100% rename from Sources/phbar/Events/PHEventSubscription.swift rename to Sources/phbar/Models/Event/PHEventSubscription.swift diff --git a/Sources/phbar/Events/PHExternalEventSource.swift b/Sources/phbar/Models/Event/PHExternalEventSource.swift similarity index 100% rename from Sources/phbar/Events/PHExternalEventSource.swift rename to Sources/phbar/Models/Event/PHExternalEventSource.swift diff --git a/Sources/phbar/Events/Events.md b/Sources/phbar/Models/Event/README.md similarity index 100% rename from Sources/phbar/Events/Events.md rename to Sources/phbar/Models/Event/README.md