mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions.git
synced 2025-12-10 07:52:02 +01:00
Default libVersion to 1.2 (#9014)
This commit is contained in:
@@ -78,7 +78,6 @@ ext {
|
||||
pkgNameSuffix = '<lang>.<mysourcename>'
|
||||
extClass = '.<MySourceName>'
|
||||
extVersionCode = 1
|
||||
libVersion = '1.2'
|
||||
containsNsfw = true
|
||||
}
|
||||
|
||||
@@ -91,7 +90,7 @@ apply from: "$rootDir/common.gradle"
|
||||
| `pkgNameSuffix` | A unique suffix added to `eu.kanade.tachiyomi.extension`. The language and the site name should be enough. Remember your extension code implementation must be placed in this package. |
|
||||
| `extClass` | Points to the class that implements `Source`. You can use a relative path starting with a dot (the package name is the base path). This is used to find and instantiate the source(s). |
|
||||
| `extVersionCode` | The extension version code. This must be a positive integer and incremented with any change to the code. |
|
||||
| `libVersion` | The version of the [extensions library](https://github.com/tachiyomiorg/extensions-lib) used. |
|
||||
| `libVersion` | (Optional, defaults to `1.2`) The version of the [extensions library](https://github.com/tachiyomiorg/extensions-lib) used. |
|
||||
| `containsNsfw` | (Optional, defaults to `false`) Flag to indicate that a source contains NSFW content. |
|
||||
|
||||
The extension's version name is generated automatically by concatenating `libVersion` and `extVersionCode`. With the example used above, the version would be `1.2.1`.
|
||||
@@ -309,18 +308,17 @@ multisrc
|
||||
There are three steps in running and testing a theme source:
|
||||
|
||||
1. Generate the sources
|
||||
- **Option 1: Only generate sources from one theme**
|
||||
- **Option 1: Only generate sources from one theme**
|
||||
- **Method 1:** Find and run `<ThemeName>Generator` run configuration form the `Run/Debug Configuration` menu.
|
||||
- **Method 2:** Directly run `<themepkg>.<ThemeName>Generator.main` by pressing the play button in front of the method shown inside Android Studio's Code Editor to generate sources from the said theme.
|
||||
- **Option 2: Generate sources from all themes**
|
||||
- **Option 2: Generate sources from all themes**
|
||||
- **Method 1:** Run `./gradlew multisrc:generateExtensions` from a terminal window to generate all sources.
|
||||
- **Method 2:** Directly run `Generator.GeneratorMain.main` by pressing the play button in front of the method shown inside Android Studio's Code Editor to generate all sources.
|
||||
-
|
||||
2. Sync gradle to import the new generated sources inside `generated-src`
|
||||
- **Method 1:** Android Studio might prompt to sync the gradle. Click on `Sync Now`.
|
||||
- **Method 2:** Manually re-sync by opening `File` -> `Sync Project with Gradle Files` or by pressing `Alt+f` then `g`.
|
||||
3. Build and test the generated Extention like normal `src` sources.
|
||||
- It's recommended to make changes here to skip going through step 1 and 2 multiple times, and when you are done, copying the changes back to `multisrc`.
|
||||
- It's recommended to make changes here to skip going through step 1 and 2 multiple times, and when you are done, copying the changes back to `multisrc`.
|
||||
|
||||
### Scaffolding overrides
|
||||
You can use this python script to generate scaffolds for source overrides. Put it inside `multisrc/overrides/<themepkg>/` as `scaffold.py`.
|
||||
|
||||
Reference in New Issue
Block a user