DeepLinkDispatch
DeepLinkDispatch copied to clipboard
Extending DeepLink annotations
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.