Skip to content

Android support

Anton Wiedermann edited this page Jun 12, 2019 · 3 revisions

Android support is currently experimental

Android API level 26 and up is directly supported by the library. Simply add it as a dependency to your application build.gradle file as follows and you can work with it as in any other java application.

implementation "io.proximax:java-xpx-chain-sdk:${javaXpxVersion}"

Support for older Android API levels

Android API level 19 and up is supported. All that needs to be done is

  1. add following dependency to your application build
implementation 'org.threeten:threetenbp:1.4.0'
  1. when you need to declare TransactionDeadline use class DeadlineBP instead of Deadline. DeadlineBP does not rely on java.time api and instead uses the backport library.

Multi-dex support

Android has limit on maximum number of methods. You can get past this by including multidex library as dependency

    implementation 'com.android.support:multidex:1.0.3'

You will then need to enable it by setting following property in application build.gradle

android {
    defaultConfig {
        multiDexEnabled true
    }
}

Why experimental

There are no automated tests written to test the functionality on Android. Listener has not been tested at all with Android.

Clone this wiki locally