Using mixed Java/Ruby code in an Android app?

394 Views Asked by At

Is it possible to write part of the Android app in Ruby and then, using JRuby and Android Tools, compile the code to run on Dalvik VM? I don't need any run-time support for interpreting Ruby code, just to run one Ruby module. It would be nice if the compiled code is minimal, to not drag along the entire Ruby standard library.

How to configure some IDE (like Eclipse) and Android Tools to support that?

2

There are 2 best solutions below

0
On BEST ANSWER

See these/three/answers (on stackoverflow) regarding @CharlesOliverNutter 's Ruby-like Mirah language that runs on the Dalvik VM.

1
On

Have a look at Ruboto.

Some time ago I was working on a debug lib for android that was using it but I got out of time. I looked at the ruboto-irb source code a lot.

The major downside I came up is that it needed to have ruboto installed on the device.