Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
14 changes: 7 additions & 7 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ PODS:
- Sr25519/CSr25519
- Sr25519/Helpers
- SubstrateClientSwift (1.0.0):
- BigInt (~> 5.0.0)
- CommonSwift (~> 1.0.0)
- EncryptingSwift (~> 1.0.0)
- HashingSwift (~> 1.0.0)
- ScaleCodecSwift (~> 1.0.0)
- BigInt (= 5.0.0)
- CommonSwift (= 1.0.0)
- EncryptingSwift (= 1.0.0)
- HashingSwift (= 1.0.0)
- ScaleCodecSwift (= 1.0.0)
- UncommonCrypto (0.1.3)
- xxHash-Swift (1.1.1)

Expand Down Expand Up @@ -113,10 +113,10 @@ SPEC CHECKSUMS:
ScaleCodecSwift: 2fa35cbc70c5634fdc0960cc6c712e917b2c688c
secp256k1.swift: a7e7a214f6db6ce5db32cc6b2b45e5c4dd633634
Sr25519: 87a974e2d714113af55e1d7e5cef1b82864a57bd
SubstrateClientSwift: af132c82e31d514a0623a3011c12344b972cd7bb
SubstrateClientSwift: 6f33ae8aa9cd225576cc1fbd6bdbc3e92cbfab4a
UncommonCrypto: 8e6276bd3def28cdbd55966926c38c37ea1c9af5
xxHash-Swift: 13ebcbfc48658a5acf3777751e64b18c0f110d25

PODFILE CHECKSUM: d310bb1702686e171f710a34c73db16dc8901246

COCOAPODS: 1.11.3
COCOAPODS: 1.12.1
140 changes: 140 additions & 0 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// swift-tools-version:5.6

import PackageDescription

let package = Package(
name: "SubstrateClientSwift",
platforms: [
.iOS(.v13),
.macOS(.v10_15),
.watchOS(.v6),
.tvOS(.v13)
],
products: [
.library(
name: "SubstrateClientSwift",
targets: ["SubstrateClientSwift"]
),
],
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/sublabdev/encrypting-swift.git", exact: "1.0.0"),
.package(url: "https://github.com/sublabdev/scale-codec-swift.git", exact: "1.0.0")
],
targets: [
.target(
name: "SubstrateClientSwift",
dependencies: [
.productItem(name: "CommonSwift", package: "common-swift"),
.productItem(name: "HashingSwift", package: "hashing-swift"),
.productItem(name: "EncryptingSwift", package: "encrypting-swift"),
.productItem(name: "ScaleCodecSwift", package: "scale-codec-swift")
]
)
],
swiftLanguageVersions: [
.v5
]
)

14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

</div>

[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/substrate-client-swift)](https://img.shields.io/cocoapods/v/substrate-client-swift)
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/SubstrateClientSwift)](https://img.shields.io/cocoapods/v/SubstrateClientSwift)
[![Swift](https://img.shields.io/badge/Swift-5.0.0-orange?style=flat-square)](https://img.shields.io/badge/Swift-5.0.0-Orange?style=flat-square)
[![Telegram channel](https://img.shields.io/badge/chat-telegram-green.svg?logo=telegram)](https://t.me/sublabsupport)
[![GitHub License](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0)
Expand All @@ -28,12 +28,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 'SubstrateClientSwift'
```

### 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 SubstrateClientSwift as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.

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

## Usage Examples

Usage examples can be found in the bellow link:
Expand Down
13 changes: 7 additions & 6 deletions SubstrateClientSwift.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ Pod::Spec.new do |s|
s.author = { 'Substrate Laboratory LLC' => 'info@sublab.dev' }
s.source = { :git => 'https://github.com/sublabdev/substrate-client-swift.git', :tag => s.version.to_s }
s.ios.deployment_target = '13.0'
s.source_files = 'SubstrateClientSwift/Classes/**/*'
s.dependency 'CommonSwift', '~> 1.0.0'
s.dependency 'HashingSwift', '~> 1.0.0'
s.dependency 'EncryptingSwift', '~> 1.0.0'
s.dependency 'ScaleCodecSwift', '~> 1.0.0'
s.dependency 'BigInt', '~> 5.0.0'
s.osx.deployment_target = '10.15'
s.source_files = 'Sources/SubstrateClientSwift/**/*'
s.dependency 'CommonSwift', '1.0.0'
s.dependency 'HashingSwift', '1.0.0'
s.dependency 'EncryptingSwift', '1.0.0'
s.dependency 'ScaleCodecSwift', '1.0.0'
s.dependency 'BigInt', '5.0.0'
end
Empty file.
Empty file.