plugins Ġ{ ĊĠ Ġkotlin (" jvm ") ĊĠ Ġid (" com . tre vj one z . adb - uninstall ") Ċ } Ċ Ċ apply ( from Ġ= Ġ"${ root Project . project Dir }/ publish . gradle ") Ċ Ċ ext [" artifactId "] Ġ= Ġ" command er - android " Ċ description Ġ= Ġ" Functions Ġto Ġwork Ġwith ĠAndroid ĠSDK ĠTools Ġlike Ġa db , Ġav d manager , Ġsdk manager ." Ċ Ċ dependencies Ġ{ ĊĠ Ġapi (" org . jetbrains . kotlin : kotlin - stdlib - jdk 8 ") ĊĠ Ġapi ( project (": command er : os ")) ĊĊĠ Ġtest Implementation (" org . assertj : assertj - core : 3 . 1 1 . 1 ") ĊĠ Ġtest Implementation (" org . spe k framework . spe k 2 : spe k - dsl - jvm : 2 . 0 . 5 ") ĊĠ Ġtest Runtime Only (" org . spe k framework . spe k 2 : spe k - runner - junit 5 : 2 . 0 . 5 ") ĊĠ Ġtest Runtime Only (" org . jetbrains . kotlin : kotlin - reflect ") Ċ } Ċ Ċ adb Un install . packages (" com . tre vj one z . command er . test support ") Ċ Ċ tasks . test Ġ{ ĊĠ Ġuse JUnit Platform Ġ{ ĊĠĠĠ Ġinclude En gin es (" spe k 2 ") ĊĠ Ġ} ĊĊĠ Ġdepends On (": command er : test Support : assemble Debug ") ĊĠ Ġval Ġapk Dir Ġ= Ġfile ("${ project (": command er : test Support "). build Dir . absolute Path }/ outputs / apk ") ĊĠ Ġinputs . dir ( apk Dir ) ĊĊĠ Ġsystem Property (" old A pk ", Ġ"$ apk Dir / older / debug / test Support - older - debug . apk ") ĊĠ Ġsystem Property (" new A pk ", Ġ"$ apk Dir / new er / debug / test Support - new er - debug . apk ") Ċ }