fix: scripts runtime code and docs clean up
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
dependencies {
|
||||
implementation("org.jetbrains.kotlin:kotlin-scripting-common")
|
||||
implementation("org.jetbrains.kotlin:kotlin-scripting-jvm")
|
||||
implementation("org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable")
|
||||
implementation("org.jetbrains.kotlin:kotlin-scripting-ide-services")
|
||||
|
||||
implementation(project(":jadx-plugins:jadx-script:jadx-script-runtime"))
|
||||
implementation(project(":jadx-plugins:jadx-script:jadx-script-plugin"))
|
||||
|
||||
implementation(kotlin("scripting-common"))
|
||||
implementation(kotlin("scripting-jvm"))
|
||||
implementation(kotlin("scripting-compiler-embeddable"))
|
||||
implementation(kotlin("scripting-ide-services"))
|
||||
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
|
||||
implementation("io.github.microutils:kotlin-logging-jvm:3.0.5")
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
package jadx.plugins.script.ide
|
||||
|
||||
import jadx.plugins.script.runner.ScriptEval
|
||||
import jadx.plugins.script.ScriptEval
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import org.jetbrains.kotlin.scripting.ide_services.compiler.KJvmReplCompilerWithIdeServices
|
||||
import kotlin.script.experimental.api.ReplAnalyzerResult
|
||||
@@ -28,7 +28,7 @@ data class ScriptAnalyzeResult(
|
||||
val reports: List<ScriptDiagnostic>,
|
||||
)
|
||||
|
||||
class ScriptCompiler(private val scriptName: String) {
|
||||
class ScriptServices(private val scriptName: String) {
|
||||
private val replCompiler = KJvmReplCompilerWithIdeServices()
|
||||
private val compileConf = ScriptEval().buildCompileConf()
|
||||
|
||||
Reference in New Issue
Block a user