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