Does client need GWT classes?

43 views
Skip to first unread message

Neil

unread,
Feb 17, 2011, 7:21:34 PM2/17/11
to gwtrpccommlayer
Hi guys,

Thanks for gwtrpccommlayer, very handy, up and running very quickly
using your example as a guide.

Does the client need to have the GWT classes? If I don't include them
then I get runtime errors as it looks for
com.google.gwt.user.client.rpc.RemoteService that my interface
extends.

If I include gwt-user.jar then it works fine, but it increases the
size of my Android .apk substantially, from around 33KB to 2.5MB. Is
there a cut-down subset of those GWT classes I can get away with for
runtime?

Cheers
Neil

Dan Billings

unread,
Feb 17, 2011, 7:24:06 PM2/17/11
to gwtrpcc...@googlegroups.com
Unfortunately it is part of gwt-user.jar.

I recommend you use ProGuard to shrink the resultant jar.  I've not used it myself but it seems to be popular, and it should strip out all the unused GWT stuff.

Neil

unread,
Feb 23, 2011, 12:58:12 PM2/23/11
to gwtrpccommlayer
Thanks for the suggestion, currently fiddling with ProGuard trying to
get it as small as possible.

Cheers
Neil

Dan Billings

unread,
Feb 23, 2011, 1:00:30 PM2/23/11
to gwtrpcc...@googlegroups.com

Are you using the maven plugin?  I'd be interested to hear of your successes

Reply all
Reply to author
Forward
0 new messages