Clone, and cd into the cordevicljs
folder.
lein figwheel
Wait for figwheel to finish and notify browser of changed files!
Then in another terminal tab:
lein run
Then in a third tab:
cd resources
cordova platform add browser
cordova platform add ios|android
cordova plugin add cordova-plugin-device
cordova plugin add org.apache.cordova.dialogs
cordova run browser
This should show a mobile flat UI native like interface with a slider menu and a JavaScript alert telling you that Native Device bridge is working.
Then to test in device emulator:
cordova run ios|android
Refer to XCode/Android SDK manuals if this won't work.
If it works you should see the same app as before, but this time with a real native dialog instead of a JavaScript alert.
Please don't hesitate to contact us if you have any questions/suggestions etc.!
If you want to know all the steps we've went through to convert Rente to CorDeviCLJS, read cordevicljs-howto.textile (might be converted to Markdown at some point).
Ourselves - CorDeviCLJS is based on Enterlab Rente, which can be found here: https://github.com/enterlab/rente.
And the people enabling the tech that Rente is based upon (see Special Thanks in the Rente README for further info).
Copyright © Enterlab 2015
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.