diff --git a/Sources/PassKit/FakeSendable.swift b/Sources/PassKit/FakeSendable.swift index 2d25bae..2417d8f 100644 --- a/Sources/PassKit/FakeSendable.swift +++ b/Sources/PassKit/FakeSendable.swift @@ -1,31 +1,3 @@ -/// Copyright 2020 Gargoyle Software, LLC -/// -/// Permission is hereby granted, free of charge, to any person obtaining a copy -/// of this software and associated documentation files (the "Software"), to deal -/// in the Software without restriction, including without limitation the rights -/// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -/// copies of the Software, and to permit persons to whom the Software is -/// furnished to do so, subject to the following conditions: -/// -/// The above copyright notice and this permission notice shall be included in -/// all copies or substantial portions of the Software. -/// -/// Notwithstanding the foregoing, you may not use, copy, modify, merge, publish, -/// distribute, sublicense, create a derivative work, and/or sell copies of the -/// Software in any work that is designed, intended, or marketed for pedagogical or -/// instructional purposes related to programming, coding, application development, -/// or information technology. Permission for such use, copying, modification, -/// merger, publication, distribution, sublicensing, creation of derivative works, -/// or sale is expressly withheld. -/// -/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -/// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -/// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -/// THE SOFTWARE. - // This is a temporary fix until RoutesBuilder and EmptyPayload are not Sendable package struct FakeSendable: @unchecked Sendable { package let value: T diff --git a/Sources/PassKit/Models/DeviceModel.swift b/Sources/PassKit/Models/DeviceModel.swift index 40eccf6..50f86e1 100644 --- a/Sources/PassKit/Models/DeviceModel.swift +++ b/Sources/PassKit/Models/DeviceModel.swift @@ -26,8 +26,7 @@ /// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN /// THE SOFTWARE. -import Vapor -import Fluent +import FluentKit /// Represents the `Model` that stores PassKit devices. public protocol DeviceModel: Model where IDValue == Int { diff --git a/Sources/PassKit/Models/ErrorLogModel.swift b/Sources/PassKit/Models/ErrorLogModel.swift index bcd42d3..fc417df 100644 --- a/Sources/PassKit/Models/ErrorLogModel.swift +++ b/Sources/PassKit/Models/ErrorLogModel.swift @@ -26,8 +26,7 @@ /// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN /// THE SOFTWARE. -import Vapor -import Fluent +import FluentKit /// Represents the `Model` that stores PassKit error logs. public protocol ErrorLogModel: Model { diff --git a/Sources/Passes/Models/Concrete Models/PassesDevice.swift b/Sources/Passes/Models/Concrete Models/PassesDevice.swift index 6979f90..c06eba0 100644 --- a/Sources/Passes/Models/Concrete Models/PassesDevice.swift +++ b/Sources/Passes/Models/Concrete Models/PassesDevice.swift @@ -5,7 +5,6 @@ // Created by Francesco Paolo Severino on 29/06/24. // -import Foundation import FluentKit import PassKit @@ -51,4 +50,4 @@ extension PassesDevice { static let pushToken = FieldKey(stringLiteral: "push_token") static let deviceLibraryIdentifier = FieldKey(stringLiteral: "device_library_identifier") } -} \ No newline at end of file +} diff --git a/Sources/Passes/Models/Concrete Models/PassesErrorLog.swift b/Sources/Passes/Models/Concrete Models/PassesErrorLog.swift index abfcbbb..3e0497c 100644 --- a/Sources/Passes/Models/Concrete Models/PassesErrorLog.swift +++ b/Sources/Passes/Models/Concrete Models/PassesErrorLog.swift @@ -5,7 +5,7 @@ // Created by Francesco Paolo Severino on 29/06/24. // -import Foundation +import struct Foundation.Date import FluentKit import PassKit @@ -49,4 +49,4 @@ extension PassesErrorLog { static let createdAt = FieldKey(stringLiteral: "created_at") static let message = FieldKey(stringLiteral: "message") } -} \ No newline at end of file +} diff --git a/Sources/Passes/Models/Concrete Models/PassesRegistration.swift b/Sources/Passes/Models/Concrete Models/PassesRegistration.swift index d759760..35cea46 100644 --- a/Sources/Passes/Models/Concrete Models/PassesRegistration.swift +++ b/Sources/Passes/Models/Concrete Models/PassesRegistration.swift @@ -5,7 +5,6 @@ // Created by Francesco Paolo Severino on 29/06/24. // -import Foundation import FluentKit /// The `Model` that stores passes registrations. diff --git a/Sources/Passes/Models/PassDataModel.swift b/Sources/Passes/Models/PassDataModel.swift index def476f..7da4280 100644 --- a/Sources/Passes/Models/PassDataModel.swift +++ b/Sources/Passes/Models/PassDataModel.swift @@ -26,7 +26,6 @@ /// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN /// THE SOFTWARE. -import Vapor import FluentKit /// Represents the `Model` that stores custom app data associated to PassKit passes. diff --git a/Sources/Passes/Models/PassModel.swift b/Sources/Passes/Models/PassModel.swift index db8962f..430b035 100644 --- a/Sources/Passes/Models/PassModel.swift +++ b/Sources/Passes/Models/PassModel.swift @@ -26,7 +26,7 @@ /// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN /// THE SOFTWARE. -import Vapor +import Foundation import FluentKit /// Represents the `Model` that stores PassKit passes. diff --git a/Sources/Passes/Models/PassesRegistrationModel.swift b/Sources/Passes/Models/PassesRegistrationModel.swift index c7d30aa..91310b5 100644 --- a/Sources/Passes/Models/PassesRegistrationModel.swift +++ b/Sources/Passes/Models/PassesRegistrationModel.swift @@ -26,7 +26,6 @@ /// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN /// THE SOFTWARE. -import Vapor import FluentKit import PassKit diff --git a/Sources/Passes/PassesDelegate.swift b/Sources/Passes/PassesDelegate.swift index a992744..8170e51 100644 --- a/Sources/Passes/PassesDelegate.swift +++ b/Sources/Passes/PassesDelegate.swift @@ -26,7 +26,7 @@ /// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN /// THE SOFTWARE. -import Vapor +import Foundation import FluentKit /// The delegate which is responsible for generating the pass files. diff --git a/Sources/Passes/PassesServiceCustom.swift b/Sources/Passes/PassesServiceCustom.swift index e720701..15b7115 100644 --- a/Sources/Passes/PassesServiceCustom.swift +++ b/Sources/Passes/PassesServiceCustom.swift @@ -51,7 +51,7 @@ public final class PassesServiceCustom HTTPStatus { logger?.debug("Called register device") @@ -305,8 +307,10 @@ public final class PassesServiceCustom