Why are both Rhino and V8 bundled in the APK?


Is there any explanation as to why APKs produced with 1.8 contain multiple copies of V8 as well as the Rhino library (possibly depending on configuration; I don't know), drastically bloating the APK size?

If one opts for V8, why are two versions included? Is it due to architectural/platform issues with deployment? And is there any way to exclude Rhino?

And if one opts for Rhino, is there any way to exclude the V8s?

2 Answers

  • I'm not sure but I think they fixed this in one of the latest 1.9.
    One of my apps has 1.5M now, thing that never happend before.

    — answered 4 years ago by Dan Tamas
    • Interesting. I don't get that, testing with the latest 1.9. I still get a huge (13 MB in my case) reported size on device.

      (Mind you, that's installed to internal storage; I have previously observed a substantial reduction in size when moving to SD. Not sure what that's all about.)

      — commented 4 years ago by K T
    • Yes, it's moved to SD.
      I don't know either why it behaves like this.

      — commented 4 years ago by Dan Tamas