Skip to content

Commit 3a45c08

Browse files
author
Alex Oakley
authored
Merge pull request #2 from sublabdev/dev
Added SPM Support
2 parents 34aacc2 + 0fc1e30 commit 3a45c08

File tree

301 files changed

+83
-8
lines changed

Some content is hidden

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

301 files changed

+83
-8
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
# macOS
27
.DS_Store
38

Example/Podfile.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ PODS:
33
- CommonSwift (1.0.0):
44
- BigInt (~> 5.0.0)
55
- ScaleCodecSwift (1.0.0):
6-
- BigInt (~> 5.0.0)
7-
- CommonSwift
6+
- BigInt (= 5.0.0)
7+
- CommonSwift (= 1.0.0)
88

99
DEPENDENCIES:
1010
- BigInt
@@ -30,8 +30,8 @@ CHECKOUT OPTIONS:
3030
SPEC CHECKSUMS:
3131
BigInt: 74b4d88367b0e819d9f77393549226d36faeb0d8
3232
CommonSwift: ad350f0e06c040e5cb660cd7154f947851c73fbd
33-
ScaleCodecSwift: 2fa35cbc70c5634fdc0960cc6c712e917b2c688c
33+
ScaleCodecSwift: cf981d2886dea6b0b253fe3a7b1e2cd4a665cd8e
3434

3535
PODFILE CHECKSUM: 1a95faa77d7a036005bcfe079d3f5c22b423b9c7
3636

37-
COCOAPODS: 1.11.3
37+
COCOAPODS: 1.12.1

Package.resolved

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"pins" : [
3+
{
4+
"identity" : "bigint",
5+
"kind" : "remoteSourceControl",
6+
"location" : "https://github.com/attaswift/BigInt.git",
7+
"state" : {
8+
"revision" : "19f5e8a48be155e34abb98a2bcf4a343316f0343",
9+
"version" : "5.0.0"
10+
}
11+
},
12+
{
13+
"identity" : "common-swift",
14+
"kind" : "remoteSourceControl",
15+
"location" : "https://github.com/sublabdev/common-swift.git",
16+
"state" : {
17+
"revision" : "28234aeec57ce2ae96faa19afa5c8264abf69afd",
18+
"version" : "1.0.0"
19+
}
20+
}
21+
],
22+
"version" : 2
23+
}

Package.swift

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// swift-tools-version:5.6
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "ScaleCodecSwift",
7+
platforms: [
8+
.iOS(.v13),
9+
.macOS(.v10_15),
10+
.watchOS(.v6),
11+
.tvOS(.v13)
12+
],
13+
products: [
14+
.library(
15+
name: "ScaleCodecSwift",
16+
targets: ["ScaleCodecSwift"]
17+
),
18+
],
19+
dependencies: [
20+
.package(url: "https://github.com/sublabdev/common-swift.git", exact: "1.0.0")
21+
],
22+
targets: [
23+
.target(
24+
name: "ScaleCodecSwift",
25+
dependencies: [
26+
.productItem(name: "CommonSwift", package: "common-swift")
27+
]
28+
)
29+
],
30+
swiftLanguageVersions: [
31+
.v5
32+
]
33+
)
34+

README.md

+13-1

ScaleCodecSwift.podspec

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ Pod::Spec.new do |s|
77
s.author = { 'Substrate Laboratory' => 'info@sublab.dev' }
88
s.source = { :git => 'https://github.com/sublabdev/scale-codec-swift.git', :tag => s.version.to_s }
99
s.ios.deployment_target = '13.0'
10-
s.source_files = 'ScaleCodecSwift/Classes/**/*'
11-
s.dependency 'CommonSwift', '~> 1.0.0'
12-
s.dependency 'BigInt', '~> 5.0.0'
10+
s.osx.deployment_target = '10.15'
11+
s.source_files = 'Sources/ScaleCodecSwift/**/*'
12+
s.dependency 'CommonSwift', '1.0.0'
13+
s.dependency 'BigInt', '5.0.0'
1314
end

ScaleCodecSwift/Assets/.gitkeep

Whitespace-only changes.

ScaleCodecSwift/Classes/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)