Ok,
-- it is not exactly something I've dealt with recently so if I write something wrong I please ask the help of someone else in the group.
You have to discover which are those 3 permutation you are compiling:
you should be able to do it using the GWT Compiler report, this should give you instruction
http://www.gwtproject.org/doc/latest/DevGuideCompileReport.html
Or follow instruction in this other page if you use Maven:
https://gwt-maven-plugin.github.io/gwt-maven-plugin/user-guide/compiler-report.html
Then you need to create 2 different copies of your <yourappname>.gwt.xml module:
rename the first one to <yourappname>Ios.gwt.xml
rename the first one to <yourappname>Android.gwt.xml
I suggest to use the "rename-to" options in the gwt.xml files above, if you use
<module rename-to="yourappname-android"> and <module rename-to="yourappname-ios">
This would allow you to build both the android and ios version in a single compilation, you'll find these versions in a subfolder named the same as the value of rename-to.
Then it comes the hardest part:
with the compiler report you need to detect which are the permutations, and put in each gwt.xml the options to filter out all the permutations except the one needed:
if you are lucky, you are generating permutations for the 3 browsers, IE, FireFox and WebKit, if it is so, as both android and ios are using a WebKit,
you will be able to compile just one permutation adding this line on both files:
<set-property name="user.agent" value="safari" />
if you see more permutations than the browser on the compiler report, please list them here and maybe someone else can suggest you how to configure each gwt.xml to filter out the unwanted permutations.
Again, is a lot I don't play with these options so is someone reads something wrong please correct me!
regards,
Cristiano
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment