Discussion:
Generate user.agent independent code
Philipp
2018-11-30 14:13:53 UTC
Permalink
I'm interested in compiling my GWT code unaware of any user.agent. When
removing the user.agent property from the xml GWT compiles 5 permutations
but I would actually like just one (for Safari, Firefox, Chrome, Edge). I
can for example set the user.agent to Safari, compile it and it runs
(apparently) perfectly fine in Firefox but of course I get the severe
warning that: "Possible problem with your *.gwt.xml module file.".

So my question is two fold:

- Can I create just one permutation without getting a warning when
loading the file
- How could I check where GWT creates different JavaScript code for
different browsers to find possible issues when just using one permutation
for the listed browsers.

If it helps:

- I'm not using any GUI functionality from GWT. Basically GWT is only
glue code between TypeScript and a WebAssembly API.
- The whole project consists of 2 GWT Projects, where one will launch a
native javascript web worker which loads the 2nd GWT project.
--
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+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Lars
2018-11-30 20:16:45 UTC
Permalink
Try <collapse-all-properties />
See https://www.sencha.com/blog/how-to-reduce-compilation-time-for-your-gxt-projects/
--
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+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Philipp
2018-11-30 20:43:41 UTC
Permalink
Perfect, thanks!
Post by Lars
Try <collapse-all-properties />
See
https://www.sencha.com/blog/how-to-reduce-compilation-time-for-your-gxt-projects/
--
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+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Jens
2018-11-30 20:46:58 UTC
Permalink
If you are just using GWT JRE emulation then I think you could just only
inherit Core.gwt.xml from GWT SDK. That should not give you user agent
based permutation. The JRE emulation does not use deferred binding based on
user agent.

Once you only have a single permutation you can use the single script
linker by using <add-linker name="sso" /> in your GWT module. Then you
should have just a single js file as out

-- J.
--
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+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...