diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6a0d100f4..47b07efe0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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' }