1 Star 0 Fork 0

大漠/Moya

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Package.swift 2.92 KB
一键复制 编辑 原始数据 按行查看 历史
Andrew Breckenridge 提交于 2022-08-12 09:14 . Unhide dependencies
// 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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/rufengdongyuetian/Moya.git
git@gitee.com:rufengdongyuetian/Moya.git
rufengdongyuetian
Moya
Moya
master

搜索帮助