Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Commit d704e0b

Browse files
authored
Merge pull request #34 from robfeldmann/add-spm-support
Add Support for Swift Package Manager (Minor Update)
2 parents 2a7872d + 631e80f commit d704e0b

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ fastlane/test_output
77
fastlane/settoken.sh
88
/build
99
Carthage/Build
10+
.swiftpm

Package.swift

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// swift-tools-version:5.0
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "R.swift.Library",
7+
platforms: [
8+
.iOS(.v8),
9+
.tvOS(.v9),
10+
.watchOS(.v2),
11+
],
12+
products: [
13+
.library(name: "Rswift", targets: ["Rswift"])
14+
],
15+
targets: [
16+
.target(name: "Rswift", path: "Library")
17+
]
18+
)

Readme.md

+9
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ _**Be aware:** If you just want to use R.swift follow the [installation instruct
2020
1. Add `github "mac-cain13/R.swift.Library"` to your [Cartfile](https://github.com/Carthage/Carthage/blob/master/Documentation/Artifacts.md#cartfile)
2121
2. Run `carthage`
2222

23+
### Swift Package Manager (Requires Xcode 11)
24+
25+
1. Open your Xcode project.
26+
2. Select `File > Swift Packages > Add Package Dependency...`
27+
3. Paste `https://github.com/mac-cain13/R.swift.Library` to the text field and click on the `Next` button.
28+
4. Choose appropriate version and click on the `Next` button. (If you need latest one, just click on the `Next` button.)
29+
5. Confirm that `Rswift` in the Package Product column is checked and your app's name is selected in the Add to Target column.
30+
6. Click on the `Next` button.
31+
2332
### Manually
2433

2534
_As an embedded framework using git submodules._

0 commit comments

Comments
 (0)