From 5d8ac92c6d5d37c66f4250feb0e630182016c243 Mon Sep 17 00:00:00 2001 From: Ben Weiss Date: Thu, 29 Feb 2024 14:44:11 +0100 Subject: [PATCH] Remove benchmark build type This build type is no longer needed when using the Baseline Profile Gradle plugin so we're removing it. --- MacrobenchmarkSample/app/build.gradle.kts | 10 ---------- MacrobenchmarkSample/macrobenchmark/build.gradle.kts | 12 ------------ 2 files changed, 22 deletions(-) diff --git a/MacrobenchmarkSample/app/build.gradle.kts b/MacrobenchmarkSample/app/build.gradle.kts index 29c3b44..2de2b18 100644 --- a/MacrobenchmarkSample/app/build.gradle.kts +++ b/MacrobenchmarkSample/app/build.gradle.kts @@ -54,16 +54,6 @@ android { // In real app, this would use its own release keystore signingConfig = signingConfigs.getByName("debug") } - - create("benchmark") { - initWith(release) - signingConfig = signingConfigs.getByName("debug") - // [START_EXCLUDE silent] - // Selects release buildType if the benchmark buildType not available in other modules. - matchingFallbacks.add("release") - // [END_EXCLUDE] - proguardFiles("benchmark-rules.pro") - } } // [END macrobenchmark_setup_app_build_type] diff --git a/MacrobenchmarkSample/macrobenchmark/build.gradle.kts b/MacrobenchmarkSample/macrobenchmark/build.gradle.kts index 0483d00..79475a6 100644 --- a/MacrobenchmarkSample/macrobenchmark/build.gradle.kts +++ b/MacrobenchmarkSample/macrobenchmark/build.gradle.kts @@ -60,18 +60,6 @@ android { targetProjectPath = ":app" // Enable the benchmark to run separately from the app process experimentalProperties["android.experimental.self-instrumenting"] = true - - buildTypes { - // declare a build type to match the target app"s build type - create("benchmark") { - isDebuggable = true - signingConfig = signingConfigs.getByName("debug") - // [START_EXCLUDE silent] - // Selects release buildType if the benchmark buildType not available in other modules. - matchingFallbacks.add("release") - // [END_EXCLUDE] - } - } } // [END macrobenchmark_setup_android]