Disable gwt obfuscation for specific model classes

Is it possible in GWT 2.4+ to disable obfuscation for certain classes of Java models?

The reason I ask this question is: we use GWT RPC to communicate with the server and must store these returned objects, etc. in local storage using the indexed DB API, we are currently using the websql api. If GWT confuses / renames your properties, etc., then this makes using the indexed DB API useless in your code.

Maybe there is a way to ask GWT to replace the property string with a confusing version in your api requests with indexed DB?

I could create a completely new java model that uses javascript overlays so that they persist when GWT compiles and replaces GWT RPC with JSON RPC, but that would be a lot.

Any other ideas would be appreciated!

I also looked at an AutoBean framework that produces nice JSON output for your model interfaces, but I don't think you have a simple javascript view under the hood.

+7
source share
1 answer

You can set the GWT style attribute to compile PRETTY or DETAILED . so GWT will not replace class, method, or variable names. For more information see this link .

+3
source

All Articles