Skip to content

Commit

Permalink
Merge pull request #2 from sublabdev/dev
Browse files Browse the repository at this point in the history
Added SPM Support
  • Loading branch information
Alex Oakley authored May 7, 2023
2 parents d4ceb0d + 89351ca commit bad37b5
Show file tree
Hide file tree
Showing 28 changed files with 201 additions and 17 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/Packages
.swiftpm/config/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc

.DS_Store
# Xcode
#
Expand Down
17 changes: 9 additions & 8 deletions EncryptingSwift.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ Pod::Spec.new do |s|
s.author = { 'Substrate Laboratory LLC' => 'info@sublab.dev' }
s.source = { :git => 'https://github.com/sublabdev/encrypting-swift.git', :tag => s.version.to_s }
s.ios.deployment_target = '13.0'
s.source_files = 'EncryptingSwift/Classes/**/*'
s.dependency 'CommonSwift', '~> 1.0.0'
s.dependency 'HashingSwift', '~> 1.0.0'
s.dependency 'secp256k1.swift', '~> 0.1.4'
s.dependency 'ed25519swift', '~> 1.2.8'
s.dependency 'Sr25519', '~> 0.1.3'
s.dependency 'Bip39.swift', '~> 0.1.1'
s.dependency 'UncommonCrypto', '~> 0.1.3'
s.osx.deployment_target = '10.15'
s.source_files = 'Sources/EncryptingSwift/**/*'
s.dependency 'CommonSwift', '1.0.0'
s.dependency 'HashingSwift', '1.0.0'
s.dependency 'secp256k1.swift', '0.1.4'
s.dependency 'ed25519swift', '1.2.8'
s.dependency 'Sr25519', '0.1.3'
s.dependency 'Bip39.swift', '0.1.1'
s.dependency 'UncommonCrypto', '0.1.3'
end
Empty file removed EncryptingSwift/Assets/.gitkeep
Empty file.
Empty file removed EncryptingSwift/Classes/.gitkeep
Empty file.
18 changes: 9 additions & 9 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ PODS:
- ed25519swift (1.2.8):
- CryptoSwift
- EncryptingSwift (1.0.0):
- Bip39.swift (~> 0.1.1)
- CommonSwift (~> 1.0.0)
- ed25519swift (~> 1.2.8)
- HashingSwift (~> 1.0.0)
- secp256k1.swift (~> 0.1.4)
- Sr25519 (~> 0.1.3)
- UncommonCrypto (~> 0.1.3)
- Bip39.swift (= 0.1.1)
- CommonSwift (= 1.0.0)
- ed25519swift (= 1.2.8)
- HashingSwift (= 1.0.0)
- secp256k1.swift (= 0.1.4)
- Sr25519 (= 0.1.3)
- UncommonCrypto (= 0.1.3)
- HashingSwift (1.0.0):
- Base58Swift (~> 2.1.10)
- Blake2 (~> 0.1.2)
Expand Down Expand Up @@ -83,7 +83,7 @@ SPEC CHECKSUMS:
CommonSwift: ad350f0e06c040e5cb660cd7154f947851c73fbd
CryptoSwift: 562f8eceb40e80796fffc668b0cad9313284cfa6
ed25519swift: 32845b4d73fdd3598d6334972a62f463314de730
EncryptingSwift: ceaa2f0f36295835b8f1dc7c80e5c50d2dfe6c88
EncryptingSwift: d6ea33bacc1593872ca998ef9f08c66221b0d9cd
HashingSwift: d97c9d264e558e471b15d4c65773104c587a9b4c
keccak.c: 859583afdaccb4e4fcc0f0096064d101580313f4
secp256k1.swift: a7e7a214f6db6ce5db32cc6b2b45e5c4dd633634
Expand All @@ -93,4 +93,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 44f1de9fff37130314c674a1eb0521ca0421b097

