Wednesday, June 28, 2017

Transpile plain Java project WITHOUT references to any UI, DOM, or any other web/framework features

Hi all,

I have a Java project which performs scientific calculations. It does not have any dependencies and it does not reference any UI, DOM, or any other web environment features. It is basically a few custom data structures and algorithms. I wish to expose one class in this project using JsInterop and consume it in a React Native and React app.

I've successfully transpiled the Java into Javascript, but I am unable to use it my React Native app because the resulting Javascript seems to reference UI elements (there's always "var $wnd = $wnd || window.parent..." at the top of the cache.js file which React Native chokes on). Is there a way to achieve my goal and, if so, how?

Thanks,

Igor

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment