From bb47c155264e0f40c1fb1c9c1435a69ee0eb67ed Mon Sep 17 00:00:00 2001 From: Sagar Viradiya Date: Sun, 24 Dec 2023 15:29:20 +0100 Subject: [PATCH] GitHub workflow modification - Revert the previous changes of removing baseline profile generation through baseline profile gradle plugin. - Remove the baseline profile configuration to run test on gradle managed device --- .github/workflows/profile_generation.yml | 3 +-- baseline-profile/build.gradle.kts | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/profile_generation.yml b/.github/workflows/profile_generation.yml index 6a049d9..bfcfe10 100644 --- a/.github/workflows/profile_generation.yml +++ b/.github/workflows/profile_generation.yml @@ -29,5 +29,4 @@ jobs: with: api-level: 31 arch: x86_64 - profile: Pixel 6 - script: ./gradlew :baseline-profile:connectedAndroidTest + script: ./gradlew :sample:generateBaselineProfile diff --git a/baseline-profile/build.gradle.kts b/baseline-profile/build.gradle.kts index 50059ba..c2c65b8 100644 --- a/baseline-profile/build.gradle.kts +++ b/baseline-profile/build.gradle.kts @@ -41,7 +41,7 @@ android { targetProjectPath = ":sample" - testOptions { + /*testOptions { managedDevices { devices { create ("pixel6Api31", ManagedVirtualDevice::class) { @@ -51,7 +51,7 @@ android { } } } - } + }*/ compileOptions { sourceCompatibility = JavaVersion.VERSION_11 @@ -70,7 +70,7 @@ dependencies { } -baselineProfile { +/*baselineProfile { managedDevices += "pixel6Api31" useConnectedDevices = false -} +}*/