Skip to content

Commit

Permalink
Update README for release 12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SD10 committed Nov 15, 2018
1 parent f208e9f commit 919284a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ let package = Package(
targets: ["MyPackage"]),
],
dependencies: [
.package(url: "https://github.com/Moya/Moya.git", .upToNextMajor(from: "11.0.0"))
.package(url: "https://github.com/Moya/Moya.git", .upToNextMajor(from: "12.0.0"))
],
targets: [
.target(
Expand All @@ -108,15 +108,15 @@ Note that as of Moya 10, SPM only works with Swift 4 toolchain and greater.
For Moya, use the following entry in your Podfile:

```rb
pod 'Moya', '~> 11.0'
pod 'Moya', '~> 12.0'

# or

pod 'Moya/RxSwift', '~> 11.0'
pod 'Moya/RxSwift', '~> 12.0'

# or

pod 'Moya/ReactiveSwift', '~> 11.0'
pod 'Moya/ReactiveSwift', '~> 12.0'
```

Then run `pod install`.
Expand Down
10 changes: 5 additions & 5 deletions Readme_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ new auction app](https://github.com/Artsy/eidolon). 我们认为它已经可以
要集成使用苹果的Swift包管理器,请将以下内容作为依赖项添加到`Package.swift`:

```swift
.package(url: "https://github.com/Moya/Moya.git", .upToNextMajor(from: "11.0.0"))
.package(url: "https://github.com/Moya/Moya.git", .upToNextMajor(from: "12.0.0"))
```

然后指定 `.Target(name: "Moya")` 使用Moya的依赖项.
Expand All @@ -75,7 +75,7 @@ import PackageDescription
let package = Package(
name: "MyApp",
dependencies: [
.package(url: "https://github.com/Moya/Moya.git", .upToNextMajor(from: "11.0.0"))
.package(url: "https://github.com/Moya/Moya.git", .upToNextMajor(from: "12.0.0"))
]
)
```
Expand All @@ -85,15 +85,15 @@ let package = Package(
在您的Podfile文件中使用Moya:

```rb
pod 'Moya', '~> 11.0'
pod 'Moya', '~> 12.0'

# or

pod 'Moya/RxSwift', '~> 11.0'
pod 'Moya/RxSwift', '~> 12.0'

# or

pod 'Moya/ReactiveSwift', '~> 11.0'
pod 'Moya/ReactiveSwift', '~> 12.0'
```

然后运行 `pod install`.
Expand Down

0 comments on commit 919284a

Please sign in to comment.