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
The table of contents is too big for display.
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

# macOS
.DS_Store

Expand Down
8 changes: 4 additions & 4 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ PODS:
- CommonSwift (1.0.0):
- BigInt (~> 5.0.0)
- ScaleCodecSwift (1.0.0):
- BigInt (~> 5.0.0)
- CommonSwift
- BigInt (= 5.0.0)
- CommonSwift (= 1.0.0)

DEPENDENCIES:
- BigInt
Expand All @@ -30,8 +30,8 @@ CHECKOUT OPTIONS:
SPEC CHECKSUMS:
BigInt: 74b4d88367b0e819d9f77393549226d36faeb0d8
CommonSwift: ad350f0e06c040e5cb660cd7154f947851c73fbd
ScaleCodecSwift: 2fa35cbc70c5634fdc0960cc6c712e917b2c688c
ScaleCodecSwift: cf981d2886dea6b0b253fe3a7b1e2cd4a665cd8e

PODFILE CHECKSUM: 1a95faa77d7a036005bcfe079d3f5c22b423b9c7

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

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

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

import PackageDescription

let package = Package(
name: "ScaleCodecSwift",
platforms: [
.iOS(.v13),
.macOS(.v10_15),
.watchOS(.v6),
.tvOS(.v13)
],
products: [
.library(
name: "ScaleCodecSwift",
targets: ["ScaleCodecSwift"]
),
],
dependencies: [
.package(url: "https://github.com/sublabdev/common-swift.git", exact: "1.0.0")
],
targets: [
.target(
name: "ScaleCodecSwift",
dependencies: [
.productItem(name: "CommonSwift", package: "common-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/scale-codec-swift)](https://img.shields.io/cocoapods/v/scale-codec-swift)
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/ScaleCodecSwift)](https://img.shields.io/cocoapods/v/ScaleCodecSwift)
[![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 @@ -30,12 +30,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 'ScaleCodecSwift'
```

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

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

## Documentation

- Our GitBook: [https://docs.sublab.dev/swift-libraries/scale-codec-library](https://docs.sublab.dev/swift-libraries/scale-codec-library)
Expand Down
7 changes: 4 additions & 3 deletions ScaleCodecSwift.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ Pod::Spec.new do |s|
s.author = { 'Substrate Laboratory' => 'info@sublab.dev' }
s.source = { :git => 'https://github.com/sublabdev/scale-codec-swift.git', :tag => s.version.to_s }
s.ios.deployment_target = '13.0'
s.source_files = 'ScaleCodecSwift/Classes/**/*'
s.dependency 'CommonSwift', '~> 1.0.0'
s.dependency 'BigInt', '~> 5.0.0'
s.osx.deployment_target = '10.15'
s.source_files = 'Sources/ScaleCodecSwift/**/*'
s.dependency 'CommonSwift', '1.0.0'
s.dependency 'BigInt', '5.0.0'
end
Empty file removed ScaleCodecSwift/Assets/.gitkeep
Empty file.
Empty file removed ScaleCodecSwift/Classes/.gitkeep
Empty file.
Loading