Basics
Once you've integrated MimiSDK, there are a few basics to go over before you can fully utilise the features and capabilities.
Client Authentication
We use a client credentials to authenticate you as a partner product with Mimi. These credentials are mandatory, and the SDK will not function without providing them.
So before continuing, make sure you have the following:
- Client Identifier
- Client Secret
You can then start using MimiSDK. We recommend starting in your CustomApplication
class.
class MyApp: Application() {
override fun onCreate() {
super.onCreate()
MimiCore.start(this,
"MY_CLIENT_ID",
"MY_CLIENT_SECRET")
}
}
Extra permissions
Make sure your App's manifest includes the internet permissions, otherwise you won't be able to initialize our services:
<uses-permission android:name="android.permission.INTERNET" />
Also we use internally for our network requests OkHttp. This library requires that you enable Java 8 in your builds to function properly. If you have not done so yet, then you will just need to add this snippet to your build.gradle
:
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
MimiSDK is now set up and ready to go.
Next Steps
With everything set up, you can now move for example onto crafting your Mimi Profile.