Skip to content

Commit

Permalink
Added SPM Support (#60)
Browse files Browse the repository at this point in the history
- Added Package.swift
- Updated README.md with SPM instructions
- Updated .gitignore for swiftpm folder
  • Loading branch information
mattmaddux authored Apr 22, 2020
1 parent ce2127a commit d18cf90
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ xcuserdata
## Obj-C/Swift specific
*.hmap
*.ipa
.swiftpm/
14 changes: 14 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// swift-tools-version:4.1

import PackageDescription

let package = Package(
name: "SwCrypt",
products: [
.library(name: "SwCrypt", targets: ["SwCrypt"])
],
targets: [
.target(name: "SwCrypt", path: "SwCrypt"),
.testTarget(name: "SwCryptTests", dependencies: ["SwCrypt"], path: "SwCryptTests")
]
)
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,17 @@ Just copy [SwCrypt.swift](https://github.com/soyersoyer/SwCrypt/blob/master/SwCr

[CocoaPods]: https://cocoapods.org
[CocoaPods Installation]: https://guides.cocoapods.org/using/getting-started.html#getting-started

### Swift Package Manager
SPM is built into new versions of Xcode. To install SwCrypt with SPM:

1. Open your project in Xcode

2. Click "File" -> "Swift Packages" -> "Add Package Dependency..."

3. Paste the following URL: https://github.com/soyersoyer/SwCrypt

4. Click "Next" -> "Next" -> "Finish"


Inspired from
Expand Down

0 comments on commit d18cf90

Please sign in to comment.