The library contains JNI bindings, so you need to install android NDK if it's not yet. In future, all native code will be moved to dependencies.
Gradle root build.gradle
allprojects {
repositories {
// ... some repos
maven { url "https://minter.jfrog.io/artifactory/android/" }
}
}
project build.gradle
ext {
minterCoreSDK = "1.2.0"
}
dependencies {
// for testnet use suffix "-testnet"
implementation "network.minter.android:minter-android-core-testnet:${minterSdkVersion}"
// for main net
implementation "network.minter.android:minter-android-core:${minterSdkVersion}"
}
try {
MinterSDK.initialize();
} catch (NativeLoadException e) {
// handle linkage error
}
See tests
TODO (javadocs available for now)
TODO (NDK required)