mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-06 03:18:23 +00:00
Provide app_name_debug for the androidTest APK
The debug buildType applies `resValue("string", "app_name", "@string/app_name_debug")`
to the androidTest APK as well as the main APK, but the test APK does
not include the main app's res/, so the reference failed to link the
first time the test APK was actually built. Supply the referenced
strings in an androidTest-only resource file. The values never surface
to users; they only satisfy the test APK's resource linker.
https://claude.ai/code/session_01Q9jujfLrDCChwyJwb1Gpii
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!--
|
||||
The debug buildType emits `resValue("string", "app_name", "@string/app_name_debug")`
|
||||
into the androidTest APK as well as the main APK. The test APK does not include
|
||||
the main app's res/, so the reference fails to link unless we supply the target
|
||||
strings here. These values never surface to users — they only exist to satisfy
|
||||
the test APK's resource linker.
|
||||
-->
|
||||
<string name="app_name_debug" translatable="false">Amber Debug</string>
|
||||
<string name="app_name_release" translatable="false">Amber</string>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user