airbnb / airbnb/DeepLinkDispatch
Will be super to extract "match" logic into own re-usable method/class
- Dominant language
- Kotlin
- Stars
- 4.4k
- Forks
- 414
- PR merge metrics
- No merged PRs in 30d
Description
I found that it will be very useful to have some simple matches in code, like:
```java
public static final String PATTERN = "example://data/{param}/something";
/* pseudo code */
public static boolean isMatch(final String uri){
final DpMatch m = DeepLink.match(PATTERN, uri);
if( m.isSuccess() ){
final String value = m.getValue( "{param}" );
return "expected".equals(value);
}
return false;
}
```
Contributor guide
Research direction
Start by locating the existing DeepLink.match logic and the DpMatch result type. Determine how the current matching behavior could be exposed as a reusable method or class, then verify that the example pattern and parameter lookup still produce the expected match result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100