[ad_1]
I will efficiently pull in Amplify, nevertheless the extra libraries (reminiscent of AWSS3StoragePlugin) will not be put in in my within the Swift Package deal/SDK.
Is there at present a approach to do that with Swift Package deal Supervisor dependencies?
AWS Swift Package deal Supervisor Set up:
https://github.com/aws-amplify/aws-sdk-ios
Package deal.swift file:
merchandise: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "ios-sdk",
targets: ["ios-sdk"]),
],
dependencies: [
.package(name: "Amplify", url: "https://github.com/aws-amplify/amplify-ios", from: "1.17.0")
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "ios-sdk",
dependencies: ["Amplify"],
sources: [
.process("Resources")
]),
.testTarget(
identify: "ios-sdkTests",
dependencies: ["ios-sdk"]),
]
)
[ad_2]
