Prevent res/xml/plugin.xml being removed from release build

reference `@xml/plugin` in AndroidManifest.xml of :lib:plugin_base
This commit is contained in:
Rocka 2026-04-23 23:32:19 +08:00
parent 630f9258dc
commit 49d8807101
No known key found for this signature in database
GPG Key ID: 28031158FFDD6853
2 changed files with 11 additions and 0 deletions

View File

@ -11,6 +11,13 @@
</queries>
<application>
<meta-data
android:name="org.fcitx.fcitx5.android.plugin.METADATA"
tools:node="remove" />
<meta-data
android:name="org.fcitx.fcitx5.android.debug.plugin.METADATA"
android:resource="@xml/plugin" />
<activity
android:name=".AboutActivity"
android:directBootAware="true"

View File

@ -13,6 +13,10 @@
<uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />
<application>
<!-- prevent res/xml/plugin.xml from being removed by AGP resource optimization -->
<meta-data
android:name="org.fcitx.fcitx5.android.plugin.METADATA"
android:resource="@xml/plugin" />
<activity
android:name=".AboutActivity"
android:exported="true"