Truly Native Java Apps on Ios with Robovm

Truly Native Java Apps on Ios with Robovm

Truly Native Java Apps on iOS with RoboVM Niklas Therning / @ntherning Trillian Mobile AB The RoboVM project Goal: Java on iOS + other JVM languages: Scala, Clojure, ... Also supports OSX, Linux Windows support in progress The RoboVM project Started in 2010 - open-sourced in Jan 2013 github.com/robovm License allows closed source apps www.robovm.com / @robovm Features Compiles bytecode into machine code AOT RoboVM Main.class Main.class.o compiler Features Runtime classes based on Android java.lang.Object.class java.lang.Object.class.o RoboVM java.lang.String.class java.lang.String.class.o compiler java.lang.Class.class java.lang.Class.class.o Features Supports Java Native Interface (JNI) Linked statically libmyjni.a Main.class.o java.lang.Object.class.o Linker MyApp java.lang.String.class.o java.lang.Class.class.o Features Java to native bridge (Bro) Call native code without JNI @Library("c") public class Abs { static { Bro.bind(); Binds to abs(int) in libc } @Bridge static native int abs(int i); public static void main(String[] args) { System.out.println(abs(-100)); } } Supports structs, enums, callbacks Features Bindings for CocoaTouch APIs (WIP) Features Integrates with popular Java tools sbt Leiningen Features JavaFX on iOS Limitations No runtime bytecode loading No dynamic JNI (use static) No debugging (yet) ~Java6 APIs (Java7 syntax) Mac required for iOS apps Current Status Close to beta quality ~30 apps in App Store RoboVM+libGDX - Java game development framework libgdx.badlogicgames.com Demo Time! Future Documentation Debugging Complete Cocoa Touch Bindings Toolchain for Windows/Linux Java8 APIs using OpenJDK Java8 lambdas Interface Builder integration Wanna help out? groups.google.com/group/robovm www.robovm.com/student www.robovm.com/sponsors Questions? www.robovm.com / @robovm .

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    17 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us