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
- Host: GitHub
- URL: https://github.com/dashpay/android-dashpay
- Owner: dashpay
- License: mit
- Created: 2020-04-24T16:46:26.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-16T21:52:08.000Z (over 2 years ago)
- Last Synced: 2025-04-30T06:46:19.818Z (about 1 year ago)
- Language: Kotlin
- Homepage:
- Size: 4.94 MB
- Stars: 5
- Watchers: 7
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```