Skip to content

Commit 31f455c

Browse files
committed
revert erroneous change to the project template introduced with past merge
1 parent 58361eb commit 31f455c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

build-artifacts/project-template-gradle/src/main/java/com/tns/RuntimeHelper.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,12 @@ public void initRuntime()
135135

136136
runtime.init();
137137
runtime.runScript(new File(appDir, "internal/ts_helpers.js"));
138+
139+
File javaClassesModule = new File(appDir, "app/tns-java-classes.js");
140+
if (javaClassesModule.exists()) {
141+
runtime.runModule(javaClassesModule);
142+
}
143+
138144
try {
139145
// put this call in a try/catch block because with the latest changes in the modules it is not granted that NativeScriptApplication is extended through JavaScript.
140146
Runtime.initInstance(this.app);

0 commit comments

Comments
 (0)