$scriptEngine.startString(function (config) { config.setContent("\$console.log('message from startString')") config.setName("startString") config.setLanguage(function (l) { l.setName("Javascript") l.setUrl("https://github.com/m8test/language-release/releases/download/javascript-0.1.0/com.m8test.javascript.v8-release_0.1.0.apk") l.setVersion("0.1.0") }) config.requireComponent(function (c) { c.setName("Storage") c.setUrl("https://github.com/m8test/Plugins/releases/download/0.1.0/storage-release-unsigned.apk") c.setVersion("0.1.0") }) $objectWrappers.wrap(config.getComponents()).forEach(function (it) { $console.log(it) }) }) $console.log("message from main script")