COCOAPODS: 1.11.3
COCOAPODS: 1.12.1
122 changes: 122 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
"pins" : [
{
"identity" : "base58swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/keefertaylor/Base58Swift.git",
"state" : {
"revision" : "c689eadcc3256170a9ed709f0c9553efeb7f4fe4",
"version" : "2.1.10"
}
},
{
"identity" : "bigint",
"kind" : "remoteSourceControl",
"location" : "https://github.com/attaswift/BigInt.git",
"state" : {
"revision" : "19f5e8a48be155e34abb98a2bcf4a343316f0343",
"version" : "5.0.0"
}
},
{
"identity" : "bip39.swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/tesseract-one/Bip39.swift.git",
"state" : {
"revision" : "ac728b82520e93a17deb1c2af2c9c952274db703",
"version" : "0.1.1"
}
},
{
"identity" : "blake2.swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/tesseract-one/Blake2.swift.git",
"state" : {
"revision" : "106f68231100021e1f745779e241f81a065ad0de",
"version" : "0.1.2"
}
},
{
"identity" : "common-swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/sublabdev/common-swift",
"state" : {
"revision" : "28234aeec57ce2ae96faa19afa5c8264abf69afd",
"version" : "1.0.0"
}
},
{
"identity" : "cryptoswift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/krzyzanowskim/CryptoSwift.git",
"state" : {
"revision" : "eee9ad754926c40a0f7e73f152357d37b119b7fa",
"version" : "1.7.1"
}
},
{
"identity" : "ed25519swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pebble8888/ed25519swift.git",
"state" : {
"revision" : "1e821f5516049f5b83aca8cb3b982910cf8c028c",
"version" : "1.2.8"
}
},
{
"identity" : "hashing-swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/sublabdev/hashing-swift.git",
"state" : {
"revision" : "3bae0189d56b17dfc93098754196b029c10403ff",
"version" : "1.0.0"
}
},
{
"identity" : "keccak-swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/sublabdev/keccak-swift.git",
"state" : {
"revision" : "e26c87a262658bff240486ef3b0d47d30e8f0641",
"version" : "1.0.0"
}
},
{
"identity" : "secp256k1.swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/Boilertalk/secp256k1.swift.git",
"state" : {
"revision" : "823281fe9def21b384099b72a9a53ca988317b20",
"version" : "0.1.4"
}
},
{
"identity" : "sr25519.swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/tesseract-one/Sr25519.swift.git",
"state" : {
"revision" : "d611e002653f4538c3df8feb0fa6e5dd59238f45",
"version" : "0.1.3"
}
},
{
"identity" : "uncommoncrypto.swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/tesseract-one/UncommonCrypto.swift.git",
"state" : {
"revision" : "e089407582e1f2d81dc11ba167362742422b8979",
"version" : "0.1.3"
}
},
{
"identity" : "xxhash-swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/daisuke-t-jp/xxHash-Swift",
"state" : {
"revision" : "e86a07ab4867f81481d430e1370a5ec97b6e3359",
"version" : "1.1.1"
}
}
],
"version" : 2
}
44 changes: 44 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// swift-tools-version:5.6

import PackageDescription

let package = Package(
name: "EncryptingSwift",
platforms: [
.iOS(.v13),
.macOS(.v10_15),
.watchOS(.v6),
.tvOS(.v13)
],
products: [
.library(
name: "EncryptingSwift",
targets: ["EncryptingSwift"]
),
],
dependencies: [
.package(url: "https://github.com/sublabdev/common-swift.git", exact: "1.0.0"),
.package(url: "https://github.com/sublabdev/hashing-swift.git", exact: "1.0.0"),
.package(url: "https://github.com/Boilertalk/secp256k1.swift.git", exact: "0.1.4"),
.package(url: "https://github.com/pebble8888/ed25519swift.git", exact: "1.2.8"),
.package(url: "https://github.com/tesseract-one/Sr25519.swift.git", exact: "0.1.3"),
.package(url: "https://github.com/tesseract-one/Bip39.swift.git", exact: "0.1.1")
],
targets: [
.target(
name: "EncryptingSwift",
dependencies: [
.productItem(name: "CommonSwift", package: "common-swift"),
.productItem(name: "HashingSwift", package: "hashing-swift"),
.productItem(name: "secp256k1", package: "secp256k1.swift"),
.productItem(name: "ed25519swift", package: "ed25519swift"),
.productItem(name: "Sr25519", package: "Sr25519.swift"),
.productItem(name: "Bip39", package: "Bip39.swift"),
]
)
],
swiftLanguageVersions: [
.v5
]
)

12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,24 @@ Our goal is to have more developers to come into the world of development of cli

## Installation

### CocoaPods

[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`:

```ruby
pod 'EncryptingSwift'
```

### Swift Package Manager

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.

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`.

```swift
.package(url: "https://github.com/sublabdev/encrypting-swift.git", from: "1.0.0")
```

## Documentation

- Our GitBook: [https://docs.sublab.dev/swift-libraries/encrypting-library](https://docs.sublab.dev/swift-libraries/encrypting-library)
Expand Down
File renamed without changes.

0 comments on commit bad37b5

Please sign in to comment.