Skip to content

Commit

Permalink
Updating readme for Swift 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RockfordWei committed Sep 20, 2017
1 parent 08cf5f2 commit 1df1ed0
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@

<p align="center">
<a href="https://developer.apple.com/swift/" target="_blank">
<img src="https://img.shields.io/badge/Swift-3.0-orange.svg?style=flat" alt="Swift 3.0">
<img src="https://img.shields.io/badge/Swift-4.0-orange.svg?style=flat" alt="Swift 4.0">
<img src="https://img.shields.io/badge/Swift-3.1-orange.svg?style=flat" alt="Swift 3.1">
</a>
<a href="https://developer.apple.com/swift/" target="_blank">
<img src="https://img.shields.io/badge/Platforms-OS%20X%20%7C%20Linux%20-lightgray.svg?style=flat" alt="Platforms OS X | Linux">
Expand All @@ -47,10 +48,24 @@ This package builds with Swift Package Manager of Swift 3.1 Tool Chain and is pa

Configure Package.swift:

For Swift 3.1:

``` swift
.Package(url: "https://github.com/PerfectlySoft/Perfect-INIParser.git", majorVersion: 1)
```

For Swift 4.0:

``` swift
.package(url: "https://github.com/PerfectlySoft/Perfect-INIParser.git", from: "1.0.0")

...

.target( name: "YourProjectName",
dependencies: ["INIParser"]),

```

Import library into your code:

``` swift
Expand Down
17 changes: 16 additions & 1 deletion README.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@

<p align="center">
<a href="https://developer.apple.com/swift/" target="_blank">
<img src="https://img.shields.io/badge/Swift-3.0-orange.svg?style=flat" alt="Swift 3.0">
<img src="https://img.shields.io/badge/Swift-4.0-orange.svg?style=flat" alt="Swift 4.0">
<img src="https://img.shields.io/badge/Swift-3.1-orange.svg?style=flat" alt="Swift 3.1">
</a>
<a href="https://developer.apple.com/swift/" target="_blank">
<img src="https://img.shields.io/badge/Platforms-OS%20X%20%7C%20Linux%20-lightgray.svg?style=flat" alt="Platforms OS X | Linux">
Expand All @@ -47,10 +48,24 @@

配置 Package.swift 文件:

如果使用 Swift 3.1:

``` swift
.Package(url: "https://github.com/PerfectlySoft/Perfect-INIParser.git", majorVersion: 1)
```

如果使用 Swift 4.0:

``` swift
.package(url: "https://github.com/PerfectlySoft/Perfect-INIParser.git", from: "1.0.0")

...

.target( name: "YourProjectName",
dependencies: ["INIParser"]),

```

导入函数库:

``` swift
Expand Down

0 comments on commit 1df1ed0

Please sign in to comment.