34 lines
878 B
Swift
34 lines
878 B
Swift
// swift-tools-version:5.3
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "AppReceiptValidator",
|
|
platforms: [
|
|
.iOS("13.4"),
|
|
.macOS(.v10_11),
|
|
.tvOS(.v11)
|
|
],
|
|
products: [
|
|
.library(name: "AppReceiptValidator", targets: ["AppReceiptValidator", "OpenSSL"])
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "AppReceiptValidator",
|
|
path: "AppReceiptValidator/AppReceiptValidator",
|
|
exclude: [
|
|
"OpenSSL/openssl.xcframework",
|
|
"Supporting Files/Info.plist",
|
|
],
|
|
resources: [
|
|
.copy("AppleIncRootCertificate.cer")
|
|
]
|
|
),
|
|
.binaryTarget(
|
|
name: "OpenSSL",
|
|
path: "AppReceiptValidator/AppReceiptValidator/OpenSSL/openssl.xcframework"
|
|
),
|
|
],
|
|
swiftLanguageVersions: [.v5]
|
|
)
|