Reputation: 598
we have successfully created a decent phonegap application working on android and iphone. (using eclipse android dev environment and running phonegap cloud build)
But I have integrated a Github plugin which was specific to Android "Sharing Plugin" .For that I had included Share.java file and other javascript file. But how will I integrate ios share plugin in same codebase (eclipse project) or I will have to Copy entire code on Mac machine use xCode Dev environment and use the plugin that way I will end up making two builds (only HTML, JS ,CSS common) and I will be using two Builds on Adobe Cloud Build service.
IS there any way to keep a single Source base for iOS and Android for even plugins? (put .m .h files of ios plugin in same eclipse codebase and use adobe phonegap build and use the plugin)
Upvotes: 3
Views: 936
Reputation:
If you are planning on using PhoneGap Build service, they only support a limited set of plugins. You will not be able to import this plugin with PhoneGap build.
If you switch to building locally, this will invariably split your code into two projects (one for Android and one for iOS). You can create symlinks and keep www assets in a single location, but native code will be split (including your plugins).
Upvotes: 3