Using the MDK (Messay Development Kit), you can assign app behaviors to facial movements, eye movements, and gestures.

Create Compose Project

  1. Launch Android Studio, and in the Welcome to Android Studio dialog, click New Project.

image.png

  1. Make sure Phone and Tablet is selected.
  2. Click to select the Empty Compose Activity or Empty Activity template. (Note: in the latest versions of Android Studio, Empty Compose Activity may not be available.)

image.png

  1. Click Next to proceed to the New Project dialog and edit each field as needed. Please note that MDK supports API level 26 and above.

image.png

Gradle Settings

  1. Add the MDK distribution repository URL to gradle.properties.
maven.messay=https://developer.messay.ndk-group.co.jp/maven/
  1. Add the authentication credentials for the MDK distribution site to local.properties.

The username is the same as the one used to log in to the MDK dashboard. For the password, use the authentication token generated from the Settings menu.

maven.messay.username=<Username>
maven.messay.password=<Token>
  1. Add the MDK distribution repository to the project’s build.gradle.kts.
import java.util.Properties

val localProperties = Properties().apply {
    val f = file("local.properties")
    if (f.exists()) {
        load(f.inputStream())
    }
}
dependencyResolutionManagement {
    repositories {
        google {
            mavenContent {
                includeGroupAndSubgroups("androidx")
                includeGroupAndSubgroups("com.android")
                includeGroupAndSubgroups("com.google")
            }
        }
        mavenCentral()
        maven(extra["maven.messay"]) { // Add Maven Repository
            credentials {
                username = localProperties.getProperty("maven.messay.username")
                password = localProperties.getProperty("maven.messay.password")
            }
        }
    }
}
  1. Add mdk-compose to the dependencies of the app module.