/ghostjs

Primary LanguageKotlin

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.whoisjeeva: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")