Skip to content

Commit

Permalink
Version 0.4.0 (#8)
Browse files Browse the repository at this point in the history
* Fix an issue in the `PKErrorLog` model, where the `created_at` `FieldKey` didn't coincide in the model and in the migration.

* Make `authenticationToken` unique for each pass, as requested by the Wallet documentation, improving security.

* Create a new target `PassKit` for the types shared between the `Passes` and the upcoming `Orders` modules.

* Rename multiple structs and protocols to better represent what they are.

* Add `PassJSON` protocol to help build the `pass.json`.

* Start work on the `Orders` target.
  • Loading branch information
fpseverino authored Jul 1, 2024
1 parent 72495e1 commit 65ff989
Show file tree
Hide file tree
Showing 37 changed files with 1,388 additions and 442 deletions.
2 changes: 1 addition & 1 deletion .spi.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1
builder:
configs:
- documentation_targets: [Passes]
- documentation_targets: [PassKit, Passes, Orders]
24 changes: 20 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,45 @@ let package = Package(
.macOS(.v13), .iOS(.v16)
],
products: [
.library(name: "Passes", targets: ["Passes"]),
.library(name: "PassKit", targets: ["PassKit"]),
.library(name: "Passes", targets: ["PassKit", "Passes"]),
.library(name: "Orders", targets: ["PassKit", "Orders"]),
],
dependencies: [
.package(url: "https://github.com/vapor/vapor.git", from: "4.102.0"),
.package(url: "https://github.com/vapor/fluent.git", from: "4.11.0"),
.package(url: "https://github.com/vapor/apns.git", from: "4.1.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.6.0"),
],
targets: [
.target(
name: "Passes",
name: "PassKit",
dependencies: [
.product(name: "Fluent", package: "fluent"),
.product(name: "Vapor", package: "vapor"),
.product(name: "VaporAPNS", package: "apns"),
.product(name: "Logging", package: "swift-log"),
],
swiftSettings: swiftSettings
),
.target(
name: "Passes",
dependencies: [
.target(name: "PassKit"),
],
swiftSettings: swiftSettings
),
.target(
name: "Orders",
dependencies: [
.target(name: "PassKit"),
],
swiftSettings: swiftSettings
),
.testTarget(
name: "PassKitTests",
dependencies: [
.target(name: "PassKit"),
.target(name: "Passes"),
.target(name: "Orders"),
.product(name: "XCTVapor", package: "vapor"),
],
swiftSettings: swiftSettings
Expand Down
Loading

0 comments on commit 65ff989

Please sign in to comment.