1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-02 03:12:34 +01:00

Upgrade Gradle to 7.2 and Android Gradle plugin to 4.2.

The older versions of the plugin caused problems building with newer
NDK versions due to a lack of MIPS support.

This also required upgrading to a version of Gradle that knows about
the Google Maven repository.
This commit is contained in:
Peter Collingbourne
2021-09-27 17:20:56 -07:00
committed by Marc Bonnici
parent c023b9859c
commit 0b558e408c
102 changed files with 144 additions and 102 deletions

View File

@@ -12,7 +12,7 @@ android {
buildTypes {
applicationVariants.all { variant ->
variant.outputs.each { output ->
output.outputFile = file("$project.buildDir/apk/com.arm.wa.uiauto.googlemaps.apk")
output.outputFileName = "com.arm.wa.uiauto.googlemaps.apk"
}
}
}

View File

@@ -3,9 +3,10 @@
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.1'
classpath 'com.android.tools.build:gradle:4.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
@@ -15,6 +16,7 @@ buildscript {
allprojects {
repositories {
jcenter()
google()
}
}

View File

@@ -46,8 +46,8 @@ fi
# If successful move APK file to workload folder (overwrite previous)
rm -f ../com.arm.wa.uiauto.googlemaps
if [[ -f app/build/apk/com.arm.wa.uiauto.googlemaps.apk ]]; then
cp app/build/apk/com.arm.wa.uiauto.googlemaps.apk ../com.arm.wa.uiauto.googlemaps.apk
if [[ -f app/build/outputs/apk/debug/com.arm.wa.uiauto.googlemaps.apk ]]; then
cp app/build/outputs/apk/debug/com.arm.wa.uiauto.googlemaps.apk ../com.arm.wa.uiauto.googlemaps.apk
else
echo 'ERROR: UiAutomator apk could not be found!'
exit 9

View File

@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip