Package.swift (33 lines of code) (raw):
// swift-tools-version: 5.6
import PackageDescription
// Current stable version of the Amazon Chime SDK for iOS
let SDKVersion = "0.27.1"
let SDKMediaVersion = "0.24.0"
let SDKMachineLearningVersion = "0.3.1"
// Hosting url where the release artifacts are hosted.
let hostingUrl = "https://amazon-chime-sdk-ios.s3.amazonaws.com"
// Checksums for SDKs to verify that the hosted archive file matches the archive declared in the manifest file.
let SDKChecksum = "d49cdd47cdadad79f2418927f1e08935b2f03e7de1b2021698a5441f0bd53e84"
let SDKMediaChecksum = "a913300babcea09db76b0dd5cbcb9fc70e5ac567f93ae110a8c4bd6d77070c48"
let SDKMachineLearningChecksum = "d0968e47808f5c1a8b83b7383d9a76435eecf018d3b7aa2aa8a65205d212f31c"
let package = Package(
name: "AmazonChimeSDK",
products: [
.library(name: "AmazonChimeSDK", targets: ["AmazonChimeSDK", "AmazonChimeSDKMedia"]),
.library(name: "AmazonChimeSDKMedia", targets: ["AmazonChimeSDKMedia"]),
.library(name: "AmazonChimeSDKMachineLearning", targets: ["AmazonChimeSDKMachineLearning"])
],
targets: [
.binaryTarget(
name: "AmazonChimeSDK",
url: "\(hostingUrl)/sdk/\(SDKVersion)/spm/AmazonChimeSDK-\(SDKVersion).zip",
checksum: SDKChecksum
),
.binaryTarget(
name: "AmazonChimeSDKMedia",
url: "\(hostingUrl)/media-no-video-codecs/\(SDKMediaVersion)/spm/AmazonChimeSDKMediaNoVideoCodecs-\(SDKMediaVersion).zip",
checksum: SDKMediaChecksum
),
.binaryTarget(
name: "AmazonChimeSDKMachineLearning",
url: "\(hostingUrl)/machine-learning/\(SDKMachineLearningVersion)/spm/AmazonChimeSDKMachineLearning-\(SDKMachineLearningVersion).zip",
checksum: SDKMachineLearningChecksum
)
]
)