by Zigurd · 12y ago · 0 comments
But you have other problems to solve: How are you going to generate DEX? Generate java bytecode and bring dx to the runtime? Make jruby emit DEX directly?
EDIT: As per the comment below, that is how it's done. You generate Java bytecode and run dx on it.
To the best of my knowledge, there are too projects for generating Dex bytecode directly:
1. dexmaker https://code.google.com/p/dexmaker/ 2. ASMDEX http://asm.ow2.org/asmdex-index.html
A different approach, which I used for Clojure/Android, is to generate JVM bytecode and then use a bundled dx tool to generate Dalvik bytecode from that.