Update docs on manifest files (#792)

* Update docs on manifest files

* Delete multisrc/overrides/mangaworld/default/AndroidManifest.xml
This commit is contained in:
stevenyomi 2024-01-30 09:04:25 +08:00 committed by Draff
parent 12e864f85f
commit 9db6152418
2 changed files with 7 additions and 10 deletions

View File

@ -198,7 +198,7 @@ The simplest extension structure looks like this:
```console ```console
$ tree src/<lang>/<mysourcename>/ $ tree src/<lang>/<mysourcename>/
src/<lang>/<mysourcename>/ src/<lang>/<mysourcename>/
├── AndroidManifest.xml ├── AndroidManifest.xml (optional)
├── build.gradle ├── build.gradle
├── res ├── res
│   ├── mipmap-hdpi │   ├── mipmap-hdpi
@ -227,15 +227,14 @@ src/<lang>/<mysourcename>/
should be adapted from the site name, and can only contain lowercase ASCII letters and digits. should be adapted from the site name, and can only contain lowercase ASCII letters and digits.
Your extension code must be placed in the package `eu.kanade.tachiyomi.extension.<lang>.<mysourcename>`. Your extension code must be placed in the package `eu.kanade.tachiyomi.extension.<lang>.<mysourcename>`.
#### AndroidManifest.xml #### AndroidManifest.xml (optional)
A minimal [Android manifest file](https://developer.android.com/guide/topics/manifest/manifest-intro) You only need to create this file if you want to add deep linking to your extension.
is needed for Android to recognize an extension when it's compiled into an APK file. You can also add See [URL intent filter](#url-intent-filter) for more information.
intent filters inside this file (see [URL intent filter](#url-intent-filter) for more information).
#### build.gradle #### build.gradle
Make sure that your new extension's `build.gradle` file follows the following structure: Make sure that your new extension's `build.gradle` file follows the following structure:
```gradle ```groovy
ext { ext {
extName = '<My source name>' extName = '<My source name>'
extClass = '.<MySourceName>' extClass = '.<MySourceName>'
@ -272,7 +271,7 @@ Referencing the actual implementation will help with understanding extensions' c
for handling [base 64 encoded image data](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) for handling [base 64 encoded image data](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs)
using an [OkHttp interceptor](https://square.github.io/okhttp/interceptors/). using an [OkHttp interceptor](https://square.github.io/okhttp/interceptors/).
```gradle ```groovy
dependencies { dependencies {
implementation(project(':lib-dataimage')) implementation(project(':lib-dataimage'))
} }
@ -284,7 +283,7 @@ dependencies {
internationalization in the sources. It allows loading `.properties` files with messages located under internationalization in the sources. It allows loading `.properties` files with messages located under
the `assets/i18n` folder of each extension, that can be used to translate strings under the source. the `assets/i18n` folder of each extension, that can be used to translate strings under the source.
```gradle ```groovy
dependencies { dependencies {
implementation(project(':lib-i18n')) implementation(project(':lib-i18n'))
} }

View File

@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest />