From 2c1203c1de8ab98df951253ea11ef569035fbbcf Mon Sep 17 00:00:00 2001 From: Hash Engineering Solutions Date: Mon, 1 Jun 2020 09:28:25 -0400 Subject: [PATCH] Evonet: Add mobile devnet build instructions (#422) --- README.md | 2 +- wallet/README.md | 53 +++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 53 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fd557a9128..a3ca07bcf6 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Welcome to _Dash Wallet_, a standalone Dash payment app for your Android device! This project contains several sub-projects: * __wallet__: - The Android app itself. This is probably what you're searching for. + The Android app itself. This is probably what you're searching for. [wallet README](wallet/README.md) * __common__: Contains common components used by integrations. * __uphold-integration__ diff --git a/wallet/README.md b/wallet/README.md index 4b22151109..82e6da45ad 100644 --- a/wallet/README.md +++ b/wallet/README.md @@ -48,7 +48,7 @@ The app can send extensive debug information. Use **Options > Settings > Report In the generated e-mail, replace the support address with yours. -### BUILDING THE DEVELOPMENT VERSION +### BUILDING THE DEVELOPMENT VERSION (TESTNET) It's important to know that the development version uses Testnet, is debuggable and the wallet file is world readable/writeable. The goal is to be able to debug easily. @@ -100,6 +100,55 @@ If installation fails, make sure "Developer options" and "USB debugging" are ena connection is established. +### BUILDING THE DEVNET VERSION (MOBILE) + +It's important to know that this development version uses Mobile Devnet, is debuggable and the wallet file +is world readable/writeable. The goal is to be able to debug easily. + +The `mobile` flavor builds for the Mobile Devnet. + + # first time only + git clone -b evonet-develop https://github.com/dashevo/dash-wallet.git dash-wallet + cd dash-wallet + git pull + git submodule init + git submodule update + cd .. + + git clone -b master https://github.com/dashevo/android-dpp.git android-dpp + cd android-dpp + gradlew build + cd .. + + git clone -b master https://github.com/dashevo/dapi-client-android dapi-client-android + cd dapi-client-android + gradlew build + cd .. + + git clone -b master https://github.com/dashevo/android-dashpay.git android-dashpay + cd android-dashpay + gradlew build + cd .. + + # optional + git clone -b evonet https://github.com/dashevo/dashj.git dashj + cd dashj + mvn clean install -DskipTests + cd .. + + # each time or build in Android Studio + cd dash-wallet + git pull + gradle clean assembleMobileDebug -x test + +To install the app on your Android device, use: + + # first time only + sudo apt install android-tools-adb + + # each time + adb install wallet/build/outputs/apk/dash-wallet-mobile-debug.apk + ### BUILDING THE PRODUCTION VERSION @@ -135,6 +184,8 @@ All flavors (debug and release) will be at: wallet/build/outputs/apk ### SETTING UP FOR DEVELOPMENT You should be able to import the project into Android Studio, as it uses Gradle for building. +* Set the build variant on the wallet module to the required flavor (mobileDebug for mobile devnet) +* From Tools | SDK Manager, select Android SDK Build Tools version 28 and NDK (side by side) version 16 or above ### TRANSLATIONS