Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using mixed Java/Ruby code in an Android app?

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?

like image 658
Piotr Turek Avatar asked Mar 11 '26 08:03

Piotr Turek


2 Answers

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

like image 176
MarkDBlackwell Avatar answered Mar 12 '26 23:03

MarkDBlackwell


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.

like image 20
kaneda Avatar answered Mar 13 '26 00:03

kaneda



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!