Skip to content

Integrating MimiSDK

Version Support

  • minSdk / minSdkVersion Android API Level 21
  • targetSdk / targetSdkVersion Android API Level 35
  • Kotlin 1.8.22
  • Minimum Java 1.8 required

Note

The use of PTT Hearing Tests requires an app minimum of Android API Level 23.

Gradle dependencies

In order to be able to download all the necessary artifacts that compose the MimiSDK, add the following lines to your build.gradle files:

app/build.gradle

implementation 'io.mimi:sdk:SDK-VERSION'

local.properties

Once you have obtained your partner credentials via our Mimi Partner Portal Space, we suggest to store them inside your local.properties file or create it if it doesn't exist yet.

mimiMavenUser=PORTAL_USERNAME
mimiMavenPassword=PORTAL_PASSWORD

project/build.gradle

Lastly, add the following Maven repository, which is authenticated using your partner credentials:

allprojects {
    repositories {
        google()
        mavenCentral()
        // Mimi artifacts repository
        maven {
            url "https://api.integrate.mimi.io/files/sdk/android"
            credentials {
                username = "${mimiMavenUser}"
                password = "${mimiMavenPassword}"
            }
            authentication {
                basic(BasicAuthentication)
            }
        }
    }
}