gumify / ghostjs

Executing and evaluating JavaScript using the Android native webview

Home Page:https://gumify.github.io/ghostjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GhostJS - To Evaluate JavaScript in Android

Release Build Status License GitHub repo size GitHub open issues

Getting Started

Add it in your root build.gradle at the end of repositories

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Add the dependency

implementation "com.github.gumify:ghostjs:$ghost_version"

Create an icecream instance

val ghostjs = Ghostjs()

Usage

ghostjs.executeFile("test.js")
scope.launch {
    val output: String? = ghostjs.eval("""return dio;""")
    Log.d("Ghostjs", output.toString())
}
ghostjs.loadUrl("https://www.google.com")

About

Executing and evaluating JavaScript using the Android native webview

https://gumify.github.io/ghostjs

License:MIT License


Languages

Language:Kotlin 98.7%Language:HTML 1.1%Language:JavaScript 0.2%