Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

The apk generated is too big! #39

jinleileiking opened this Issue May 18, 2011 · 6 comments


None yet
2 participants

We must reduce the size to let the ruboto really run on Android!!


donv commented May 18, 2011


Thanks for participating!

Yes, we need to address the apk size. What would be the maximum tolerable apk size?

Many ideas have been proposed:

Install ruboto-core as a separate apk to let many ruboto-core based apps share the platform files.

Analysis of the app before packaging, and delete parts of ruboto-core that are not used.

Config that allows developers to specify what parts of ruboto to include or exclude, and possibly specify non-standard features like PSych in 1.8 mode.

Any other ideas?

Your idea is same as me:

  1. Give a app in app-market like 'ruboto base' apk, every app using ruboto, must download the apk. (just like jvm or gem)
  2. Auto/manuel reduce the useless jruby things, or other, --- it is hard to realize

I am not digging the source code too deep, so i do not know why the size is so big. I think it is because the jruby, i am not sure, reduce the size is a difficult task.

About the size, In my county, 500k is good.(China), in market, many apk is this size.


donv commented Jul 28, 2011

I have some progress with this. I have added a config to exclude the parts of the Ruby standard library you don't need. This can reduce a full megabyte of your APK and installed app size. A minimal APK is now 3MB.

See https://github.com/ruboto/ruboto-core/issues/56 for more.


donv commented Aug 20, 2011

Anybody got time to look at making a Ruboto platform APK that contains jruby-core and jruby-stdlib?

@ghost ghost assigned donv Aug 28, 2011


donv commented Aug 28, 2011

We now have a Ruboto Core platform apk working, so I close this issue.

@donv donv closed this Aug 28, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment