Revert "fix(benchmark): upgrade to API level 33"

This reverts commit 1defffa504.
This commit is contained in:
Harsh Shandilya 2023-07-25 11:46:47 +05:30
parent 3ad4ff1c63
commit a2d046bd0b
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View file

@ -58,7 +58,7 @@ jobs:
- name: Run benchmark on Gradle Managed Device - name: Run benchmark on Gradle Managed Device
run: | run: |
./gradlew baselineprofileBenchmarkAndroidTest \ ./gradlew api31BenchmarkAndroidTest \
-Dorg.gradle.workers.max=1 \ -Dorg.gradle.workers.max=1 \
-Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=BaselineProfile \ -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=BaselineProfile \
-Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect"
@ -71,7 +71,7 @@ jobs:
# Pull down any changes which may have been committed while this workflow has been running # Pull down any changes which may have been committed while this workflow has been running
git pull git pull
# Sort the baseline profile, output to android/ # Sort the baseline profile, output to android/
sort -o android/src/main/baseline-prof.txt benchmark/build/outputs/managed_device_android_test_additional_output/benchmark/baselineprofile/BaselineProfileGenerator_generateBaselineProfile-baseline-prof.txt sort -o android/src/main/baseline-prof.txt benchmark/build/outputs/managed_device_android_test_additional_output/benchmark/api31/BaselineProfileGenerator_generateBaselineProfile-baseline-prof.txt
# If the baseline profile has changed, commit it # If the baseline profile has changed, commit it
if [[ $(git diff --stat android/src/main/baseline-prof.txt) != '' ]]; then if [[ $(git diff --stat android/src/main/baseline-prof.txt) != '' ]]; then
git add android/src/main/baseline-prof.txt git add android/src/main/baseline-prof.txt

View file

@ -33,10 +33,10 @@ android {
testOptions { testOptions {
managedDevices { managedDevices {
devices { devices {
create<ManagedVirtualDevice>("baselineprofile") { create<ManagedVirtualDevice>("api31") {
device = "Pixel 5" device = "Pixel 6"
apiLevel = 33 apiLevel = 31
systemImageSource = "google_apis" systemImageSource = "aosp"
} }
} }
} }