Skip to content

The Duktape embeddable Javascript engine packaged for Android.

License

Notifications You must be signed in to change notification settings

lgengsy/duktape-android

 
 

Repository files navigation

Duktape Android

The Duktape embeddable Javascript engine packaged for Android.

Usage

Duktape duktape = Duktape.create();
try {
  Log.d("Greeting", duktape.evaluate("'hello world'.toUpperCase();"));
} finally {
  duktape.close();
}

Download

compile 'com.squareup.duktape:duktape-android:0.9.1'

This library is provided as a "fat" aar with native binaries for all available architectures. To reduce your APK size, use the ABI filtering/splitting techniques in the Android plugin: http:https://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits

Snapshots of the development version are available in Sonatype's snapshots repository.

Building

For Android

./gradlew build

For Mac

./build_mac

Set the java.library.path system property to build/ when you execute Java.

License

Copyright 2015 Square, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http:https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Note: The included C code from Duktape is licensed under MIT.

About

The Duktape embeddable Javascript engine packaged for Android.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • C 99.8%
  • Other 0.2%