Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shannah/cn1cordova
Support for Apache Cordova Apps in Codename One
https://github.com/shannah/cn1cordova
Last synced: 2 months ago
JSON representation
Support for Apache Cordova Apps in Codename One
- Host: GitHub
- URL: https://github.com/shannah/cn1cordova
- Owner: shannah
- Created: 2015-11-07T00:31:04.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-11T02:00:29.000Z (about 9 years ago)
- Last Synced: 2023-04-01T05:43:14.642Z (almost 2 years ago)
- Language: JavaScript
- Size: 0 Bytes
- Stars: 0
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Support for Cordova Hybrid Apps in Codename One
This project enables developers to create Cordova (HTML5/Javascript) hybrid native apps with Codename One.
## Installing the Tools
1. Download latest cn1-cordova-tools.zip, and extract locally.
## Using the Tools
### Creating a New Codename One Cordova Project
From the terminal or command prompt:
~~~
$ cd cn1-cordova-tools
$ ant create -Did=com.example.hello -Dname=HelloWorld
~~~This will create a new Codename One netbeans project at cn1-cordova-tools/HelloWorld with the "packageName" set to `com.example.hello` and the app's name "HelloWorld".
Open this project up in Netbeans to start working on it. You'll find the app's www files (e.g. index.html etc...) inside the src/html directory of the project.
#### Specifying Output Directory
By default the project is generated inside the cn1-cordova-tools directory. You can change this to a different directory using the `-Ddest=
~~~This will create Netbeans Project inside the cn1-cordova-tools directory with settings (package id and name) matching the app specified in the `-Dsource` argument. The contents of the app's `www` directory will be copied to the project's `src/html` directory.
WARNING: Currently plugins won't be imported. If the app has plugins installed, you'll see a warning printed. Future versions may add support for this. There is a Codename One API for developing Cordova plugins and distributing them as cn1libs.
NOTE: You can also specify the `-Ddest` parameter to specify an alternate output directory for your project.