
* lib themesources copied from SnakeDoc83/tachiyomi-extensions/library * update to the newer Genkan * update genkan generator * GenkanOriginal * code cleanup * add all Genkan sources * generate inside generated-src, res override * src override * move overrides out of library * move overrides to a better place * remove leftover generated files * remove leftover generated files * add generators main class * comment the code * Now sources are purely generated * uncomment generators * enhance comments * icons by @as280093 * fix pathing issues * nullpointerexception proof * runAllGenerators task * more flexibility in lib structure, fix a fiew errors * update github workflows * correct nonames scans directory name * rename SK Scans to Sleeping Knight Scans * fix typo * update depencencies * remove defaultRes from dependencies * fix bug with nsfw * fix nsfw generation * themesourcesLibraryVersion is included in build.gradle extVersionCode * improve javadoc * fix formatting and language code generation * comply with #5214 * common dependencies * rename and move lib/themesources into /multisrc * use not depricated form * cleanup runAllGenerators task * cleanup even more * oops extra file * remove test code * comments * update docs and refactor * update docs * requested changes * clean up dependencies * sealed dataClass * refactor * refactor string generators * bring back writeAndroidManifest * update overrideVersionCode javadoc * update overrideVersionCode javadoc * move dependency to extension source * refactor runAllGenerators * improve docs * remove extra file
67 lines
1.5 KiB
Groovy
67 lines
1.5 KiB
Groovy
apply plugin: 'org.jmailen.kotlinter'
|
|
|
|
android {
|
|
compileSdkVersion Config.compileSdk
|
|
buildToolsVersion Config.buildTools
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
manifest.srcFile "AndroidManifest.xml"
|
|
java.srcDirs = ['src']
|
|
res.srcDirs = ['res']
|
|
}
|
|
release {
|
|
manifest.srcFile "AndroidManifest.xml"
|
|
}
|
|
debug {
|
|
manifest.srcFile "AndroidManifest.xml"
|
|
}
|
|
}
|
|
|
|
defaultConfig {
|
|
minSdkVersion Config.minSdk
|
|
targetSdkVersion Config.targetSdk
|
|
applicationIdSuffix pkgNameSuffix
|
|
versionCode extVersionCode
|
|
versionName "$libVersion.$extVersionCode"
|
|
setProperty("archivesBaseName", "tachiyomi-$pkgNameSuffix-v$versionName")
|
|
manifestPlaceholders = [
|
|
appName : "Tachiyomi: $extName",
|
|
extClass: extClass,
|
|
nsfw: project.ext.properties.getOrDefault("containsNsfw", false) ? 1 : 0,
|
|
]
|
|
}
|
|
|
|
dependenciesInfo {
|
|
includeInApk = false
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(":core")
|
|
}
|
|
apply from: "$rootDir/common-dependencies.gradle"
|
|
|
|
|
|
preBuild.dependsOn(lintKotlin)
|
|
lintKotlin.dependsOn(formatKotlin)
|