An open API service indexing awesome lists of open source software.

https://github.com/dashpay/android-dashpay

JVM library for Platform and the DashPay contract
https://github.com/dashpay/android-dashpay

Last synced: 11 months ago
JSON representation

JVM library for Platform and the DashPay contract

Awesome Lists containing this project

README

          

# DashPay library for JVM
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)

# Building
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 the `repositories` list in your `build.gradle` file and add `org.dashj.platform:dashpay:0.23-SNAPSHOT` and `org.dashj.platform:platform-core:0.21-SNAPSHOT` and as dependency.

# Usage
- 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
}
```
# Tests
Run tests with `gradle build test`

# Publish to maven central
```
./gradlew uploadArchives
```