Skip to content

gangoogle/idea_android_hardcode_string_plug

Repository files navigation

基于EasyLokal String Resource Helper

  • 我添加了对中文字符串的处理规则,默认使用Pinyin4j将中文拼音设置成String.xml的key
  • 默认不选择抽取的数据,需要自己手动勾选

EasyLokal String Resource Helper

EasyLokal

Support for extracting hardcoded strings. This plugin looks for all the hardcoded strings in the project and replaces them with android default resource implementation.

How to use:

  • Install plugin from marketplace.

  • Click on Tools -> Extract string resources image

  • Enter the required prefix that you want to add before each string resource key and also the Base Application class name. Click here to know how to make a base application class. image

  • Select/Deselect the strings you want to add in strings.xml image

  • Click on Extract Strings....wait a minute...and...That's it. You are now following one more best android coding practice.

New Features!

  • Provides custom context
  • Automatically imports the necessary classes
  • Allow to select/deselect the strings
  • You can add a prefix to append before all keys

Also try out EasyLokal Android SDK to give over-the-air string support to your APK and remove the efforts of releasing everytime you update strings in your product.

Created and Supported by EasyLokal

About

提取android字符串硬编码插件

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published