Problems using Rhino on Android

后端 未结 3 1386
清酒与你
清酒与你 2020-12-05 14:54

I\'m trying to use Mozilla Rhino in my Java application for Android to evaluate some JavaScript. I am using Eclipse + ADT plugin.

First I tried simply downloading th

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-05 15:30

    I've written a library which allows to run Rhino on Android.

    Advantages include:

    • Rhino can only run on optimization level -1. The library supports all levels.
    • The library supports the use of JavaAdapter, which is not possible with base Rhino.
    • Altough i did not benchmark this, it should give a performance increase. (Compiled code is faster than interpreted code)

    https://github.com/F43nd1r/rhino-android

提交回复
热议问题