Get the Surface Duo SDK

The Surface Duo SDK consists of the following modules:

You can include only what you need in your application. See the instructions below to update your Android Studio project.

Display mask and hinge angle

Follow these steps to add the Surface Duo SDK to your Kotlin or Java app:

  1. In the top-level build.gradle file, add these lines inside the allprojects { repositories { section:

    maven {
        url 'https://pkgs.dev.azure.com/MicrosoftDeviceSDK/DuoSDK-Public/_packaging/Duo-SDK-Feed/maven/v1'
    }
    
  2. In your module-level build.gradle file, add these lines in the dependencies { section:

    implementation "com.microsoft.device.display:display-mask:0.3.0"
    
  3. Java projects should also add this line to their build.gradle dependencies, because the library is built with Kotlin (note that the $kotlin_version will need to be defined as well):

    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    

This provides the following APIs:

Dual-screen libraries and layout controls

We have provided additional libraries and layout controls for Kotlin and Java developers:

To access these features add the required dependencies to your app.

Next steps