Reputation: 227
I have a native SDK for both iOS and Android platforms and now a customer requested a JS SDK for PhoneGap. I've followed a simple tutorial in order to learn how to create a PhoneGap plugin and it's quite easy: create PhoneGap Plugin tutorial. But my problem is that I need to add a static library (.a file or .jar) as part of my plugin.
Checking out the plugin.xml specification I've found several tags for different kinds of files:
I think that the correct choice is lib-file but the sample shows a dynamic library in BlackBerry:
<lib-file src="src/BlackBerry10/native/device/libfoo.so" arch="device" />
<lib-file src="src/BlackBerry10/native/simulator/libfoo.so" arch="simulator" />
Any clue? Thank you in advance
Upvotes: 0
Views: 465
Reputation: 98
You need to add it like a source-file and specify that is a framework in order to add the library to the target:
<source-file src="src/ios/YourSDK/YourAFile.a framework="true"
Upvotes: 2