Sunday, April 5, 2020

Re: [ANN] Sting v0.13 (Beta) release

On Sun, Apr 5, 2020 at 7:55 PM foal <sspiridonov@gmail.com> wrote:
> Does Sting support the GWT "Code Splitting"? (http://www.gwtproject.org/doc/latest/DevGuideCodeSplitting.html), I tried to migrate from GIN to the Dagger, but it was the main issue why I still use the GIN.

Sting does not do it much differently than Dagger. It has been a while
since we used code-splitting but I believe all you would need to do is
use an interface to define the service and instantiate the service
implementation behind a split point from a provider method in a
@Fragment annotated type. (A similar approach should be achievable in
dagger but putting the split point in a @Provides annotated method in
a @Module but I have not checked daggers generated code to make sure
it would still work)

So, in theory, it should be fine but I have yet to try it myself ;)

--
Cheers,

Peter Donald

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CACiKNc6Sy8yW28wXt%2BV4mEG%2B4E6it7Gif7RVeqhZBH-oavByOQ%40mail.gmail.com.

No comments:

Post a Comment