From 0866d38065ce7df20bc573381dbac285028802ba Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 23 Jun 2026 01:21:31 +0000 Subject: [PATCH] fix(build): resolve :nappletHost benchmark variant via matchingFallbacks The new plain-AGP :nappletHost library only declares debug/release build types (unlike the KMP :commons/:quartz libs, which match any build type). The :amethyst app's `benchmark` build type had no fallback, so Gradle could not resolve a matching :nappletHost variant for fdroidBenchmark/playBenchmark, breaking Test/Build CI on main. Add `matchingFallbacks += "release"` to the benchmark build type so it falls back to a library's release variant when no benchmark variant exists. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_014tzXcqVUcAPhyDDFak4SQ8 --- amethyst/build.gradle.kts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/amethyst/build.gradle.kts b/amethyst/build.gradle.kts index c8c3a72587..ceacdce4bf 100644 --- a/amethyst/build.gradle.kts +++ b/amethyst/build.gradle.kts @@ -212,6 +212,9 @@ android { } create("benchmark") { initWith(getByName("release")) + // Plain AGP library deps (e.g. :nappletHost) only declare debug/release build types, + // so fall back to their `release` variant when resolving the benchmark build type. + matchingFallbacks += "release" applicationIdSuffix = ".benchmark" versionNameSuffix = "-BENCHMARK" resValue("string", "app_name", "@string/app_name_benchmark")