Skip to content

Commit f1e11c2

Browse files
author
Alex Oakley
authored
Merge pull request #6 from sublabdev/dev
Added SPM Support
2 parents 00d404d + a76f5a9 commit f1e11c2

File tree

76 files changed

+212
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+212
-14
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

38
# Xcode

Example/Podfile.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ PODS:
3939
- Sr25519/CSr25519
4040
- Sr25519/Helpers
4141
- SubstrateClientSwift (1.0.0):
42-
- BigInt (~> 5.0.0)
43-
- CommonSwift (~> 1.0.0)
44-
- EncryptingSwift (~> 1.0.0)
45-
- HashingSwift (~> 1.0.0)
46-
- ScaleCodecSwift (~> 1.0.0)
42+
- BigInt (= 5.0.0)
43+
- CommonSwift (= 1.0.0)
44+
- EncryptingSwift (= 1.0.0)
45+
- HashingSwift (= 1.0.0)
46+
- ScaleCodecSwift (= 1.0.0)
4747
- UncommonCrypto (0.1.3)
4848
- xxHash-Swift (1.1.1)
4949

@@ -113,10 +113,10 @@ SPEC CHECKSUMS:
113113
ScaleCodecSwift: 2fa35cbc70c5634fdc0960cc6c712e917b2c688c
114114
secp256k1.swift: a7e7a214f6db6ce5db32cc6b2b45e5c4dd633634
115115
Sr25519: 87a974e2d714113af55e1d7e5cef1b82864a57bd
116-
SubstrateClientSwift: af132c82e31d514a0623a3011c12344b972cd7bb
116+
SubstrateClientSwift: 6f33ae8aa9cd225576cc1fbd6bdbc3e92cbfab4a
117117
UncommonCrypto: 8e6276bd3def28cdbd55966926c38c37ea1c9af5
118118
xxHash-Swift: 13ebcbfc48658a5acf3777751e64b18c0f110d25
119119

120120
PODFILE CHECKSUM: d310bb1702686e171f710a34c73db16dc8901246
121121

122-
COCOAPODS: 1.11.3
122+
COCOAPODS: 1.12.1

Package.resolved

Lines changed: 140 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: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// swift-tools-version:5.6
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "SubstrateClientSwift",
7+
platforms: [
8+
.iOS(.v13),
9+
.macOS(.v10_15),
10+
.watchOS(.v6),
11+
.tvOS(.v13)
12+
],
13+
products: [
14+
.library(
15+
name: "SubstrateClientSwift",
16+
targets: ["SubstrateClientSwift"]
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/sublabdev/encrypting-swift.git", exact: "1.0.0"),
23+
.package(url: "https://github.com/sublabdev/scale-codec-swift.git", exact: "1.0.0")
24+
],
25+
targets: [
26+
.target(
27+
name: "SubstrateClientSwift",
28+
dependencies: [
29+
.productItem(name: "CommonSwift", package: "common-swift"),
30+
.productItem(name: "HashingSwift", package: "hashing-swift"),
31+
.productItem(name: "EncryptingSwift", package: "encrypting-swift"),
32+
.productItem(name: "ScaleCodecSwift", package: "scale-codec-swift")
33+
]
34+
)
35+
],
36+
swiftLanguageVersions: [
37+
.v5
38+
]
39+
)
40+

README.md

Lines changed: 13 additions & 1 deletion

0 commit comments

Comments
 (0)