Bitcoin client app
Currently, Coin Ninja does not support any non-Coin-Ninja build process. We are providing this software as open source for transparency purposes, but not to be externally buildable.
The guide assumes that you are using Unix for development.
- Install Android Studio
- Install Java JDK v8
Google Services
The Application is dependent of integration with Firebase for push notifications. This requires
that there is a google-services.json file located at {project-dir}/app/google-services.json
This should have access to the following packages or applicationIds
com.coinninja.coinkeeper
com.coinninja.staging.coinkeeper
com.coinninja.coinkeeper.debug
com.coinninja.staging.coinkeeper.debug
Libbitcoin
Fetching Libbitcoin dependency with gradle in Android Studio
- Add
GIT_LAB_APIKEY_COIN_NINJA
globalgradle.properites
file:
touch ~/.gradle/gradle.properties
echo "GIT_LAB_APIKEY_COIN_NINJA={{API_KEY}}" >> ~/.gradle/gradle.properties
Fetching Libbitcoin dependency with on command line gradlew
ZSH
echo "export GIT_LAB_APIKEY_COIN_NINJA={{API_KEY}}" >> .zshrc
Bash
echo "export GIT_LAB_APIKEY_COIN_NINJA={{API_KEY}}" >> .bash_profile
Define API base URI for app to use when syncing
The following properties are required to build the application successfully within Android Studio
vi ~/.gradle/gradle.properties
COIN_NINJA_API_BASE__STAGING={{URL}}
COIN_NINJA_API_BASE={{URL}}
ANALYTICS_TOKEN={{TOKEN}}
MIX_PANEL_SECRET={{TOKEN}}
nexusUID={{USERNAME}}
nexusPWD={{PASSWORD}}