From f760a41650b0550735f605328dfd832cac77f10b Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Mon, 21 Dec 2020 01:29:00 +0330 Subject: [PATCH] [SKIP CI] URL intent filter (#5209) * [CI SKIP] URL intent filter * [CI SKIP] move to better location * [CI SKIP] fix url * Update CONTRIBUTING.md Co-authored-by: arkon --- CONTRIBUTING.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bf62692d1..b718aef1e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -190,8 +190,6 @@ a.k.a. the Latest source entry point in the app (invoked by tapping on the "Late - If search functionality is not available, return `Observable.just(MangasPage(emptyList(), false))` - `getFilterList` will be called to get all filters and filter types. **TODO: explain more about `Filter`** - - #### Manga Details - When user taps on a manga, `fetchMangaDetails` and `fetchChapterList` will be called and the results will be cached. @@ -223,6 +221,14 @@ a.k.a. the Latest source entry point in the app (invoked by tapping on the "Late - If possible try to stick to the general workflow from `HttpSource`/`ParsedHttpSource`; breaking them may cause you more headache than necessary. - By implementing `ConfigurableSource` you can add settings to your source, which is backed by [`SharedPreferences`](https://developer.android.com/reference/android/content/SharedPreferences). +### Advanced Extension features + +#### URL intent filter + +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). + + ## Running To aid in local development, you can use the following run configuration to launch an extension: