forked from usemoss/moss
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
47 lines (46 loc) · 1.51 KB
/
Copy pathPackage.swift
File metadata and controls
47 lines (46 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// swift-tools-version: 5.9
//
// Moss iOS SDK — Swift Package Manager manifest.
//
// The `Moss` library wraps the precompiled `MossC` xcframework hosted as a
// GitHub Release asset on this repo. Xcode downloads the binary on first
// resolve, verifies the SHA-256 checksum below, and links it into the
// consuming target.
//
// To consume from another package or app:
//
// dependencies: [
// .package(url: "https://github.com/usemoss/moss", from: "0.4.0"),
// ],
// targets: [
// .target(name: "YourTarget", dependencies: [
// .product(name: "Moss", package: "moss"),
// ]),
// ]
//
// Or, in Xcode: File ▸ Add Package Dependencies ▸ https://github.com/usemoss/moss
//
// The Swift wrapper sources live under `sdks/swift/Sources/Moss/`. The
// xcframework binary is not committed to this repo — it ships as a release
// asset. Bump both the URL tag segment and the checksum together on every
// new tag.
import PackageDescription
let package = Package(
name: "Moss",
platforms: [.iOS(.v15)],
products: [
.library(name: "Moss", targets: ["Moss"]),
],
targets: [
.binaryTarget(
name: "MossC",
url: "https://github.com/usemoss/moss/releases/download/v0.6.2/Moss.xcframework.zip",
checksum: "db6bffcd27fec51ad275e27777f2037746a173c5c3e05f1b8d67981229b9e7d1"
),
.target(
name: "Moss",
dependencies: ["MossC"],
path: "sdks/swift/Sources/Moss"
),
]
)