Skip to content

Commit bad37b5

Browse files
author
Alex Oakley
authored
Merge pull request #2 from sublabdev/dev
Added SPM Support
2 parents d4ceb0d + 89351ca commit bad37b5

28 files changed

+201
-17
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/Packages
2+
.swiftpm/config/registries.json
3+
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
4+
.netrc
5+
16
.DS_Store
27
# Xcode
38
#

EncryptingSwift.podspec

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ Pod::Spec.new do |s|
77
s.author = { 'Substrate Laboratory LLC' => 'info@sublab.dev' }
88
s.source = { :git => 'https://github.com/sublabdev/encrypting-swift.git', :tag => s.version.to_s }
99
s.ios.deployment_target = '13.0'
10-
s.source_files = 'EncryptingSwift/Classes/**/*'
11-
s.dependency 'CommonSwift', '~> 1.0.0'
12-
s.dependency 'HashingSwift', '~> 1.0.0'
13-
s.dependency 'secp256k1.swift', '~> 0.1.4'
14-
s.dependency 'ed25519swift', '~> 1.2.8'
15-
s.dependency 'Sr25519', '~> 0.1.3'
16-
s.dependency 'Bip39.swift', '~> 0.1.1'
17-
s.dependency 'UncommonCrypto', '~> 0.1.3'
10+
s.osx.deployment_target = '10.15'
11+
s.source_files = 'Sources/EncryptingSwift/**/*'
12+
s.dependency 'CommonSwift', '1.0.0'
13+
s.dependency 'HashingSwift', '1.0.0'
14+
s.dependency 'secp256k1.swift', '0.1.4'
15+
s.dependency 'ed25519swift', '1.2.8'
16+
s.dependency 'Sr25519', '0.1.3'
17+
s.dependency 'Bip39.swift', '0.1.1'
18+
s.dependency 'UncommonCrypto', '0.1.3'
1819
end

EncryptingSwift/Assets/.gitkeep

Whitespace-only changes.

EncryptingSwift/Classes/.gitkeep

Whitespace-only changes.

Example/Podfile.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ PODS:
1111
- ed25519swift (1.2.8):
1212
- CryptoSwift
1313
- EncryptingSwift (1.0.0):
14-
- Bip39.swift (~> 0.1.1)
15-
- CommonSwift (~> 1.0.0)
16-
- ed25519swift (~> 1.2.8)
17-
- HashingSwift (~> 1.0.0)
18-
- secp256k1.swift (~> 0.1.4)
19-
- Sr25519 (~> 0.1.3)
20-
- UncommonCrypto (~> 0.1.3)
14+
- Bip39.swift (= 0.1.1)
15+
- CommonSwift (= 1.0.0)
16+
- ed25519swift (= 1.2.8)
17+
- HashingSwift (= 1.0.0)
18+
- secp256k1.swift (= 0.1.4)
19+
- Sr25519 (= 0.1.3)
20+
- UncommonCrypto (= 0.1.3)
2121
- HashingSwift (1.0.0):
2222
- Base58Swift (~> 2.1.10)
2323
- Blake2 (~> 0.1.2)
@@ -83,7 +83,7 @@ SPEC CHECKSUMS:
8383
CommonSwift: ad350f0e06c040e5cb660cd7154f947851c73fbd
8484
CryptoSwift: 562f8eceb40e80796fffc668b0cad9313284cfa6
8585
ed25519swift: 32845b4d73fdd3598d6334972a62f463314de730
86-
EncryptingSwift: ceaa2f0f36295835b8f1dc7c80e5c50d2dfe6c88
86+
EncryptingSwift: d6ea33bacc1593872ca998ef9f08c66221b0d9cd
8787
HashingSwift: d97c9d264e558e471b15d4c65773104c587a9b4c
8888
keccak.c: 859583afdaccb4e4fcc0f0096064d101580313f4
8989
secp256k1.swift: a7e7a214f6db6ce5db32cc6b2b45e5c4dd633634
@@ -93,4 +93,4 @@ SPEC CHECKSUMS:
9393

9494
PODFILE CHECKSUM: 44f1de9fff37130314c674a1eb0521ca0421b097
9595

96-
COCOAPODS: 1.11.3
96+
COCOAPODS: 1.12.1

Package.resolved

Lines changed: 122 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// swift-tools-version:5.6
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "EncryptingSwift",
7+
platforms: [
8+
.iOS(.v13),
9+
.macOS(.v10_15),
10+
.watchOS(.v6),
11+
.tvOS(.v13)
12+
],
13+
products: [
14+
.library(
15+
name: "EncryptingSwift",
16+
targets: ["EncryptingSwift"]
17+
),
18+
],
19+
dependencies: [
20+
.package(url: "https://github.com/sublabdev/common-swift.git", exact: "1.0.0"),
21+
.package(url: "https://github.com/sublabdev/hashing-swift.git", exact: "1.0.0"),
22+
.package(url: "https://github.com/Boilertalk/secp256k1.swift.git", exact: "0.1.4"),
23+
.package(url: "https://github.com/pebble8888/ed25519swift.git", exact: "1.2.8"),
24+
.package(url: "https://github.com/tesseract-one/Sr25519.swift.git", exact: "0.1.3"),
25+
.package(url: "https://github.com/tesseract-one/Bip39.swift.git", exact: "0.1.1")
26+
],
27+
targets: [
28+
.target(
29+
name: "EncryptingSwift",
30+
dependencies: [
31+
.productItem(name: "CommonSwift", package: "common-swift"),
32+
.productItem(name: "HashingSwift", package: "hashing-swift"),
33+
.productItem(name: "secp256k1", package: "secp256k1.swift"),
34+
.productItem(name: "ed25519swift", package: "ed25519swift"),
35+
.productItem(name: "Sr25519", package: "Sr25519.swift"),
36+
.productItem(name: "Bip39", package: "Bip39.swift"),
37+
]
38+
)
39+
],
40+
swiftLanguageVersions: [
41+
.v5
42+
]
43+
)
44+

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,24 @@ Our goal is to have more developers to come into the world of development of cli
3434

3535
## Installation
3636

37+
### CocoaPods
38+
3739
[CocoaPods](https://cocoapods.org) is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate Alamofire into your Xcode project using CocoaPods, specify it in your `Podfile`:
3840

3941
```ruby
4042
pod 'EncryptingSwift'
4143
```
4244

45+
### Swift Package Manager
46+
47+
The [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler.
48+
49+
Once you have your Swift package set up, adding EncryptingSwift as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.
50+
51+
```swift
52+
.package(url: "https://github.com/sublabdev/encrypting-swift.git", from: "1.0.0")
53+
```
54+
4355
## Documentation
4456

4557
- Our GitBook: [https://docs.sublab.dev/swift-libraries/encrypting-library](https://docs.sublab.dev/swift-libraries/encrypting-library)

0 commit comments

Comments
 (0)