[CI SKIP] DataImage library info added to CONTRIBUTING.md (#3515)

* [CI SKIP] DataImage library info added

* Update CONTRIBUTING.md

Co-authored-by: arkon <arkon@users.noreply.github.com>
This commit is contained in:
Aria Moradi 2020-06-14 00:40:59 +04:30 committed by GitHub
parent d8b59bf7b4
commit 5e363b2268
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 4 deletions

View File

@ -30,7 +30,7 @@ The quickest way to get started is to copy an existing extension's folder struct
Make sure that your new extension's `build.gradle` file follows the following structure:
```gradle
```groovy
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
@ -65,7 +65,7 @@ Extensions rely on [extensions-lib](https://github.com/tachiyomiorg/extensions-l
[`duktape-stub`](https://github.com/inorichi/tachiyomi-extensions/tree/master/lib/duktape-stub) provides stubs for using Duktape functionality without pulling in the full library. Functionality is bundled into the main Tachiyomi app.
```
```groovy
dependencies {
compileOnly project(':duktape-stub')
}
@ -75,19 +75,29 @@ dependencies {
[`lib-ratelimit`](https://github.com/inorichi/tachiyomi-extensions/tree/master/lib/ratelimit) is a library for adding rate limiting functionality as an [OkHttp interceptor](https://square.github.io/okhttp/interceptors/).
```
```groovy
dependencies {
implementation project(':lib-ratelimit')
}
```
#### DataImage library
[`lib-dataimage`](https://github.com/inorichi/tachiyomi-extensions/tree/master/lib/dataimage) is a library 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/).
```groovy
dependencies {
implementation project(':lib-dataimage')
}
```
#### Additional dependencies
You may find yourself needing additional functionality and wanting to add more dependencies to your `build.gradle` file. Since extensions are run within the main Tachiyomi app, you can make use of [its dependencies](https://github.com/inorichi/tachiyomi/blob/master/app/build.gradle).
For example, an extension that needs Gson could add the following:
```
```groovy
dependencies {
compileOnly 'com.google.code.gson:gson:2.8.2'
}