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(); }