This library consists of two components
- platform-core (similar to DashJS which handles identities, contracts, documents and names)
- dashpay (handles the dashpay contract documents: profiles and contractRequests)
This depends on the android-dpp
and dapi-client-android
libraries:
git clone https://github.com/dashevo/android-dpp.git
cd android-dpp
./gradlew assemble
cd ..
git clone https://github.com/dashevo/dapi-client-android.git
cd dapi-client-android
./gradlew assemble
cd ..
Finally, build the library:
git clone https://github.com/dashevo/android-dashpay.git`
cd android-dashpay`
./gradlew assemble`
- After building, it will be available on the local Maven repository.
- To use it with gradle, add
mavenLocal()
to therepositories
list in yourbuild.gradle
file and addorg.dashj.platform:dashpay:0.23-SNAPSHOT
andorg.dashj.platform:platform-core:0.21-SNAPSHOT
and as dependency.
- Add mavenCentral() to your
repositories
- What to include in your build.gradle:
dependencies {
implementation "org.dashj.platform:dpp:0.23-SNAPSHOT"
implementation "org.dashj.platform:dapi-client:0.23-SNAPSHOT"
implementation "org.dashj:dashj-core:0.19.1-SNAPSHOT"
implementation "org.dashj:dashj-bls:1.0.0"
implementation "org.dashj.platform:platform-core:0.23-SNAPSHOT"
implementation "org.dashj.platform:dashpay:0.23-SNAPSHOT" # if dashpay contract is required
}
Run tests with gradle build test
./gradlew uploadArchives