Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.