Skip to content

dashpay/kotlin-platform

Repository files navigation

kotlin-platform

kotlin-platform is the library that supports Platform functionality for the Java VM on desktop and Android devices.

Directory Layout

  • dash-sdk-android - This is for the Dash SDK that supports platform for all Android architectures
  • dash-sdk-bindings - This generates the primary Dash SDK header and the shared library for Java bindings for the local machine
  • dash-sdk-java - This is for the Dash SDK that supports platform for the local environment
  • dpp - This is the Kotlin Dash SDK for Platfrom
    • This is a more simple interface than dash-sdk-java that supports the needs of the DashPay app which uses dpns and dashpay data contracts.
    • It depends on dash-sdk-java and dash-sdk-android if targeting android
  • examples - Contains many example programs that perform some platform operations
  • platform-mobile - A rust crate used by dash-sdk-android and dash-sdk-java that supports many Platform DAPI operations
  • tools - a module that contains the WalletTool program

Build Instructions

See dash-sdk-bindings readme for build instructions of the basic bindings system. Perform these steps first.

Java Bindings for Desktop

See dash-sdk-java readme for build instructions of the Java bindings. Perform these steps second.

  • This will generate the Java classes for the Java bindings and the shared library that supports the current environment
  • There are currently problems when running on Linux 64-bit systems. Mac M1 systems work well. No other systems have been tested.

Java Bindings for Android

Build the android libraries for the local machine

./gradlew publishToMavenLocal

Build the android libraries to publish to Maven Central

./gradlew publish

Use in other projects

dppVersion = "1.3-SNAPSHOT"
dependencies {
    implementation "org.dashj.platform:dash-sdk-java:$dppVersion"
    implementation "org.dashj.platform:dash-sdk-kotlin:$dppVersion" // dpp
    implementation "org.dashj.platform:dash-sdk-android:$dppVersion"
}

About

Dash Platform Library for JVM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published