mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-05 10:58:23 +00:00
Merge pull request #488 from greenart7c3/claude/gracious-goodall-d7dwyf
Add benchmark flavor with distinct launcher name
This commit is contained in:
@@ -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,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 & keys</string>
|
||||
<string name="settings_section_network">Network</string>
|
||||
|
||||
Reference in New Issue
Block a user