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:
Rocka 2026-04-25 22:59:50 +08:00
parent ed6fbe1795
commit f910fe9aa4
No known key found for this signature in database
GPG Key ID: 28031158FFDD6853
18 changed files with 108 additions and 9 deletions

View File

@ -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>

View 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" />

View File

@ -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>

View 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" />

View File

@ -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>

View 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" />

View File

@ -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>

View 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" />

View File

@ -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>

View 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" />

View File

@ -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>

View 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" />

View File

@ -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>

View 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" />

View File

@ -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>

View 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" />

View File

@ -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>

View 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" />