mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-19 11:29:07 +00:00
This patch fixes following issues: * Starting from Android 11 it is not possible to use Runtime.exec to execute commands that require shell permissions like `am start`. * Engineering Android versions has su that doesn't support -c argument.
30 lines
873 B
Groovy
30 lines
873 B
Groovy
apply plugin: 'com.android.application'
|
|
|
|
def packageName = "com.arm.wa.uiauto.applaunch"
|
|
|
|
android {
|
|
namespace "${packageName}"
|
|
compileSdkVersion 34
|
|
defaultConfig {
|
|
applicationId "${packageName}"
|
|
minSdkVersion 18
|
|
targetSdkVersion 34
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
}
|
|
buildTypes {
|
|
applicationVariants.all { variant ->
|
|
variant.outputs.each { output ->
|
|
output.outputFileName = "${packageName}.apk"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation 'com.android.support.test:runner:0.5'
|
|
implementation 'com.android.support.test:rules:0.5'
|
|
implementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2'
|
|
implementation files('libs/uiauto.aar')
|
|
}
|