Cordova Configure your own plugin

Source: Internet
Author: User

add a remote plug-in using
<span style= "FONT-SIZE:14PX;" >$ Cordova Plugin Add org.apache.cordova.device</span>
and if the local plug-in is not configured, every time Cordova build iOS, CONFIG. s will lose the reference, how is this good?


go back to the root directory and configure the. json file in plugins;As for how to configure, you can first add a remote plug-in, and then copy his format;

if the local plug-in has. js, you also need to"Installed_plugins": {
"Org.apache.cordova.inappbrowser": {
"Package_name": "Com.example.hello"
}
}
This place is configured, because I write plug-ins are generally iOS source files, so you need to configure;


if it was developed at the same time through SVN and Android, any one add remote plug-in, the other side will have a problem, the problem is,. JSON is configured with commands, but the actual project file is not imported. Returning to build is not possible. this time you need to manually import the file. First, configure your own. JSON, method or copy it remotely.

then, create a remote plugin in your own copy, and the directory structure is made as follows:


Finally follow the path, copy all project:

that's OK.

Summary: If you do not add the remote plug-in, be sure to configure. JSON. Then copy the source remote plug-in to the project.

Cordova Configure your own plugin

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.