Skip to content

dydxprotocol/v4-native-android

Repository files navigation

icon />

v4-native-android

This is the native Android app for dYdX v4.

Quick Setup

cd scripts
./bootstrap.sh

This will set up Android Studio project along with all dependencies.

Main Repo

git clone git@github.com:dydxprotocol/v4-native-android.git

Repo Dependencies

v4-abacus and cartera-android

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]
281211719-e0af477e-f84c-466f-93ac-32d0236bb84b

v4-localization and v4-web

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.

API Keys & Secrets

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.

Build Android App

cd v4-native-android
./gradlew build
./gradlew :v4:app:installDebug

To check for unused or missing dependencies:

./gradlew buildHealth

To clean up many lint errors automatically:

./gradlew spotlessApply