From 38c261eb94a81c0af989a7d19fc319adec0fe6dc Mon Sep 17 00:00:00 2001 From: Andrei Cirja <72752597+ancirja-m@users.noreply.github.com> Date: Wed, 9 Dec 2020 17:07:49 +0200 Subject: [PATCH] Added integration for DragAndDrop sample with new screen manager SDK (#21) Added integration for DragAndDrop sample with new screen manager SDK --- DragAndDrop/build.gradle | 6 +- DragAndDrop/src/main/AndroidManifest.xml | 4 +- .../draganddrop/DragAndDropApplication.kt | 19 ++++++ .../samples/draganddrop/MainActivity.kt | 65 ++++++++++++++++--- .../src/main/res/layout/activity_main.xml | 2 +- 5 files changed, 81 insertions(+), 15 deletions(-) create mode 100644 DragAndDrop/src/main/java/com/microsoft/device/display/samples/draganddrop/DragAndDropApplication.kt diff --git a/DragAndDrop/build.gradle b/DragAndDrop/build.gradle index 0a2edbdf..40aba284 100644 --- a/DragAndDrop/build.gradle +++ b/DragAndDrop/build.gradle @@ -24,6 +24,10 @@ android { } dependencies { + implementation microsoftDependencies.screenManager + implementation microsoftDependencies.layouts + implementation microsoftDependencies.fragmentsHandler + implementation kotlinDependencies.kotlinStdlib implementation androidxDependencies.appCompat implementation androidxDependencies.constraintLayout @@ -31,8 +35,6 @@ dependencies { implementation androidxDependencies.ktxFragment implementation googleDependencies.material - implementation microsoftDependencies.dualScreenLayout - testImplementation testDependencies.junit androidTestImplementation instrumentationTestDependencies.junit diff --git a/DragAndDrop/src/main/AndroidManifest.xml b/DragAndDrop/src/main/AndroidManifest.xml index 9ce711a8..98ab8290 100644 --- a/DragAndDrop/src/main/AndroidManifest.xml +++ b/DragAndDrop/src/main/AndroidManifest.xml @@ -1,5 +1,4 @@ - -