airbnb / DeepLinkDispatch

A simple, annotation-based library for making deep link handling better on Android
http://nerds.airbnb.com/deeplinkdispatch/
4.37k stars 407 forks source link

Add support for placeholders and their substitutions in paths #272

Closed adellhk closed 4 years ago

adellhk commented 4 years ago

Using a string at DLD instance instantiation, users can configure one placeholder's replacement with that string

public BaseDeepLinkDelegate(
    List<? extends BaseRegistry> registries,
    String pathVariableReplacementValue
  ) {
    this.registries = registries;
    this.pathVariableReplacementValue = pathVariableReplacementValue;
  }

Given:

Then:

@rossbacher @BenSchwab

adellhk commented 4 years ago

closing in favor of https://github.com/airbnb/DeepLinkDispatch/pull/274