apache / cordova-plugman

Apache Cordova Plugman
https://cordova.apache.org/
Apache License 2.0
399 stars 151 forks source link

Add lib-file support to Android #19

Closed AxelNennker closed 10 years ago

AxelNennker commented 11 years ago

lib-file does not work in platforms other than Blackberry. This patch adds lib-file support to Android.

Without this patch the plugman install.js crashes because handler["lib-file"] is undefined.

If you want to test this create a plugin with an section and a lib-file sub-element. e.g. <lib-file src="libs/org.simalliance.openmobileapi.v2.0.2.jar" arch="device"/>

"arch" is ignored because it is not relevant for Android.

With this patch all files listed in lib-file elements are copies to projectdir/lib/ where the Android build tools expect external libraries.

agrieve commented 10 years ago

Thanks! I've pulled it in: https://git-wip-us.apache.org/repos/asf?p=cordova-plugman.git;h=db43ef2

It will go live with the next version of plugman.

Please close this pull request.