Skip to content

Biglabs/mozo-android-sdk

Repository files navigation

Mozo Android SDK

Maven Central Android min version Kotlin version

MozoSDK for Android by MozoX Pte. Ltd. For more information please see the website.

Adding to project

MozoSDK requires at minimum Java 8 and Android 5.0 (API 21).

  • Add MozoSDK repository to your root-level build.gradle file.
allprojects {
    repositories {
        // ...

        mavenCentral()
    }
}
  • Add this library as a dependency in your app/build.gradle file.
dependencies {
    implementation 'io.mozocoin:mozo-sdk:LATEST_VERSION'
}

Setting up

  • First, in your module Gradle file (usually the app/build.gradle), add the compileOptions to 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)

How do I use MozoSDK?

Sample

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.

Give feedback

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.

License

Packages

No packages published

Contributors 5