Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 13 additions & 11 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

import PackageDescription

let nativePlatforms: [Platform] = [
let hostPlatforms: [Platform] = [
.macOS,
.macCatalyst,
.iOS,
.tvOS,
.watchOS,
.visionOS,
.driverKit,
.linux,
.windows,
.android,
Expand Down Expand Up @@ -91,6 +90,10 @@ let bigInt: Package.Dependency = .package(
url: "https://github.com/attaswift/BigInt.git",
.upToNextMajor(from: "5.7.0")
)
let swiftZipArchive: Package.Dependency = .package(
url: "https://github.com/rorkai/swift-zip-archive.git",
exact: "0.8.1-rork.3"
)

var dependencies: [Package.Dependency] = [
swiftArgumentParser,
Expand All @@ -99,6 +102,7 @@ var dependencies: [Package.Dependency] = [
swiftCertificates,
swiftCrypto,
bigInt,
swiftZipArchive,
]

var targets: [Target] = [
Expand Down Expand Up @@ -142,12 +146,12 @@ var targets: [Target] = [
dependencies: [
.target(
name: "RorkDeviceLwIP",
condition: .when(platforms: nativePlatforms)
condition: .when(platforms: hostPlatforms)
),
.product(
name: "BigInt",
package: "BigInt",
condition: .when(platforms: nativePlatforms)
condition: .when(platforms: hostPlatforms)
),
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "NIOEmbedded", package: "swift-nio"),
Expand All @@ -158,18 +162,15 @@ var targets: [Target] = [
.product(
name: "X509",
package: "swift-certificates",
condition: .when(platforms: nativePlatforms)
condition: .when(platforms: hostPlatforms)
),
.product(
name: "CryptoExtras",
package: "swift-crypto",
condition: .when(platforms: nativePlatforms)
),
.product(
name: "Crypto",
package: "swift-crypto",
condition: .when(platforms: [.wasi])
condition: .when(platforms: hostPlatforms)
),
.product(name: "Crypto", package: "swift-crypto"),
.product(name: "ZipArchive", package: "swift-zip-archive"),
]
),
.executableTarget(
Expand All @@ -190,6 +191,7 @@ var targets: [Target] = [
.product(name: "NIOSSL", package: "swift-nio-ssl"),
.product(name: "X509", package: "swift-certificates"),
.product(name: "CryptoExtras", package: "swift-crypto"),
.product(name: "ZipArchive", package: "swift-zip-archive"),
],
resources: [
.process("Fixtures"),
Expand Down
Loading