-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPackage.swift
More file actions
35 lines (32 loc) · 1.02 KB
/
Package.swift
File metadata and controls
35 lines (32 loc) · 1.02 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
// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let tag = "v0.1.42"
let checksum = "2c7c01511b5c08efe97ce3fa5b417f5d0c8afc1ae2a40b4a099ae1e834b189a0"
let url = "https://github.com/synonymdev/bitkit-core/releases/download/\(tag)/BitkitCore.xcframework.zip"
let package = Package(
name: "bitkitcore",
platforms: [
.iOS(.v15),
.macOS(.v12),
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "BitkitCore",
targets: ["BitkitCoreFFI", "BitkitCore"]),
],
targets: [
.target(
name: "BitkitCore",
dependencies: ["BitkitCoreFFI"],
path: "./bindings/ios",
sources: ["bitkitcore.swift"]
),
.binaryTarget(
name: "BitkitCoreFFI",
url: url,
checksum: checksum
)
]
)