-
Notifications
You must be signed in to change notification settings - Fork 1
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}"
Android API level 19 and up is supported. All that needs to be done is
- add following dependency to your application build
implementation 'org.threeten:threetenbp:1.4.0'
- when you need to declare
TransactionDeadline
use classDeadlineBP
instead ofDeadline
. DeadlineBP does not rely onjava.time
api and instead uses the backport library.
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
}
}
There are no automated tests written to test the functionality on Android. Listener has not been tested at all with Android.