APISENSE Rhino Android Save

Give access to RhinoScriptEngine from the JSR223 interfaces on Android JRE.

Project README

Travis Codecov Maven Central

Rhino script engine

This project aims to package a minimal Rhino script engine for Android.

The script engine source code is imported from openjdk implementation, version 7u40-b43.

Installation

Add the following repository and dependency to your build.gradle:

dependencies {
    compile 'io.apisense:rhino-android:1.2.0'
}

Usage

You can now call the Rhino script engine by using the jsr223, i.e.:

ScriptEngine engine = new ScriptEngineManager().getEngineByName("rhino");

Configuration

The ScriptEngine feature relies on reflection to instanciate the engines. This will cause trouble while shrinking your code using Proguard or R8.

To ease the integration of rhino-android in your project, you can find a sample project with up-to-date configuration for minification here: https://github.com/aveuiller/RhinoSampleApp

Open Source Agenda is not affiliated with "APISENSE Rhino Android" Project. README Source: APISENSE/rhino-android
Stars
103
Open Issues
2
Last Commit
1 year ago
License
Tags

Open Source Agenda Badge

Open Source Agenda Rating