This repository contains the available extension catalogues for the Tachiyomi app.
[Download links to be added]
The easiest way to write and debug an extension is by directly hardcoding it in Tachiyomi's source code. Once it's working there, you have to clone this repository and create a new folder with a similar structure to the other catalogues. Then copy your catalogue implementation and make sure to change the package name if it was different in Tachiyomi. Finally, write the build.gradle file, which has the following structure:
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
ext {
appName = "Tachiyomi: My catalogue"
pkgNameSuffix = "lang.mycatalogue"
extClass = ".MyCatalogue"
extVersionCode = 1
extVersionSuffix = 1
libVersion = "1.0"
}
apply from: '../common.gradle'appNameis the name of the Android application. By prefixing it withTachiyomi:, it will be easier to locate with an Android package manager.pkgNameSuffixhas to be unique, and it's added toeu.kanade.tachiyomi.extension. The language and the site should be enough. Remember your catalogue code implementation must be placed in this package.extClasspoints to the catalogue class. You can use a relative path starting with a dot (the package name is the base path). This is required for Tachiyomi to instantiate the catalogue.extVersionCodeis the version code of the catalogue and should be increased with any change to the implementation.extVersionSuffixis the last part of the versioning.libVersionis the version of the extensions library* used. When this value is changed,extVersionSuffixshould be reset to1. With the example used above, the version of the catalogue would be1.0.1.
* Note: this library only contains the method definitions so that the compiler can resolve them. The actual implementation is written in Tachiyomi.
When everything is done, you can create the apk in Android Studio with Build > Build APK or Build > Generate Signed APK.