Skip to content

Instantly share code, notes, and snippets.

@Air-Craft
Created Dec 16, 2020
Embed
What would you like to do?
My Package.swift
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "MySDK",
platforms: [
.iOS(.v12)
],
products: [
.library(
name: "MySDK",
type: .dynamic,
targets: ["MySDK", "HKHelpers"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(name: "SwiftJWT", url: "https://github.com/Kitura/Swift-JWT.git", from: "3.5.3"),
.package(name: "MySDKDependencies", url: "file:///Users/Me/Code/MySDKDependencies", from: "1.0.0"),
],
targets: [
.target(
name: "MySDK",
dependencies: [
.product(name: "SDKHeader", package: "NTRDataCollectionSDKDependencies"),
.product(name: "SDKUpstreamProtocol", package: "NTRDataCollectionSDKDependencies"),
.product(name: "AWSCore", package: "NTRDataCollectionSDKDependencies"),
.product(name: "AWSCognito", package: "NTRDataCollectionSDKDependencies"),
.product(name: "AWSS3", package: "NTRDataCollectionSDKDependencies"),
.product(name: "AWSSNS", package: "NTRDataCollectionSDKDependencies"),
.product(name: "AWSPinpoint", package: "NTRDataCollectionSDKDependencies"),
"SwiftJWT",
"HKHelpers"
],
path: "MySDK/Sources",
exclude: ["*.plist", "*.h", "*.m"]
),
.target(
name: "HKHelpers",
dependencies: [],
path: "Libs/Internal/HKHelpers",
exclude: ["*.swift", "Info.plist"],
publicHeadersPath: "Sources/Public"
),
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment