forked from Stremio/stremio-core-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathPackage.swift
33 lines (31 loc) · 1.21 KB
/
Package.swift
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
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
let sha256 = "8c5042a450587cfd54b8c83a48127e5ea5e58ee3d9f04d10276949e0880c6d72";
let url = "https://github.com/Stremio/stremio-core-swift/releases/download/1.2.62/StremioCore.xcframework.zip";
import PackageDescription
let package = Package(
name: "StremioCore",
platforms: [
.macCatalyst(.v13),
.iOS(.v12),
.visionOS(.v1),
.tvOS(.v12)
],
products: [
.library(
name: "StremioCore",
targets: ["StremioCore", "XCFramework"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-protobuf.git", from: "1.0.0"),
],
targets: [
.target(name: "StremioCore",
dependencies: ["Wrapper", .product(name: "SwiftProtobuf", package: "swift-protobuf")], plugins: [
.plugin(name: "SwiftProtobufPlugin", package: "swift-protobuf")
]),
.target(name: "Wrapper", dependencies: []),
//.binaryTarget(name: "XCFramework", path: ".build/StremioCore.xcframework")
.binaryTarget(name: "XCFramework", url: url, checksum: sha256)
]
)