mirror of
https://github.com/fcitx5-android/fcitx5-android.git
synced 2026-08-02 04:44:35 +08:00
Keep string resources need by plugin.xml properly
I really don't want to include an extra xml file but it seems there's no other choice
This commit is contained in:
parent
ed6fbe1795
commit
f910fe9aa4
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources xmlns:tools="http://schemas.android.com/tools" tools:keep="@string/description">
|
||||
<resources>
|
||||
<string name="app_name_debug">Fcitx5 (Anthy Plugin | Debug)</string>
|
||||
<string name="app_name_release">Fcitx5 (Anthy Plugin)</string>
|
||||
<string name="description">Anthy (Japanese input method) engine support for Fcitx5</string>
|
||||
|
||||
11
plugin/anthy/src/main/res/xml/plugin_resources_keep.xml
Normal file
11
plugin/anthy/src/main/res/xml/plugin_resources_keep.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ This file is need to prevent the build system from stripping resources need by plugin.xml
|
||||
~ This file won't be included in APK
|
||||
~ See also:
|
||||
~ https://developer.android.com/studio/write/tool-attributes#resource_shrinking_attributes
|
||||
~ https://developer.android.com/topic/performance/app-optimization/customize-which-resources-to-keep
|
||||
-->
|
||||
<resources xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:discard=""
|
||||
tools:keep="@string/description" />
|
||||
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources xmlns:tools="http://schemas.android.com/tools" tools:keep="@string/description">
|
||||
<resources>
|
||||
<string name="app_name_debug">Fcitx5 (Chewing Plugin | Debug)</string>
|
||||
<string name="app_name_release">Fcitx5 (Chewing Plugin)</string>
|
||||
<string name="description">Chewing (Zhuyin/Bopomofo input method) engine support for Fcitx5</string>
|
||||
|
||||
11
plugin/chewing/src/main/res/xml/plugin_resources_keep.xml
Normal file
11
plugin/chewing/src/main/res/xml/plugin_resources_keep.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ This file is need to prevent the build system from stripping resources need by plugin.xml
|
||||
~ This file won't be included in APK
|
||||
~ See also:
|
||||
~ https://developer.android.com/studio/write/tool-attributes#resource_shrinking_attributes
|
||||
~ https://developer.android.com/topic/performance/app-optimization/customize-which-resources-to-keep
|
||||
-->
|
||||
<resources xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:discard=""
|
||||
tools:keep="@string/description" />
|
||||
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources xmlns:tools="http://schemas.android.com/tools" tools:keep="@string/description">
|
||||
<resources>
|
||||
<string name="app_name_debug">Fcitx5 (Clipboard Filter Plugin | Debug)</string>
|
||||
<string name="app_name_release">Fcitx5 (Clipboard Filter Plugin)</string>
|
||||
<string name="description">Apply ClearURLs on clipboard</string>
|
||||
|
||||
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ This file is need to prevent the build system from stripping resources need by plugin.xml
|
||||
~ This file won't be included in APK
|
||||
~ See also:
|
||||
~ https://developer.android.com/studio/write/tool-attributes#resource_shrinking_attributes
|
||||
~ https://developer.android.com/topic/performance/app-optimization/customize-which-resources-to-keep
|
||||
-->
|
||||
<resources xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:discard=""
|
||||
tools:keep="@string/description" />
|
||||
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources xmlns:tools="http://schemas.android.com/tools" tools:keep="@string/description">
|
||||
<resources>
|
||||
<string name="app_name_debug">Fcitx5 (Hangul Plugin | Debug)</string>
|
||||
<string name="app_name_release">Fcitx5 (Hangul Plugin)</string>
|
||||
<string name="description">Hangul (Korean input method) engine support for Fcitx5</string>
|
||||
|
||||
11
plugin/hangul/src/main/res/xml/plugin_resources_keep.xml
Normal file
11
plugin/hangul/src/main/res/xml/plugin_resources_keep.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ This file is need to prevent the build system from stripping resources need by plugin.xml
|
||||
~ This file won't be included in APK
|
||||
~ See also:
|
||||
~ https://developer.android.com/studio/write/tool-attributes#resource_shrinking_attributes
|
||||
~ https://developer.android.com/topic/performance/app-optimization/customize-which-resources-to-keep
|
||||
-->
|
||||
<resources xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:discard=""
|
||||
tools:keep="@string/description" />
|
||||
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources xmlns:tools="http://schemas.android.com/tools" tools:keep="@string/description">
|
||||
<resources>
|
||||
<string name="app_name_debug">Fcitx5 (Jyutping Plugin | Debug)</string>
|
||||
<string name="app_name_release">Fcitx5 (Jyutping Plugin)</string>
|
||||
<string name="description">Jyutping (Cantonese input method) engine support for Fcitx5</string>
|
||||
|
||||
11
plugin/jyutping/src/main/res/xml/plugin_resources_keep.xml
Normal file
11
plugin/jyutping/src/main/res/xml/plugin_resources_keep.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ This file is need to prevent the build system from stripping resources need by plugin.xml
|
||||
~ This file won't be included in APK
|
||||
~ See also:
|
||||
~ https://developer.android.com/studio/write/tool-attributes#resource_shrinking_attributes
|
||||
~ https://developer.android.com/topic/performance/app-optimization/customize-which-resources-to-keep
|
||||
-->
|
||||
<resources xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:discard=""
|
||||
tools:keep="@string/description" />
|
||||
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources xmlns:tools="http://schemas.android.com/tools" tools:keep="@string/description">
|
||||
<resources>
|
||||
<string name="app_name_debug">Fcitx5 (RIME Plugin | Debug)</string>
|
||||
<string name="app_name_release">Fcitx5 (RIME Plugin)</string>
|
||||
<string name="description">RIME (Rime Input Method Engine) support for Fcitx5</string>
|
||||
|
||||
11
plugin/rime/src/main/res/xml/plugin_resources_keep.xml
Normal file
11
plugin/rime/src/main/res/xml/plugin_resources_keep.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ This file is need to prevent the build system from stripping resources need by plugin.xml
|
||||
~ This file won't be included in APK
|
||||
~ See also:
|
||||
~ https://developer.android.com/studio/write/tool-attributes#resource_shrinking_attributes
|
||||
~ https://developer.android.com/topic/performance/app-optimization/customize-which-resources-to-keep
|
||||
-->
|
||||
<resources xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:discard=""
|
||||
tools:keep="@string/description" />
|
||||
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources xmlns:tools="http://schemas.android.com/tools" tools:keep="@string/description">
|
||||
<resources>
|
||||
<string name="app_name_debug">Fcitx5 (Sayura Plugin | Debug)</string>
|
||||
<string name="app_name_release">Fcitx5 (Sayura Plugin)</string>
|
||||
<string name="description">Sayura (Sinhala input method) engine support for Fcitx5</string>
|
||||
|
||||
11
plugin/sayura/src/main/res/xml/plugin_resources_keep.xml
Normal file
11
plugin/sayura/src/main/res/xml/plugin_resources_keep.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ This file is need to prevent the build system from stripping resources need by plugin.xml
|
||||
~ This file won't be included in APK
|
||||
~ See also:
|
||||
~ https://developer.android.com/studio/write/tool-attributes#resource_shrinking_attributes
|
||||
~ https://developer.android.com/topic/performance/app-optimization/customize-which-resources-to-keep
|
||||
-->
|
||||
<resources xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:discard=""
|
||||
tools:keep="@string/description" />
|
||||
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources xmlns:tools="http://schemas.android.com/tools" tools:keep="@string/description">
|
||||
<resources>
|
||||
<string name="app_name_debug">Fcitx5 (Thai Plugin | Debug)</string>
|
||||
<string name="app_name_release">Fcitx5 (Thai Plugin)</string>
|
||||
<string name="description">Thai input method for Fcitx5</string>
|
||||
|
||||
11
plugin/thai/src/main/res/xml/plugin_resources_keep.xml
Normal file
11
plugin/thai/src/main/res/xml/plugin_resources_keep.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ This file is need to prevent the build system from stripping resources need by plugin.xml
|
||||
~ This file won't be included in APK
|
||||
~ See also:
|
||||
~ https://developer.android.com/studio/write/tool-attributes#resource_shrinking_attributes
|
||||
~ https://developer.android.com/topic/performance/app-optimization/customize-which-resources-to-keep
|
||||
-->
|
||||
<resources xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:discard=""
|
||||
tools:keep="@string/description" />
|
||||
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources xmlns:tools="http://schemas.android.com/tools" tools:keep="@string/description">
|
||||
<resources>
|
||||
<string name="app_name_debug">Fcitx5 (Unikey Plugin | Debug)</string>
|
||||
<string name="app_name_release">Fcitx5 (Unikey Plugin)</string>
|
||||
<string name="description">Unikey (Vietnamese input method) engine support for Fcitx5</string>
|
||||
|
||||
11
plugin/unikey/src/main/res/xml/plugin_resources_keep.xml
Normal file
11
plugin/unikey/src/main/res/xml/plugin_resources_keep.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ This file is need to prevent the build system from stripping resources need by plugin.xml
|
||||
~ This file won't be included in APK
|
||||
~ See also:
|
||||
~ https://developer.android.com/studio/write/tool-attributes#resource_shrinking_attributes
|
||||
~ https://developer.android.com/topic/performance/app-optimization/customize-which-resources-to-keep
|
||||
-->
|
||||
<resources xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:discard=""
|
||||
tools:keep="@string/description" />
|
||||
Loading…
x
Reference in New Issue
Block a user