airbnb / DeepLinkDispatch

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

Is it still true that "Intent Filters may only contain a single data element for a URI pattern"? #215

Open mtiidla opened 6 years ago

mtiidla commented 6 years ago

The readme specifies that:

Intent filters may only contain a single data element for a URI pattern. Create separate intent filters to capture additional URI patterns.

Following that advice explodes the AndroidManifest.xml a few hundred lines in our case. We have tried to use only two intent filters, one for http|s links and one for in-app links and everything works.

Have we misunderstood what you mean by "URI pattern" or is that note outdated to an older version of DeepLinkDispatch?

I can also see in the demo app that multiple data (scheme) elements are applied to a single intent filter.

<intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
    <data android:scheme="http"/>
    <data android:scheme="https"/>
    <data android:host="airbnb.com"/>
</intent-filter>