What is the workflow for developing PhoneGap 3.5. * Plugins for ios?

I am developing a PhoneGap 3.5.0 application for iOS and Android. I want to write some functionality in my own code, and so I was looking to create a plugin.

I followed the Plugin Development Guide and all the code is working fine; I can call my own functions through the JS api that the plugin provides.

My question is how to continue development from here. Right now, I just added the plugin classes manually to the project (first I develop the plugin for iOS, so at the moment I'm not working on android). It seems like I should do the plugin code in a separate repo that resembles this example and then add it to the application using the CLI tools.

I did this and the plugin is added to the application. However, I don’t know how to continue making changes to the plugin, testing them, and updating plugin files in the application after changing them in the plugin repository.

What is the intended / recommended workflow here? Do I need to modify the plugin files directly in the application from Xcode, and then copy them to the plugin repository every time?

+4
source share
1 answer

. cordova create myplugintest, cordova platform add ios , , kickstart cordova plugin add https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin. , cordova prepare , , cordova build.

js , . , , , ( plugin.xml , ). myplugintest.

myplugintest , -. : , plugin.xml, , . , , , . , . , (- ). , IDE VCS, .

, .

- , , - , . , JS- ( errorcallback). , plugin.xml js-modue . , js , .

+3

Source: https://habr.com/ru/post/1547830/


All Articles