代码拉取完成,页面将自动刷新
// swift-tools-version:5.3
import PackageDescription
let rocketIfNeeded: [Package.Dependency]
#if os(OSX) || os(Linux)
rocketIfNeeded = [
.package(url: "https://github.com/shibapm/Rocket", .upToNextMajor(from: "1.2.0")) // dev
]
#else
rocketIfNeeded = []
#endif
let package = Package(
name: "Moya",
platforms: [
.macOS(.v10_12),
.iOS(.v10),
.tvOS(.v10),
.watchOS(.v3)
],
products: [
.library(name: "Moya", targets: ["Moya"]),
.library(name: "CombineMoya", targets: ["CombineMoya"]),
.library(name: "ReactiveMoya", targets: ["ReactiveMoya"]),
.library(name: "RxMoya", targets: ["RxMoya"])
],
dependencies: [
.package(url: "https://github.com/Alamofire/Alamofire.git", .upToNextMajor(from: "5.0.0")),
.package(url: "https://github.com/ReactiveCocoa/ReactiveSwift.git", .upToNextMajor(from: "6.0.0")),
.package(url: "https://github.com/ReactiveX/RxSwift.git", .upToNextMajor(from: "6.0.0")),
.package(url: "https://github.com/Quick/Quick.git", .upToNextMajor(from: "4.0.0")), // dev
.package(url: "https://github.com/Quick/Nimble.git", .upToNextMajor(from: "9.0.0")), // dev
.package(url: "https://github.com/AliSoftware/OHHTTPStubs.git", .upToNextMajor(from: "9.0.0")) // dev
] + rocketIfNeeded,
targets: [
.target(
name: "Moya",
dependencies: [
.product(name: "Alamofire", package: "Alamofire")
],
exclude: [
"Supporting Files/Info.plist"
]
),
.target(
name: "CombineMoya",
dependencies: [
"Moya"
]
),
.target(
name: "ReactiveMoya",
dependencies: [
"Moya",
.product(name: "ReactiveSwift", package: "ReactiveSwift")
]
),
.target(
name: "RxMoya",
dependencies: [
"Moya",
.product(name: "RxSwift", package: "RxSwift")
]
),
.testTarget( // dev
name: "MoyaTests", // dev
dependencies: [ // dev
"Moya", // dev
"CombineMoya", // dev
"ReactiveMoya", // dev
"RxMoya", // dev
.product(name: "Quick", package: "Quick"), // dev
.product(name: "Nimble", package: "Nimble"), // dev
.product(name: "OHHTTPStubsSwift", package: "OHHTTPStubs") // dev
] // dev
) // dev
]
)
#if canImport(PackageConfig)
import PackageConfig
let config = PackageConfiguration([
"rocket": [
"before": [
"scripts/update_changelog.sh",
"scripts/update_podspec.sh"
],
"after": [
"rake create_release\\[\"$VERSION\"\\]",
"scripts/update_docs_website.sh"
]
]
]).write()
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。