mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-25 11:42:47 +01:00
ed97926e4f
* Add PeachScan
* I love linting
* Also remove old WickedWitchScan
* It's not novo anymore
* Remove unneeded className declaration
* Filter light novel entries from latest view (because we can here)
* ACTUALLY filter light novel entries from latest view (because we can here)
* Fix icon path + add Dango Scan
* Move image-decoder dependency to multisrc project
* shut up android studio
* fix dep specifier in additional.gradle
* Update multisrc/overrides/peachscan/default/additional.gradle
Co-authored-by: stevenyomi <95685115+stevenyomi@users.noreply.github.com>
* Revert "Update multisrc/overrides/peachscan/default/additional.gradle"
This reverts commit 6b8722193a
.
The comment serves as an explanation for why the dependency shouldn't
be in the Gradle version catalog; because no one else cares about this
dependency.
* Optimize icons
---------
Co-authored-by: stevenyomi <95685115+stevenyomi@users.noreply.github.com>
83 lines
2.4 KiB
Plaintext
83 lines
2.4 KiB
Plaintext
plugins {
|
|
id("com.android.library")
|
|
kotlin("android")
|
|
id("kotlinx-serialization")
|
|
}
|
|
|
|
android {
|
|
compileSdk = AndroidConfig.compileSdk
|
|
|
|
defaultConfig {
|
|
minSdk = 29
|
|
}
|
|
|
|
namespace = "eu.kanade.tachiyomi.lib.themesources"
|
|
|
|
kotlinOptions {
|
|
freeCompilerArgs += "-opt-in=kotlinx.serialization.ExperimentalSerializationApi"
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
configurations {
|
|
compileOnly {
|
|
isCanBeResolved = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly(libs.bundles.common)
|
|
|
|
// Only PeachScan sources uses the image-decoder dependency.
|
|
//noinspection UseTomlInstead
|
|
compileOnly("com.github.tachiyomiorg:image-decoder:fbd6601290")
|
|
|
|
// Implements all :lib libraries on the multisrc generator
|
|
// Note that this does not mean that generated sources are going to
|
|
// implement them too; this is just to be able to compile and generate sources.
|
|
rootProject.subprojects
|
|
.filter { it.path.startsWith(":lib:") }
|
|
.forEach(::implementation)
|
|
}
|
|
|
|
tasks {
|
|
register<JavaExec>("generateExtensions") {
|
|
val buildDir = layout.buildDirectory.asFile.get()
|
|
classpath = configurations.compileOnly.get() +
|
|
configurations.androidApis.get() + // android.jar path
|
|
files("$buildDir/intermediates/aar_main_jar/debug/classes.jar") // jar made from this module
|
|
mainClass.set("generator.GeneratorMainKt")
|
|
|
|
workingDir = workingDir.parentFile // project root
|
|
|
|
errorOutput = System.out // for GitHub workflow commands
|
|
|
|
if (!logger.isInfoEnabled) {
|
|
standardOutput = org.gradle.internal.io.NullOutputStream.INSTANCE
|
|
}
|
|
|
|
dependsOn("ktLint", "assembleDebug")
|
|
}
|
|
|
|
register<org.jmailen.gradle.kotlinter.tasks.LintTask>("ktLint") {
|
|
if (project.hasProperty("theme")) {
|
|
val theme = project.property("theme")
|
|
source(files("src/main/java/eu/kanade/tachiyomi/multisrc/$theme", "overrides/$theme"))
|
|
return@register
|
|
}
|
|
source(files("src", "overrides"))
|
|
}
|
|
|
|
register<org.jmailen.gradle.kotlinter.tasks.FormatTask>("ktFormat") {
|
|
if (project.hasProperty("theme")) {
|
|
val theme = project.property("theme")
|
|
source(files("src/main/java/eu/kanade/tachiyomi/multisrc/$theme", "overrides/$theme"))
|
|
return@register
|
|
}
|
|
source(files("src", "overrides"))
|
|
}
|
|
}
|