capacitor icon indicating copy to clipboard operation
capacitor copied to clipboard

feat: Enable copying native resource files from Capacitor plugins to …

Open White-D-coder opened this issue 1 year ago • 1 comments

closes #8273 Description

This PR adds support for the <resource-file> tag in plugin.xml for Capacitor Core plugins, bringing parity with Cordova plugin handling.

Changes

Updated resolvePlugin to parseplugin.xmlfor Capacitor Core plugins.

Updated updateAndroid to copy resource files defined under <resource-file> into the Android project during cap sync/update.

Verification

Added integration test: test/update.android.resources.spec.ts

Confirmed that resource files are correctly copied into android/capacitor-cordova-android-plugins/src/main/res/xml/.

Related

Fixes missing resource merging for Android Auto–related plugins.

White-D-coder avatar Dec 04 '25 17:12 White-D-coder

@cho45 @abraham @mlynch @gabeschine .Please review and tell me if some changes are to be made :)

White-D-coder avatar Dec 04 '25 17:12 White-D-coder