Merge pull request #488 from greenart7c3/claude/gracious-goodall-d7dwyf

Add benchmark flavor with distinct launcher name
This commit is contained in:
greenart7c3
2026-06-22 11:07:04 -03:00
committed by GitHub
2 changed files with 15 additions and 0 deletions
+14
View File
@@ -175,6 +175,20 @@ android {
}
}
// The benchmark flavor is built as a release APK, where the release build type's
// resValue sets app_name to "Amber". Build-type resValues take precedence over
// product-flavor resValues, so override app_name here via the variant API (the
// highest-priority tier) to give the side-by-side benchmark install its own
// launcher name.
androidComponents {
onVariants(selector().withFlavor("version" to "benchmark")) { variant ->
variant.resValues.put(
variant.makeResValueKey("string", "app_name"),
com.android.build.api.variant.ResValue("@string/app_name_benchmark"),
)
}
}
composeCompiler {
reportsDestination.set(layout.buildDirectory.dir("compose_compiler"))
}
+1
View File
@@ -1,6 +1,7 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<string name="app_name_release" translatable="false">Amber</string>
<string name="app_name_debug" translatable="false">Amber Debug</string>
<string name="app_name_benchmark" translatable="false">Amber Benchmark</string>
<!-- Settings screen sections -->
<string name="settings_section_account">Account &amp; keys</string>
<string name="settings_section_network">Network</string>