From 027ae86953597f97a7aa726a06affeb520cfabd2 Mon Sep 17 00:00:00 2001 From: William Brawner Date: Sat, 20 Feb 2021 21:07:10 -0700 Subject: [PATCH] Add flank/fladle to run UI tests --- app/build.gradle | 14 ++++++++++++++ build.gradle | 1 + 2 files changed, 15 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 8fa6a59..a4cbee1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -4,6 +4,7 @@ apply plugin: 'kotlin-android' apply plugin: 'kotlin-kapt' apply plugin: 'jacoco' apply plugin: 'com.google.firebase.crashlytics' +apply plugin: "com.osacky.fladle" def keystoreProperties = new Properties() try { @@ -163,3 +164,16 @@ task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest']) { 'outputs/code-coverage/connected/*coverage.ec' ])) } + +fladle { + variant = 'playDebug' + useOrchestrator = true + environmentVariables = [ + "clearPackageData": "true" + ] + testTimeout = "7m" + devices = [ + [ "model": "NexusLowRes", "version": "30" ] + ] + projectId = 'simplemarkdown' +} diff --git a/build.gradle b/build.gradle index 1695d7f..75c6ad4 100644 --- a/build.gradle +++ b/build.gradle @@ -12,6 +12,7 @@ buildscript { classpath 'com.google.gms:google-services:4.3.5' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + classpath "com.osacky.flank.gradle:fladle:0.14.1" } }