Skip to content

Commit d18cf90

Browse files
authored
Added SPM Support (#60)
- Added Package.swift - Updated README.md with SPM instructions - Updated .gitignore for swiftpm folder
1 parent ce2127a commit d18cf90

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ xcuserdata
2323
## Obj-C/Swift specific
2424
*.hmap
2525
*.ipa
26+
.swiftpm/

Package.swift

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// swift-tools-version:4.1
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "SwCrypt",
7+
products: [
8+
.library(name: "SwCrypt", targets: ["SwCrypt"])
9+
],
10+
targets: [
11+
.target(name: "SwCrypt", path: "SwCrypt"),
12+
.testTarget(name: "SwCryptTests", dependencies: ["SwCrypt"], path: "SwCryptTests")
13+
]
14+
)

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,17 @@ Just copy [SwCrypt.swift](https://github.com/soyersoyer/SwCrypt/blob/master/SwCr
148148

149149
[CocoaPods]: https://cocoapods.org
150150
[CocoaPods Installation]: https://guides.cocoapods.org/using/getting-started.html#getting-started
151+
152+
### Swift Package Manager
153+
SPM is built into new versions of Xcode. To install SwCrypt with SPM:
154+
155+
1. Open your project in Xcode
156+
157+
2. Click "File" -> "Swift Packages" -> "Add Package Dependency..."
158+
159+
3. Paste the following URL: https://github.com/soyersoyer/SwCrypt
160+
161+
4. Click "Next" -> "Next" -> "Finish"
151162

152163

153164
Inspired from

0 commit comments

Comments
 (0)