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

+5
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

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

+140
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
{
2+
"pins" : [
3+
{
4+
"identity" : "base58swift",
5+
"kind" : "remoteSourceControl",
6+
"location" : "https://github.com/keefertaylor/Base58Swift.git",
7+
"state" : {
8+
"revision" : "c689eadcc3256170a9ed709f0c9553efeb7f4fe4",
9+
"version" : "2.1.10"
10+
}
11+
},
12+
{
13+
"identity" : "bigint",
14+
"kind" : "remoteSourceControl",
15+
"location" : "https://github.com/attaswift/BigInt.git",
16+
"state" : {
17+
"revision" : "19f5e8a48be155e34abb98a2bcf4a343316f0343",
18+
"version" : "5.0.0"
19+
}
20+
},
21+
{
22+
"identity" : "bip39.swift",
23+
"kind" : "remoteSourceControl",
24+
"location" : "https://github.com/tesseract-one/Bip39.swift.git",
25+
"state" : {
26+
"revision" : "ac728b82520e93a17deb1c2af2c9c952274db703",
27+
"version" : "0.1.1"
28+
}
29+
},
30+
{
31+
"identity" : "blake2.swift",
32+
"kind" : "remoteSourceControl",
33+
"location" : "https://github.com/tesseract-one/Blake2.swift.git",
34+
"state" : {
35+
"revision" : "106f68231100021e1f745779e241f81a065ad0de",
36+
"version" : "0.1.2"
37+
}
38+
},
39+
{
40+
"identity" : "common-swift",
41+
"kind" : "remoteSourceControl",
42+
"location" : "https://github.com/sublabdev/common-swift.git",
43+
"state" : {
44+
"revision" : "28234aeec57ce2ae96faa19afa5c8264abf69afd",
45+
"version" : "1.0.0"
46+
}
47+
},
48+
{
49+
"identity" : "cryptoswift",
50+
"kind" : "remoteSourceControl",
51+
"location" : "https://github.com/krzyzanowskim/CryptoSwift.git",
52+
"state" : {
53+
"revision" : "eee9ad754926c40a0f7e73f152357d37b119b7fa",
54+
"version" : "1.7.1"
55+
}
56+
},
57+
{
58+
"identity" : "ed25519swift",
59+
"kind" : "remoteSourceControl",
60+
"location" : "https://github.com/pebble8888/ed25519swift.git",
61+
"state" : {
62+
"revision" : "1e821f5516049f5b83aca8cb3b982910cf8c028c",
63+
"version" : "1.2.8"
64+
}
65+
},
66+
{
67+
"identity" : "encrypting-swift",
68+
"kind" : "remoteSourceControl",
69+
"location" : "https://github.com/sublabdev/encrypting-swift.git",
70+
"state" : {
71+
"revision" : "bad37b585c90b0565042b0d158ee3f75d01a224c",
72+
"version" : "1.0.0"
73+
}
74+
},
75+
{
76+
"identity" : "hashing-swift",
77+
"kind" : "remoteSourceControl",
78+
"location" : "https://github.com/sublabdev/hashing-swift.git",
79+
"state" : {
80+
"revision" : "3bae0189d56b17dfc93098754196b029c10403ff",
81+
"version" : "1.0.0"
82+
}
83+
},
84+
{
85+
"identity" : "keccak-swift",
86+
"kind" : "remoteSourceControl",
87+
"location" : "https://github.com/sublabdev/keccak-swift.git",
88+
"state" : {
89+
"revision" : "e26c87a262658bff240486ef3b0d47d30e8f0641",
90+
"version" : "1.0.0"
91+
}
92+
},
93+
{
94+
"identity" : "scale-codec-swift",
95+
"kind" : "remoteSourceControl",
96+
"location" : "https://github.com/sublabdev/scale-codec-swift.git",
97+
"state" : {
98+
"revision" : "3a45c082ee10ecd5f213436c64212353bcd6b883",
99+
"version" : "1.0.0"
100+
}
101+
},
102+
{
103+
"identity" : "secp256k1.swift",
104+
"kind" : "remoteSourceControl",
105+
"location" : "https://github.com/Boilertalk/secp256k1.swift.git",
106+
"state" : {
107+
"revision" : "823281fe9def21b384099b72a9a53ca988317b20",
108+
"version" : "0.1.4"
109+
}
110+
},
111+
{
112+
"identity" : "sr25519.swift",
113+
"kind" : "remoteSourceControl",
114+
"location" : "https://github.com/tesseract-one/Sr25519.swift.git",
115+
"state" : {
116+
"revision" : "d611e002653f4538c3df8feb0fa6e5dd59238f45",
117+
"version" : "0.1.3"
118+
}
119+
},
120+
{
121+
"identity" : "uncommoncrypto.swift",
122+
"kind" : "remoteSourceControl",
123+
"location" : "https://github.com/tesseract-one/UncommonCrypto.swift.git",
124+
"state" : {
125+
"revision" : "e089407582e1f2d81dc11ba167362742422b8979",
126+
"version" : "0.1.3"
127+
}
128+
},
129+
{
130+
"identity" : "xxhash-swift",
131+
"kind" : "remoteSourceControl",
132+
"location" : "https://github.com/daisuke-t-jp/xxHash-Swift",
133+
"state" : {
134+
"revision" : "e86a07ab4867f81481d430e1370a5ec97b6e3359",
135+
"version" : "1.1.1"
136+
}
137+
}
138+
],
139+
"version" : 2
140+
}

Package.swift

+40
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

+13-1

SubstrateClientSwift.podspec

+7-6
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ Pod::Spec.new do |s|
77
s.author = { 'Substrate Laboratory LLC' => 'info@sublab.dev' }
88
s.source = { :git => 'https://github.com/sublabdev/substrate-client-swift.git', :tag => s.version.to_s }
99
s.ios.deployment_target = '13.0'
10-
s.source_files = 'SubstrateClientSwift/Classes/**/*'
11-
s.dependency 'CommonSwift', '~> 1.0.0'
12-
s.dependency 'HashingSwift', '~> 1.0.0'
13-
s.dependency 'EncryptingSwift', '~> 1.0.0'
14-
s.dependency 'ScaleCodecSwift', '~> 1.0.0'
15-
s.dependency 'BigInt', '~> 5.0.0'
10+
s.osx.deployment_target = '10.15'
11+
s.source_files = 'Sources/SubstrateClientSwift/**/*'
12+
s.dependency 'CommonSwift', '1.0.0'
13+
s.dependency 'HashingSwift', '1.0.0'
14+
s.dependency 'EncryptingSwift', '1.0.0'
15+
s.dependency 'ScaleCodecSwift', '1.0.0'
16+
s.dependency 'BigInt', '5.0.0'
1617
end

SubstrateClientSwift/Assets/.gitkeep

Whitespace-only changes.

SubstrateClientSwift/Classes/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)