From f858e75a78b950898edfe90714ac963159a8c110 Mon Sep 17 00:00:00 2001 From: Hristo Deshev Date: Fri, 15 Apr 2016 18:00:08 +0300 Subject: [PATCH] Check for tns-java-classes.js bundling helper. --- .../src/main/java/com/tns/RuntimeHelper.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/project-template-gradle/src/main/java/com/tns/RuntimeHelper.java b/build/project-template-gradle/src/main/java/com/tns/RuntimeHelper.java index c9f0ae980..9c9d5fcd1 100644 --- a/build/project-template-gradle/src/main/java/com/tns/RuntimeHelper.java +++ b/build/project-template-gradle/src/main/java/com/tns/RuntimeHelper.java @@ -119,6 +119,12 @@ public void initRuntime() runtime.init(); runtime.runScript(new File(appDir, "internal/ts_helpers.js")); + + File javaClassesModule = new File(appDir, "app/tns-java-classes.js"); + if (javaClassesModule.exists()) { + runtime.runModule(javaClassesModule); + } + Runtime.initInstance(this.app); runtime.run(); }