Well, that was easy enough. I modified the load function inside
RT.java to load classes/namespaces out of .dex files. (use
'my.compiled.namespace) will now look for either the compiled .class
(and load it), or it will look for a .clj (and compile & load it -
thanks to George Jahad's work), or it will look for a .dex file
("my.compiled.namespace.dex") inside the .apk and try to load the
class from there.
Charming!
I've already split clojure-master into several parts (.dex files for
core,main,zip,set,walk,xml,java,inspector,pprint,repl), so now the
next step would be to figure out how to get it all together and
integrate it with leiningen: Build clojure-master .dex files (<- done)
with a custom main (<- todo) which calls the users main android
activity (<- todo), package everything into an apk (<- done) and
install it on the emulator (<- done).