Rhino for Android

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

License

License

GroupId

GroupId

io.apisense
ArtifactId

ArtifactId

rhino-android
Last Version

Last Version

1.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

Rhino for Android
Give access to RhinoScriptEngine from the JSR223 interfaces on Android JRE.
Project URL

Project URL

https://apisense.io
Source Code Management

Source Code Management

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

Download rhino-android

How to add to project

<!-- https://jarcasting.com/artifacts/io.apisense/rhino-android/ -->
<dependency>
    <groupId>io.apisense</groupId>
    <artifactId>rhino-android</artifactId>
    <version>1.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/io.apisense/rhino-android/
implementation 'io.apisense:rhino-android:1.1.1'
// https://jarcasting.com/artifacts/io.apisense/rhino-android/
implementation ("io.apisense:rhino-android:1.1.1")
'io.apisense:rhino-android:jar:1.1.1'
<dependency org="io.apisense" name="rhino-android" rev="1.1.1">
  <artifact name="rhino-android" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.apisense', module='rhino-android', version='1.1.1')
)
libraryDependencies += "io.apisense" % "rhino-android" % "1.1.1"
[io.apisense/rhino-android "1.1.1"]

Dependencies

compile (2)

Group / Artifact Type Version
org.mozilla : rhino jar 1.7.10
com.sun.phobos : jsr223-api jar 1.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

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.1.1'
}

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

io.apisense

Versions

Version
1.1.1
1.1
1.0