Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Include Ruboto-Core with Android app on install

I am trying to utilize Ruboto to code Android apps in JRuby with ease. However, when I install the app to the emulator using rake install, it works with side-effects.

When I launch the app on the emulator, I see a screen with the Ruboto image and it tells me that in order to continue, I need to install the Ruboto Core platform package. How can I do this with my main package so the user will not need to ever install the Ruboto Core on their own?

like image 553
ardavis Avatar asked Oct 20 '12 20:10

ardavis


1 Answers

There's a couple ways to go about this. Generally, the idea is you include the jruby jars within the apk, which will increase the size, but will not require the user to download the core separately.

When creating the app, you could use the --with-jruby flag and it will include it for you. Since you've already created it, open the command prompt in the app directory and use

ruboto update jruby --force

This will add the jruby jars into the project for you as well.

Please note that in order to do this, you must have the jruby-jars installed, which can easily be done through gem install jruby-jars

EDIT: I was informed by Uwe Kubosch that you can also use ruboto gen jruby inside the application directory to accomplish the same thing.

like image 105
Robert 'Jet' Rowe Avatar answered Oct 08 '22 01:10

Robert 'Jet' Rowe