MozoSDK for Android by MozoX Pte. Ltd. For more information please see the website.
MozoSDK requires at minimum Java 8 and Android 5.0 (API 21).
- Add MozoSDK repository to your root-level
build.gradlefile.
allprojects {
repositories {
// ...
mavenCentral()
}
}
- Add this library as a dependency in your
app/build.gradlefile.
dependencies {
implementation 'io.mozocoin:mozo-sdk:LATEST_VERSION'
}
- First, in your module Gradle file (usually the
app/build.gradle), add thecompileOptionsto make sure your project compiling by Java 8:
apply plugin: 'com.android.application'
android {
// ...
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
- Then, initialize it in the
onCreate()method:
MozoSDK.initialize(this)
Build sample app with Gradle:
git clone https://github.com/Biglabs/mozo-android-sdk.git
cd mozo-android-sdk
./gradlew installDebug
Note: Make sure your Android SDK has the Android Support Repository installed, and that your $ANDROID_HOME environment variable is pointing at the SDK or add a local.properties file in the root project with a sdk.dir=... line.
To report a specific problem or feature request, open a new issue on Github. For questions, suggestions, or anything else, email to developer@mozocoin.io, or join our Slack channel.