[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:
parent
d8b59bf7b4
commit
5e363b2268
|
@ -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:
|
Make sure that your new extension's `build.gradle` file follows the following structure:
|
||||||
|
|
||||||
```gradle
|
```groovy
|
||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
apply plugin: 'kotlin-android'
|
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.
|
[`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 {
|
dependencies {
|
||||||
compileOnly project(':duktape-stub')
|
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/).
|
[`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 {
|
dependencies {
|
||||||
implementation project(':lib-ratelimit')
|
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
|
#### 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).
|
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:
|
For example, an extension that needs Gson could add the following:
|
||||||
|
|
||||||
```
|
```groovy
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
compileOnly 'com.google.code.gson:gson:2.8.2'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue