diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d56659031..afa77dcfa 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -362,6 +362,12 @@ open class UriPartFilter(displayName: String, private val vals: Array<Pair<Strin Extensions can define URL intent filters by defining it inside a custom `AndroidManifest.xml` file. For an example, refer to [the NHentai module's `AndroidManifest.xml` file](https://github.com/tachiyomiorg/tachiyomi-extensions/blob/master/src/all/nhentai/AndroidManifest.xml) and [its corresponding `NHUrlActivity` handler](https://github.com/tachiyomiorg/tachiyomi-extensions/blob/master/src/all/nhentai/src/eu/kanade/tachiyomi/extension/all/nhentai/NHUrlActivity.kt). +To test if the URL intent filter is working as expected, you can try opening the website in a browser and navigating to the endpoint that was added as a filter or clicking a hyperlink. Alternatively, you can use the `adb` command below. + +```console +$ adb shell am start -d "<your-link>" -a android.intent.action.VIEW +``` + #### Renaming existing sources There is some cases where existing sources changes their name on the website. To correctly reflect these changes in the extension, you need to explicity set the `id` to the same old value, otherwise it will get changed by the new `name` value and users will be forced to migrate back to the source.