Skip to content

Commit 3511080

Browse files
committed
Update README
1 parent 9bba3d3 commit 3511080

File tree

1 file changed

+27
-6
lines changed

1 file changed

+27
-6
lines changed

README.md

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Build Status](https://travis-ci.com/ctreffs/SwiftAssimp.svg?branch=master)](https://travis-ci.com/ctreffs/SwiftAssimp)
44
[![license](https://img.shields.io/badge/license-BSD3-brightgreen.svg)](LICENSE)
5-
[![swift version](https://img.shields.io/badge/swift-5.0+-brightgreen.svg)](https://swift.org/download)
5+
[![swift version](https://img.shields.io/badge/swift-5.1+-brightgreen.svg)](https://swift.org/download)
66
[![platforms](https://img.shields.io/badge/platforms-%20macOS%20-brightgreen.svg)](#)
77
[![platforms](https://img.shields.io/badge/platforms-linux-brightgreen.svg)](#)
88

@@ -20,24 +20,45 @@ These instructions will get your copy of the project up and running on your loca
2020
### 📋 Prerequisites
2121

2222
* [Swift Package Manager (SPM)](https://github.com/apple/swift-package-manager)
23-
* [Swiftlint](https://github.com/realm/SwiftLint) for linting - (optional)
23+
* [Open Asset Import Library (Assimp)](http://assimp.org)
2424
* [SwiftEnv](https://swiftenv.fuller.li/) for Swift version management - (optional)
25+
* [Swiftlint](https://github.com/realm/SwiftLint) for linting - (optional)
2526

2627
### 💻 Installing
2728

28-
Swift Assimp is available for all platforms that support [Swift 5.0](https://swift.org/) and higher and the [Swift Package Manager (SPM)](https://github.com/apple/swift-package-manager).
29+
Swift Assimp is available for all platforms that support [Swift 5.1](https://swift.org/) and higher and the [Swift Package Manager (SPM)](https://github.com/apple/swift-package-manager).
30+
31+
Extend your `Package.swift` file with the following lines or use it to create a new project.
2932

30-
Extend the following lines in your `Package.swift` file or use it to create a new project.
33+
For package manifests using the Swift 5.1 toolchain use:
3134

3235
```swift
33-
// swift-tools-version:5.0
36+
// swift-tools-version:5.1
37+
import PackageDescription
38+
39+
let package = Package(
40+
name: "YourPackageName",
41+
dependencies: [
42+
.package(url: "https://github.com/ctreffs/SwiftAssimp.git", from: "1.2.2")
43+
],
44+
targets: [
45+
.target(
46+
name: "YourTargetName",
47+
dependencies: ["Assimp"])
48+
]
49+
)
50+
51+
```
52+
or for package manifests using the Swift 5.2 and hight toolchain use:
3453

54+
```swift
55+
// swift-tools-version:5.2
3556
import PackageDescription
3657

3758
let package = Package(
3859
name: "YourPackageName",
3960
dependencies: [
40-
.package(url: "https://github.com/ctreffs/SwiftAssimp.git", from: "1.0.0")
61+
.package(name: "Assimp", url: "https://github.com/ctreffs/SwiftAssimp.git", from: "1.2.2")
4162
],
4263
targets: [
4364
.target(

0 commit comments

Comments
 (0)