-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5c7a689
Showing
10 changed files
with
247 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
Created by http://www.gitignore.io | ||
|
||
### OSX ### | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear on external disk | ||
.Spotlight-V100 | ||
.Trashes | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
### Objective-C ### | ||
# Xcode | ||
# | ||
build/ | ||
*.pbxuser | ||
!default.pbxuser | ||
*.mode1v3 | ||
!default.mode1v3 | ||
*.mode2v3 | ||
!default.mode2v3 | ||
*.perspectivev3 | ||
!default.perspectivev3 | ||
xcuserdata | ||
*.xccheckout | ||
*.moved-aside | ||
DerivedData | ||
*.hmap | ||
*.ipa | ||
*.xcuserstate | ||
|
||
# CocoaPods | ||
Pods/ | ||
|
||
# Carthage | ||
Carthage | ||
Romefile | ||
|
||
#Fastlane | ||
fastlane/report.xml | ||
fastlane/Preview.html | ||
fastlane/screenshots | ||
fastlane/test_output | ||
screenshots | ||
|
||
#build output | ||
/outputs | ||
|
||
# Playgrounds | ||
timeline.xctimeline | ||
playground.xcworkspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# .slather.yml | ||
|
||
coverage_service: cobertura_xml | ||
xcodeproj: Base58Swift.xcodeproj | ||
scheme: Base58Swift.xcodeproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
disabled_rules: | ||
- file_length | ||
- function_parameter_count | ||
- function_body_length | ||
- type_body_length | ||
- xctfail_message | ||
|
||
opt_in_rules: | ||
- attributes | ||
- closure_end_indentation | ||
- closure_spacing | ||
- empty_count | ||
- empty_string | ||
- explicit_init | ||
- file_header | ||
- first_where | ||
- implicitly_unwrapped_optional | ||
- literal_expression_end_indentation | ||
- multiline_arguments | ||
- multiline_arguments_brackets | ||
- multiline_literal_brackets | ||
- multiline_parameters | ||
- multiline_parameters_brackets | ||
- multiple_closures_with_trailing_closure | ||
- no_extension_access_modifier | ||
- number_separator | ||
- object_literal | ||
- operator_usage_whitespace | ||
- overridden_super_call | ||
- prohibited_super_call | ||
- redundant_nil_coalescing | ||
- sorted_imports | ||
- trailing_closure | ||
- vertical_parameter_alignment_on_call | ||
|
||
excluded: | ||
- Base58String/ | ||
- Carthage/ | ||
- Pods/ | ||
|
||
identifier_name: | ||
min_length: 1 | ||
|
||
file_header: | ||
required_pattern: Copyright Keefer Taylor, 2019 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
osx_image: xcode10 | ||
language: swift | ||
cache: | ||
directories: | ||
- Carthage | ||
env: | ||
secure: ink5jhbtR9aGbiVzcrPP+jBLtYKmZ61uxmXmqwqsyAZip2zbL/tktXdLaeNhUnlJHazZF156rOFe5DFSElFmNYvpSZrXJCVMxwWKB+MJWQ879LUk6W4W65jTvkXKZmMrrUqwkOTNNMq0ycfs5tx+eFJBzHd3Z93OX0oKwb44ZjC1NC05LGJfOlZQs+7IWYKXu0XKpZ/Zo+n4jGxMPEaQCMifz8ac8WVAgsgXs5R3ANrAd6AtBHZqNLu+NzGi5FQ2u7M1EERWo69qAmmHQYKB9aYyERi4cU6KD3XF8B89szR3pH41avfYFs+ZqenF7yAm0dN5UoLBqHA5s+yBQ1kzZbvcCunEU88XjgeRuzwTUfyTq8RIN+BNzaAwSCgu/fNMaFLOZjYAXK+gtVm2elx69maC6N+hKpZblmgUtmaOQyXzY3pVNXdqCqqqzIrqSyvqPuuNSzLxjVFJUW8ycYEfB4Iywcwl74IlxWJ58WpeCgMW3cVE4l4kxw+ZWoVniumpVlp69QtgwHloUosOzmzoIwLjgEm6uGZvr3DIKKXwLZACtq8Oj7uhm8iNV4sU5eS0w+b+VC6gYCxI4yOZHWhwtBG4QtrKlEvXC0Gjy4rIXN0JuKiAHLZKiCr0YuCmks2xXv2INNnJAIBVlJ7URVY4OSY+eqCiWUSobO8n48Zu7gk= | ||
before_install: | ||
- gem install slather | ||
- gem install cocoapods | ||
- brew update | ||
- brew outdated carthage || brew upgrade carthage | ||
- carthage bootstrap --platform iOS --cache-builds | ||
before_deploy: | ||
- carthage build --no-skip-current --platform iOS --cache-builds | ||
- carthage archive $FRAMEWORK_NAME | ||
after_deploy: | ||
- pod trunk push --skip-import-validation --skip-tests --allow-warnings | ||
script: | ||
- set -o pipefail && xcodebuild test -scheme Base58Swift -destination 'platform=iOS Simulator,name=iPhone | ||
XS,OS=12.0' ONLY_ACTIVE_ARCH=YES | xcpretty | ||
after_success: | ||
- slather | ||
- bash <(curl -s https://codecov.io/bash) | ||
deploy: | ||
provider: releases | ||
api_key: | ||
secure: md8YfrZO/5WKAPmiIInTk7oWtc/B5FmibnEfwXeCGiVa+0N6CtcJNdQYFmYCxEm7+JCPXBKakk2UFM0T1eOAKOvnwqkxy+xP1aAxvjAP+1hpt8OVGtkXdmemoXNdxoQq+qqGLtfVtr5cVdeL1sqnpfKOdUQeCZXYcy8LL3oOuMwh3jn9bZbctVYTs7L1UD/p8tEFTdfxLxropQ+u96mXb1kmVkqKwzU4Sro6D9opHaGW2aHIJF3CVVAELr/pICM14HwMCvqhpZ8q3z9FhIdFab9EaFGZE9c7w00q+2wUdl0uoQJ7oe2nCtCYJj6Hh7onRUyc81e/MepEdQHyD5jLGmKbPpPFdGM+BjtVUfdvPAzV5kAp88HuqBAn++BVm2cT4wtawsUFsC4lnfR+0vBAxFU69L7JhxT744bc+X58XS+UUBFcAJsYlDU579iZWP0xFzZHjy+2q8PzuB/2iqY1n3aeSkkrHt7meAlmepzQUdJIM3BqUfibW/fqL/A5uhSOCHeaH70r24CkBlaUlQcOWUv5V48j99cae9vlNE/PJ68cC94LVz1t7jDM98sU6dCs7vgkPkYI4QzBKbnqCRk0MdvdwwATadmhjOJKtmJxm8tDmPAf4Gp9tLzCuDaokCd2HJpWUotmHy1DkM6+xGX4i3s21aU0U81bgQgYJFV1BWk= | ||
file: "$FRAMEWORK_NAME.framework.zip" | ||
skip_cleanup: true | ||
on: | ||
repo: keefertaylor/Base58Swift | ||
tags: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Pod::Spec.new do |s| | ||
s.name = "Base58Swift" | ||
s.version = "1.0.0" | ||
s.summary = "TezosKit provides a Swift based toolchain for interacting with the Tezos blockchain" | ||
s.description = <<-DESC | ||
TezosKit provides utilities for interacting with the Tezos Blockchain over an RPC API. | ||
DESC | ||
|
||
s.homepage = "https://github.com/keefertaylor/Base58Swift" | ||
s.license = { :type => "MIT", :file => "LICENSE" } | ||
s.author = { "Keefer Taylor" => "[email protected]" } | ||
s.source = { :git => "https://github.com/keefertaylor/Base58Swift.git", :tag => "1.0.0" } | ||
s.source_files = "TezosKit/**/*.swift", "Base58String/*.swift" | ||
s.swift_version = "4.2" | ||
s.ios.deployment_target = "8.0" | ||
s.osx.deployment_target = "10.10" | ||
|
||
s.dependency "BigInt", "~> 3.1" | ||
|
||
s.test_spec "Tests" do |test_spec| | ||
test_spec.source_files = "Tests/*.swift" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github "attaswift/BigInt" ~> 3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
gem 'cocoapods' | ||
gem 'slather' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2019 Keefer Taylor | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Base58Swift | ||
|
||
[](https://travis-ci.org/keefertaylor/Base58Swift) | ||
[](https://codecov.io/gh/keefertaylor/Base58Swift) | ||
[](https://github.com/Carthage/Carthage) | ||
[](http://cocoapods.org/pods/Base58Swift) | ||
[](http://cocoapods.org/pods/Base58Swift) | ||
|
||
Base58Swift is a Swift library that implements Base58 encodings for crypto currencies. It is based off of [go-base-58](https://github.com/jbenet/go-base58). | ||
|
||
Donations help me find time to work on Base58Swift. If you find the library useful, please consider donating to support ongoing develoment. | ||
|
||
|Currency| Address | | ||
|---------|---| | ||
| __Tezos__ | tz1SNXT8yZCwTss2YcoFi3qbXvTZiCojx833 | | ||
| __Bitcoin__ | 1CdPoF9cvw3YEiuRCHxdsGpvb5tSUYBBo | | ||
| __Bitcoin Cash__ | qqpr9are9gzs5r0q7hy3gdehj3w074pyqsrhpdmxg6 | | ||
|
||
|
||
## Installation | ||
|
||
### CocoaPods | ||
Base58Swift supports installation via CocoaPods. You can depened on Base58Swift by adding the following to your Podfile: | ||
|
||
``` | ||
pod "Base58Swift" | ||
``` | ||
|
||
### Carthage | ||
|
||
If you use [Carthage](https://github.com/Carthage/Carthage) to manage your dependencies, simply add | ||
Base58Swift to your `Cartfile`: | ||
|
||
``` | ||
github "keefertaylor/Base58Swift" | ||
``` | ||
|
||
If you use Carthage to build your dependencies, make sure you have added `BigInt.framework`, to the "_Linked Frameworks and Libraries_" section of your target, and have included them in your Carthage framework copying build phase. | ||
|
||
## Usage | ||
|
||
TODO: Write this section. | ||
|
||
## Contributing | ||
|
||
I am happy to accept pull requests. | ||
|
||
## License | ||
|
||
MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# List of ignore directories for code coverage. | ||
ignore: | ||
- "Tests" |