Bitmark SDK for Swift
The official Bitmark SDK for Swift
Setting Up
Prerequisites
- iOS 11.0+
- Xcode 10.0+
- Swift 4.0+
Installing
CocoaPods
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
$ gem install cocoapods
CocoaPods 1.1+ is required to build BitmarkSDK 2.0+.
To integrate BitmarkSDK into your Xcode project using CocoaPods, specify it in your Podfile
:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '11.0'
use_frameworks!
target '<Your Target Name>' do
pod 'BitmarkSDK'
# or
pod 'BitmarkSDK/RxSwift'
end
Then, run the following command:
$ pod install
Carthage
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with Homebrew using the following command:
$ brew update
$ brew install carthage
To integrate BitmarkSDK into your Xcode project using Carthage, specify it in your Cartfile
:
github "bitmark-inc/bitmark-sdk-swift" ~> 2.2.0
Run carthage update
to build the framework and drag the built BitmarkSDK.framework
into your Xcode project.
Swift Package Manager
Comming soon....
Importing
import BitmarkSDK
Extensions
RxSwift
RxSwift
extension provides extension to query records / register assets / issue / transfer in ReactiveX way.
Documentation
Please refer to our SDK Document.
Sample code
This is a sample project. It shows how to use Bitmark SDK for Swift.
Opening Issues
If you encounter a bug with the Bitmark SDK for Swift we would like to hear from you. Search the existing issues and try to make sure your problem doesn’t exist yet before opening a new issue. It’s helpful if you could provide the version of the SDK, Swift and OS you’re using. Please include a stack trace and reproducible case if possible.
License
Copyright (c) 2014-2019 Bitmark Inc ([email protected]).
Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.