-
-
Notifications
You must be signed in to change notification settings - Fork 43
Resource Tips
Efra Espada edited this page May 27, 2019
·
4 revisions
Use \n char for adding new lines. Android converts enter keys to a simple white space.
<resources>
<string name="obfuscated" hidden="true">Hello there.
General Kenobi!
</string>
<string name="normal">Hello there.
General Kenobi!
</string>
</resources>-
After the reveal process, the
obfuscatedstring key will returnHello there.[original tab space]General Kenobi![original tab space]. -
The
normalstring key will returnHello there. General Kenobi!.
With the new-line char, obfuscated and normal string keys return the same:
<resources>
<string name="obfuscated" hidden="true">Hello there.\nGeneral Kenobi!</string>
<string name="normal">Hello there.\nGeneral Kenobi!</string>
</resources>The hidden attribute must be placed in the last position of the string definition.
<resources>
<string name="obfuscated_not_working" hidden="true" translatable="true">Hello there. General Kenobi!</string>
<string name="obfuscated_working" translatable="true" hidden="true">Hello there. General Kenobi!</string>
</resources>When the plugin obfuscates string values, all the hidden attributes are removed.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.