DeepLinkDispatch icon indicating copy to clipboard operation
DeepLinkDispatch copied to clipboard

Extending DeepLink annotations

Open 4gus71n opened this issue 6 years ago • 0 comments

I have two screens (activities) working under A/B tests. They should share the same deeplink, the only difference is that if a feature flag is enabled, it should show one activity and if not, show the other.

How can I extend the annotations in order to implement this?

Ideally I would like to have something like:

@AppDeepLink(value = "invite/{id}", ifFeatureFlagTrue = "myResource#useA.bool")
public class InviteActivityA ...
@AppDeepLink(value = "invite/{id}", ifFeatureFlagFalse = "myResource#useA.bool")
public class InviteActivityB ...

Then implement the logic to grab the feature flag value in the loader or somewhere. By the way, I'm using Swrve for the feature flags.

4gus71n avatar Sep 19 '17 13:09 4gus71n