Rename package, update dependencies
This commit is contained in:
parent
cfdbe0cb8c
commit
b98fbe7afd
@ -3,22 +3,22 @@
|
|||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
|
||||||
let package = Package(
|
let package = Package(
|
||||||
name: "PushAPI",
|
name: "PushMessageDefinitions",
|
||||||
platforms: [
|
platforms: [
|
||||||
.macOS(.v10_15),
|
.macOS(.v10_15),
|
||||||
.iOS(.v13)
|
.iOS(.v13)
|
||||||
],
|
],
|
||||||
products: [
|
products: [
|
||||||
.library(
|
.library(
|
||||||
name: "PushAPI",
|
name: "PushMessageDefinitions",
|
||||||
targets: ["PushAPI"]),
|
targets: ["PushMessageDefinitions"]),
|
||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.package(url: "https://github.com/kylebrowning/APNSwift.git", "3.0.0" ..< "5.0.0"),
|
.package(url: "https://github.com/swift-server-community/APNSwift.git", from: "3.0.0"),
|
||||||
],
|
],
|
||||||
targets: [
|
targets: [
|
||||||
.target(
|
.target(
|
||||||
name: "PushAPI",
|
name: "PushMessageDefinitions",
|
||||||
dependencies: [.product(name: "APNSwift", package: "APNSwift")])
|
dependencies: [.product(name: "APNSwift", package: "APNSwift")])
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Push-API
|
# Push-API
|
||||||
|
|
||||||
This package contains message definitions, routes and information specifying the interface to a [Push-Server](https://christophhagen.de/git/ch/Push-Server.git). The package is used to implement both the client and the server using common definitions to ensure compatibility.
|
This package contains message definitions, routes and information specifying the interface to a [Push-Server](https://christophhagen.de/git/ch/Push-Server.git). The package is used to implement both the client and the server using common definitions to ensure compatibility.
|
||||||
|
|
||||||
The package depends on [APNSwift](https://github.com/swift-server-community/APNSwift.git), which provides the definitions for push message contents and is used by the server to connect to the Apple Push Notification Service (APNs).
|
The package depends on [APNSwift](https://github.com/swift-server-community/APNSwift.git), which provides the definitions for push message contents and is used by the server to connect to the Apple Push Notification Service (APNs).
|
||||||
|
|
||||||
@ -9,11 +9,11 @@ The package depends on [APNSwift](https://github.com/swift-server-community/APNS
|
|||||||
Add the package dependency in your `Package.swift` file:
|
Add the package dependency in your `Package.swift` file:
|
||||||
```swift
|
```swift
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.package(url: "https://christophhagen.de/git/ch/Push-API.git", from: "0.4.0"),
|
.package(url: "https://christophhagen.de/git/ch/Push-Definitions.git", from: "1.0.0"),
|
||||||
],
|
],
|
||||||
```
|
```
|
||||||
|
|
||||||
Then import the module in your code:
|
Then import the module in your code:
|
||||||
```swift
|
```swift
|
||||||
import PushAPI
|
import PushMessageDefinitions
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user