Skip to content

Commit

Permalink
Default libVersion to 1.2 (#9014)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkon authored Sep 9, 2021
1 parent 4f59751 commit bc7d8c8
Show file tree
Hide file tree
Showing 259 changed files with 24 additions and 275 deletions.
10 changes: 4 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ ext {
pkgNameSuffix = '<lang>.<mysourcename>'
extClass = '.<MySourceName>'
extVersionCode = 1
libVersion = '1.2'
containsNsfw = true
}
Expand All @@ -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`.
Expand Down Expand Up @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ android {
targetSdkVersion AndroidConfig.targetSdk
applicationIdSuffix pkgNameSuffix
versionCode extVersionCode
versionName "$libVersion.$extVersionCode"
versionName project.ext.properties.getOrDefault("libVersion", "1.2") + ".$extVersionCode"
setProperty("archivesBaseName", "tachiyomi-$pkgNameSuffix-v$versionName")
manifestPlaceholders = [
appName : "Tachiyomi: $extName",
Expand Down
1 change: 0 additions & 1 deletion multisrc/src/main/java/generator/ThemeSourceGenerator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ interface ThemeSourceGenerator {
extClass = '.${source.className}'
extFactory = '$themePkg'
extVersionCode = ${baseVersionCode + source.overrideVersionCode + multisrcLibraryVersion}
libVersion = '1.2'
${if (source.isNsfw) "containsNsfw = true\n" else ""}
}
$defaultAdditionalGradleText
Expand Down
1 change: 0 additions & 1 deletion src/all/batoto/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ ext {
pkgNameSuffix = 'all.batoto'
extClass = '.BatoToFactory'
extVersionCode = 14
libVersion = '1.2'
containsNsfw = true
}

Expand Down
1 change: 0 additions & 1 deletion src/all/comickfun/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ ext {
pkgNameSuffix = 'all.comickfun'
extClass = '.ComickFunFactory'
extVersionCode = 6
libVersion = '1.2'
containsNsfw = true
}

Expand Down
1 change: 0 additions & 1 deletion src/all/commitstrip/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'all.commitstrip'
extClass = '.CommitStripFactory'
extVersionCode = 3
libVersion = '1.2'
}

apply from: "$rootDir/common.gradle"
1 change: 0 additions & 1 deletion src/all/cubari/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ ext {
pkgNameSuffix = "all.cubari"
extClass = '.CubariFactory'
extVersionCode = 9
libVersion = '1.2'
}

apply from: "$rootDir/common.gradle"
1 change: 0 additions & 1 deletion src/all/dragonball_multiverse/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'all.dragonball_multiverse'
extClass = '.DbMFactory'
extVersionCode = 4
libVersion = '1.2'
}

apply from: "$rootDir/common.gradle"
1 change: 0 additions & 1 deletion src/all/ehentai/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'all.ehentai'
extClass = '.EHFactory'
extVersionCode = 14
libVersion = '1.2'
containsNsfw = true
}

Expand Down
1 change: 0 additions & 1 deletion src/all/genkanio/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ ext {
pkgNameSuffix = "all.genkanio"
extClass = '.GenkanIO'
extVersionCode = 3
libVersion = '1.2'
}

apply from: "$rootDir/common.gradle"
1 change: 0 additions & 1 deletion src/all/hentaihand/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ ext {
pkgNameSuffix = 'all.hentaihand'
extClass = '.HentaiHandFactory'
extVersionCode = 4
libVersion = '1.2'
containsNsfw = true
}

Expand Down
1 change: 0 additions & 1 deletion src/all/hitomi/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ ext {
pkgNameSuffix = 'all.hitomi'
extClass = '.HitomiFactory'
extVersionCode = 10
libVersion = '1.2'
containsNsfw = true
}

Expand Down
1 change: 0 additions & 1 deletion src/all/imhentai/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'all.imhentai'
extClass = '.IMHentaiFactory'
extVersionCode = 3
libVersion = '1.2'
containsNsfw = true
}

Expand Down
1 change: 0 additions & 1 deletion src/all/komga/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'all.komga'
extClass = '.KomgaFactory'
extVersionCode = 30
libVersion = '1.2'
}

dependencies {
Expand Down
1 change: 0 additions & 1 deletion src/all/lanraragi/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'all.lanraragi'
extClass = '.LANraragi'
extVersionCode = 6
libVersion = '1.2'
}

dependencies {
Expand Down
1 change: 0 additions & 1 deletion src/all/mangadex/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ ext {
pkgNameSuffix = 'all.mangadex'
extClass = '.MangaDexFactory'
extVersionCode = 131
libVersion = '1.2'
containsNsfw = true
}

Expand Down
1 change: 0 additions & 1 deletion src/all/mangapark/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ ext {
pkgNameSuffix = 'all.mangapark'
extClass = '.MangaParkFactory'
extVersionCode = 8
libVersion = '1.2'
containsNsfw = true
}

Expand Down
1 change: 0 additions & 1 deletion src/all/mangaplus/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ ext {
pkgNameSuffix = 'all.mangaplus'
extClass = '.MangaPlusFactory'
extVersionCode = 23
libVersion = '1.2'
}

apply from: "$rootDir/common.gradle"
1 change: 0 additions & 1 deletion src/all/mangatoon/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'all.mangatoon'
extClass = '.MangaToonFactory'
extVersionCode = 2
libVersion = '1.2'
}

apply from: "$rootDir/common.gradle"
1 change: 0 additions & 1 deletion src/all/mango/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'all.mango'
extClass = '.Mango'
extVersionCode = 4
libVersion = '1.2'
}

dependencies {
Expand Down
1 change: 0 additions & 1 deletion src/all/myreadingmanga/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'all.myreadingmanga'
extClass = '.MyReadingMangaFactory'
extVersionCode = 43
libVersion = '1.2'
containsNsfw = true
}

Expand Down
1 change: 0 additions & 1 deletion src/all/nhentai/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'all.nhentai'
extClass = '.NHFactory'
extVersionCode = 29
libVersion = '1.2'
containsNsfw = true
}

Expand Down
1 change: 0 additions & 1 deletion src/all/nhentaicom/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'all.nhentaicom'
extClass = '.NHentaiComFactory'
extVersionCode = 2
libVersion = '1.2'
containsNsfw = true
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ class NHentaiCom(override val lang: String) : HttpSource() {
description = jsonObject["description"]!!.jsonPrimitive.content
status = SManga.COMPLETED
thumbnail_url = jsonObject["image_url"]!!.jsonPrimitive.content
genre = runCatching{ jsonObject["tags"]!!.jsonArray.joinToString { it.jsonObject["name"]!!.jsonPrimitive.content }}.getOrNull()
artist = runCatching{ jsonObject["artists"]!!.jsonArray.joinToString { it.jsonObject["name"]!!.jsonPrimitive.content }}.getOrNull()
author = runCatching{ jsonObject["authors"]!!.jsonArray.joinToString { it.jsonObject["name"]!!.jsonPrimitive.content }}.getOrNull()
genre = runCatching { jsonObject["tags"]!!.jsonArray.joinToString { it.jsonObject["name"]!!.jsonPrimitive.content } }.getOrNull()
artist = runCatching { jsonObject["artists"]!!.jsonArray.joinToString { it.jsonObject["name"]!!.jsonPrimitive.content } }.getOrNull()
author = runCatching { jsonObject["authors"]!!.jsonArray.joinToString { it.jsonObject["name"]!!.jsonPrimitive.content } }.getOrNull()
}
}

Expand Down
1 change: 0 additions & 1 deletion src/all/ninehentai/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ ext {
pkgNameSuffix = 'all.ninehentai'
extClass = '.NineHentai'
extVersionCode = 13
libVersion = '1.2'
containsNsfw = true
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class NineHentai : HttpSource() {
): Request {
val request = SearchRequest(
text = searchText,
page = page - 1, // Source starts counting from 0, not 1
page = page - 1, // Source starts counting from 0, not 1
sort = sort,
pages = Range(range),
tag = Items(
Expand Down
1 change: 0 additions & 1 deletion src/all/ninemanga/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = "all.ninemanga"
extClass = '.NineMangaFactory'
extVersionCode = 15
libVersion = '1.2'
}

apply from: "$rootDir/common.gradle"
1 change: 0 additions & 1 deletion src/all/noisemanga/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'all.noisemanga'
extClass = '.NoiseMangaFactory'
extVersionCode = 4
libVersion = '1.2'
}

dependencies {
Expand Down
1 change: 0 additions & 1 deletion src/all/simplyhentai/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ ext {
pkgNameSuffix = 'all.simplyhentai'
extClass = '.SimplyHentaiFactory'
extVersionCode = 4
libVersion = '1.2'
containsNsfw = true
}

Expand Down
1 change: 0 additions & 1 deletion src/all/tachidesk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ ext {
pkgNameSuffix = 'all.tachidesk'
extClass = '.Tachidesk'
extVersionCode = 2
libVersion = '1.2'
containsNsfw = true
}

Expand Down
1 change: 0 additions & 1 deletion src/all/toomics/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'all.toomics'
extClass = '.ToomicsFactory'
extVersionCode = 6
libVersion = '1.2'
}

apply from: "$rootDir/common.gradle"
1 change: 0 additions & 1 deletion src/all/vinnieVeritas/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'all.vinnieVeritas'
extClass = '.vinnieVeritasFactory'
extVersionCode = 2
libVersion = '1.2'
}

dependencies {
Expand Down
1 change: 0 additions & 1 deletion src/ar/asgardteam/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'ar.asgardteam'
extClass = '.AsgardTeam'
extVersionCode = 11
libVersion = '1.2'
}

apply from: "$rootDir/common.gradle"
1 change: 0 additions & 1 deletion src/ar/gmanga/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'ar.gmanga'
extClass = '.Gmanga'
extVersionCode = 6
libVersion = '1.2'
containsNsfw = false
}

Expand Down
1 change: 0 additions & 1 deletion src/ar/mangaae/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'ar.mangaae'
extClass = '.MangaAe'
extVersionCode = 8
libVersion = '1.2'
}

dependencies {
Expand Down
1 change: 0 additions & 1 deletion src/ar/mangaalarab/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'ar.mangaalarab'
extClass = '.MangaAlarab'
extVersionCode = 6
libVersion = '1.2'
}

apply from: "$rootDir/common.gradle"
1 change: 0 additions & 1 deletion src/ar/mangalink/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'ar.mangalink'
extClass = '.MangaLink'
extVersionCode = 4
libVersion = '1.2'
}

apply from: "$rootDir/common.gradle"
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,4 @@ class MangaLink : ParsedHttpSource() {
Type("كوميك", "5"),
Type("غير معروف", "6"),
)

}
1 change: 0 additions & 1 deletion src/ar/remanga/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'ar.remanga'
extClass = '.REManga'
extVersionCode = 1
libVersion = '1.2'
}

apply from: "$rootDir/common.gradle"
1 change: 0 additions & 1 deletion src/ar/shqqaa/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'ar.shqqaa'
extClass = '.Shqqaa'
extVersionCode = 2
libVersion = '1.2'
}

apply from: "$rootDir/common.gradle"
1 change: 0 additions & 1 deletion src/ca/fansubscat/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'ca.fansubscat'
extClass = '.FansubsCat'
extVersionCode = 1
libVersion = '1.2'
containsNsfw = true
}

Expand Down
1 change: 0 additions & 1 deletion src/de/mangatube/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'de.mangatube'
extClass = '.MangaTube'
extVersionCode = 1
libVersion = '1.2'
}

apply from: "$rootDir/common.gradle"
1 change: 0 additions & 1 deletion src/de/wiemanga/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ext {
pkgNameSuffix = 'de.wiemanga'
extClass = '.WieManga'
extVersionCode = 4
libVersion = '1.2'
}

apply from: "$rootDir/common.gradle"
1 change: 0 additions & 1 deletion src/en/bilibilicomics/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ ext {
pkgNameSuffix = 'en.bilibilicomics'
extClass = '.BilibiliComics'
extVersionCode = 7
libVersion = '1.2'
containsNsfw = true
}

Expand Down
1 change: 0 additions & 1 deletion src/en/brewingscans/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ ext {
pkgNameSuffix = 'en.brewingscans'
extClass = '.BrewingScans'
extVersionCode = 1
libVersion = '1.2'
containsNsfw = true
}

Expand Down
Loading

0 comments on commit bc7d8c8

Please sign in to comment.