We’re proud to announce the latest version of DukeScript support for iOS and Android. We’ve already submitted the new NetBeans plugin for publication. This will make it really easy to get started. It’s currently being reviewed, and we hope it will be available before the end of February. In the meantime if you would like to start using them please try out our new Maven Archetypes.
The first Archetype creates a basic application:
$ mvn archetype:generate \ -DarchetypeGroupId=com.dukescript.archetype \ -DarchetypeArtifactId=knockout4j-archetype \ -DarchetypeVersion=0.20
The second archetype creates a CRUD application that shows how you can do client-server communication and reuse Model code on both ends:
$ mvn archetype:generate \ -DarchetypeGroupId=com.dukescript.archetype \ -DarchetypeArtifactId=crud4j-archetype \ -DarchetypeVersion=0.20
Update: Since January 2017 there is also 3rd visual archetype showing integration of various visual libraries (like line charts):
$ mvn archetype:generate \ -DarchetypeGroupId=com.dukescript.archetype \ -DarchetypeArtifactId=visual-archetype \ -DarchetypeVersion=0.20
The archetype can generate subprojects for each of the supported platforms. Currently we support iOS, Desktop (via JavaFX), Android, NetBeans plugin, and Browser (via bck2brwsr). The JavaFX-based project will always be generated, as this is integrated with the NetBeans visual debugger and the other debugging functions. The other subprojects are only generated on demand using these properties:
Create Android project:
Create iOS project with Intel’s Multi OS Engine:
Run in browser (without any Java plugin installed):
Create iOS project with RoboVM:
Create NetBeans Module:
Have fun playing with the new archetypes and let us know if you find any problems!
The Source Code of the new version of the Maven Archetypes is available on github. Feel free to fork it and improve it: