Closed kicktheken closed 9 years ago
@kicktheken Thanks for trying Crosswalk Project for iOS and your feedback, that is truly appreciated! I did miss some important steps in the wiki, I'll update it ASAP with more detailed and precise steps.
For the issue that I can see for now, the additional steps you may need to follow are:
git submodule update --init --recursive
to retrieve the submodules which needed by Cordova project;We have two Cordova plugin demos in Demos/Cordova/ directory, you may try them to test the Cordova plugin support.
Anything you need to know or issues you've found, feel free to let us know. Thanks very much for your help.
Hi @kicktheken , I've updated the Cordova Plugin Support Wiki with a more detailed process to create a demo, you may check it out. And feel free to let us know if there's any issue in it or any further suggestions. Thanks
Thanks! I'll try it out and let you know.
I've fixed some of the instructions for setting up cordova plugin here:
https://github.com/crosswalk-project/crosswalk-ios/wiki/Cordova-Plugin-Support
However, I still am not able to get the full Cordova plugin setup working. I've read through the code, and it seems that
XWalkCordovaExtension.js
injects the code fromplugins/org.apache.cordova.device/www/device.js
as a script in the global scope. Since it is in the global scope, the variables such asrequire
andmodule
are undefined and thus will throw an error on loading the plugin. That code is meant to be enclosed as such via cordova-cli builder:However, I still cannot load the plugin. What is the issue?