'. '

IBrwsr

From APIDesign

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
-
Presenter for [[DukeScript]] that renders on [[iOS]] (thanks to the power of [[RoboVM]]). Write your applications in [[DukeScript]] and deploy them to [[Android]] (thanks to [[DlvkBrwsr]]) and to [[iOS]] (thanks to [[IBrwsr]])!
+
Presenter for [[DukeScript]] that renders on [[iOS]] (thanks to the power of [[RoboVM]]). Write your applications in [[DukeScript]] and deploy them to [[Android]] (thanks to [[DlvkBrwsr]]) and to [[iOS]] (thanks to [[IBrwsr]])!
 +
 
 +
Steps to see [[MineSweeper]] on [[iOS]]. First of all general setup of the project:
 +
 
 +
Does not work yet! Waiting for upload of binaries to [[maven]] central!
 +
 
 +
<source lang="bash">
 +
$ hg clone http://source.apidesign.org/hg/html~demo/
 +
$ hg up -C 3bad49b62dfa
 +
$ mvn clean install -DskipTests
 +
</source>
 +
 
 +
Now you can launch the minesweeper in your [[iOS]] emulator:
 +
 
 +
<source lang="bash">
 +
$ cd minesweeper
 +
$ mvn -Pibrwsr clean install robovm:ipad-sim
 +
</source>
 +
 
 +
The [[RoboVM]] compilation may take its time, but at the end you should see [[MineSweeper]] in [[iOS]] simulator. Then it should be also easy to run the application on iPhone simulator or on real device:
 +
 
 +
<source lang="bash">
 +
$ mvn -Pibrwsr robovm:iphone-sim
 +
// and the device
 +
$ mvn -Pibrwsr,java.net robovm:ios-device
 +
</source>
 +
 
 +
Enjoy [[DukeScript]] on [[iOS]] and don't forget you can use it on [[Android]] via [[DlvkBrwsr]] as well, just try:
 +
 
 +
<source lang="bash">
 +
$ mvn -Pdlvkbrwsr clean install android:deploy android:run -Dandroid.sdk.path=/pathto/android-sdk-macosx/
 +
</source>

Revision as of 06:48, 20 May 2014

Presenter for DukeScript that renders on iOS (thanks to the power of RoboVM). Write your applications in DukeScript and deploy them to Android (thanks to DlvkBrwsr) and to iOS (thanks to IBrwsr)!

Steps to see MineSweeper on iOS. First of all general setup of the project:

Does not work yet! Waiting for upload of binaries to maven central!

$ hg clone http://source.apidesign.org/hg/html~demo/
$ hg up -C 3bad49b62dfa
$ mvn clean install -DskipTests

Now you can launch the minesweeper in your iOS emulator:

$ cd minesweeper
$ mvn -Pibrwsr clean install robovm:ipad-sim

The RoboVM compilation may take its time, but at the end you should see MineSweeper in iOS simulator. Then it should be also easy to run the application on iPhone simulator or on real device:

$ mvn -Pibrwsr robovm:iphone-sim
// and the device
$ mvn -Pibrwsr,java.net robovm:ios-device

Enjoy DukeScript on iOS and don't forget you can use it on Android via DlvkBrwsr as well, just try:

$ mvn -Pdlvkbrwsr clean install android:deploy android:run -Dandroid.sdk.path=/pathto/android-sdk-macosx/
Personal tools
buy