This is the native Android app for dYdX v4.
cd scripts
./bootstrap.sh
This will set up Android Studio project along with all dependencies.
git clone [email protected]:dydxprotocol/v4-native-android.git
This project requires the latest packages from v4-abacus and cartera-android.
To access v4-abacus and cartera-android, create a personal access token on Github and add it to the repo link. Create a classic token that has read permission to packages.
Add your github user name and token as shell env vars:
export github_username=[GITHUB_USERNAME]
export github_token=[GITHUB_TOKEN]
This project requires v4-localization
https://github.com/dydxprotocol/v4-localization
This project requires v4-web
https://github.com/dydxprotocol/v4-web
The Android Studio project expects those two repos to be cloned side-by-side to the main Android repo.
Other dependencies are specified in the Android project's build.gradle
as expected.
Unzip the secrets.zip
from the Android Secrets
vault in the dYdX 1Password account. Ask a team member for access.
Add the secrets/
folder to the v4-native-android/scripts
folder.
Copy the content of secrets.zip
to v4-native-android/scripts/secrets
and run
cd v4-native-android/scripts
./set_secrets.sh
This will apply the secrets to the source code.
cd v4-native-android
./gradlew build
./gradlew :v4:app:installDebug
./gradlew buildHealth
./gradlew spotlessApply