homebrew
$ git submodule update --init
Install a node version manager such as nvm or n.
# use node v7.9.0
$ npm install -g n
$ n v7.9.0
# use npm 5.6.0
$ npm install -g npm@5.6.0
# checkout ios branch
$ cd Submodules/My-Wallet-V3
$ git checkout ios
$ cd ../..
# install and build js files
$ sh scripts/install-js.sh && sh scripts/build-js.sh
$ cd ./Submodules/OpenSSL-for-iPhone
$ ./build-libssl.sh
$ make install
Install a Ruby version manager such as rbenv.
$ brew install rbenv
$ rbenv init
Install a recent ruby version:
$ rbenv install -l
2.6.3
...
$ rbenv install 2.6.3
$ rbenv rehash
Then make that version either the local
or global
version, e.g.:
$ rbenv global 2.6.3
Then the project ruby dependencies (cocoapods
, fastlane
, etc.):
$ bundle install
$ bundle exec pod install
#create a directory named Config in the root
$ mkdir Config
#create the config file
$ vi Production.xcconfig
#write the following in Production.xcconfig
#include "../Pods/Target Support Files/Pods-Blockchain/Pods-Blockchain.debug production.xcconfig"
APP_NAME = Blockchain
APP_ICON = AppIcon
API_URL = api.blockchain.info
WALLET_SERVER = blockchain.info
WEBSOCKET_SERVER = ws.blockchain.info/inv
WEBSOCKET_SERVER_BCH = ws.blockchain.info/bch/inv
WEBSOCKET_SERVER_ETH = ws.blockchain.info/eth/inv
BUY_WEBVIEW_URL = blockchain.info/wallet/#/intermediate
LOCAL_CERTIFICATE_FILE = blockchain
FABRIC_API_KEY = <API_KEY>
FABRIC_SECRET_KEY = <SECRET_KEY>
GCC_PREPROCESSOR_DEFINITIONS = DEBUG=1 COCOAPODS=1
OTHER_SWIFT_FLAGS = -DDEBUG
RETAIL_CORE_URL = api.blockchain.info/nabu-gateway
RETAIL_CORE_SOCKET_URL = ws.blockchain.info/nabu-gateway/markets/quotes
Create the following directories:
./Blockchain/Firebase/Dev
./Blockchain/Firebase/Staging
./Blockchain/Firebase/Prod
In each directory, you'll need to copy/paste the environment-specific GoogleService-Info.plist files that are in `wallet-ios-credentials` repository.
$ open Blockchain.xcworkspace
cmd-r
If you would like to contribute code to the Blockchain iOS app, you can do so by forking this repository, making the changes on your fork, and sending a pull request back to this repository.
When submitting a pull request, please make sure that your code compiles correctly and all tests in the BlockchainTests
target passes. Be as detailed as possible in the pull request’s summary by describing the problem you solved and your proposed solution.
Additionally, for your change to be included in the subsequent release’s change log, make sure that your pull request’s title and commit message is prefixed using one of the changelog types.
The pull request and commit message format should be:
<changelog type>(<component>): <brief description>
For example:
fix(Create Wallet): Fix email validation
For a full list of supported types, see .changelogrc.
Source Code License: LGPL v3
Artwork & images remain Copyright Blockchain Luxembourg S.A.R.L
Security issues can be reported to us in the following venues:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。