mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-19 12:24:32 +00:00
0efd20cf59
On devices running android 9 with google play services, PlayProtect blocks the installation of our automation apks due to targeting a lower SDK version. Update all apk builds to target SDK version 28 (Android 9) however do not change the minimum version to maintain backwards compatibility.
36 lines
924 B
Groovy
36 lines
924 B
Groovy
apply plugin: 'com.android.application'
|
|
|
|
def packageName = "com.arm.wa.uiauto.benchmarkpi"
|
|
|
|
android {
|
|
compileSdkVersion 28
|
|
buildToolsVersion "28.0.3"
|
|
defaultConfig {
|
|
applicationId "${packageName}"
|
|
minSdkVersion 18
|
|
targetSdkVersion 28
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
}
|
|
buildTypes {
|
|
applicationVariants.all { variant ->
|
|
variant.outputs.each { output ->
|
|
output.outputFile = file("$project.buildDir/apk/${packageName}.apk")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile fileTree(dir: 'libs', include: ['*.jar'])
|
|
compile 'com.android.support.test:runner:0.5'
|
|
compile 'com.android.support.test:rules:0.5'
|
|
compile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2'
|
|
compile(name: 'uiauto', ext:'aar')
|
|
}
|
|
|
|
repositories {
|
|
flatDir {
|
|
dirs 'libs'
|
|
}
|
|
}
|