Minor cleanup

This commit is contained in:
arkon 2021-02-06 18:08:10 -05:00
parent 210051bf8c
commit 403ee49cb0
3 changed files with 3 additions and 7 deletions

View File

@ -61,6 +61,5 @@ dependencies {
} }
apply from: "$rootDir/common-dependencies.gradle" apply from: "$rootDir/common-dependencies.gradle"
preBuild.dependsOn(lintKotlin) preBuild.dependsOn(lintKotlin)
lintKotlin.dependsOn(formatKotlin) lintKotlin.dependsOn(formatKotlin)

View File

@ -20,8 +20,6 @@ repositories {
// dependencies // dependencies
apply("$rootDir/common-dependencies.gradle") apply("$rootDir/common-dependencies.gradle")
tasks.register("runAllGenerators") { tasks.register("runAllGenerators") {
doLast { doLast {
val isWindows = System.getProperty("os.name").toString().toLowerCase().contains("win") val isWindows = System.getProperty("os.name").toString().toLowerCase().contains("win")
@ -31,7 +29,7 @@ tasks.register("runAllGenerators") {
"$projectDir/build/intermediates/aar_main_jar/debug/classes.jar" // jar made from this module "$projectDir/build/intermediates/aar_main_jar/debug/classes.jar" // jar made from this module
)) ))
.joinToString(if (isWindows) ";" else ":") .joinToString(if (isWindows) ";" else ":")
val javaPath = System.getProperty("java.home") + "/bin/java" // path of java val javaPath = "${System.getProperty("java.home")}/bin/java"
val mainClass = "eu.kanade.tachiyomi.multisrc.GeneratorMainKt" // Main class we want to execute val mainClass = "eu.kanade.tachiyomi.multisrc.GeneratorMainKt" // Main class we want to execute
@ -43,7 +41,7 @@ tasks.register("runAllGenerators") {
val javaProcess = Runtime.getRuntime().exec(javaCommand) val javaProcess = Runtime.getRuntime().exec(javaCommand)
val exitCode = javaProcess.waitFor() val exitCode = javaProcess.waitFor()
if (exitCode != 0){ if (exitCode != 0){
throw Exception("Running java failed with exit code: $exitCode") throw Exception("Java process failed with exit code: $exitCode")
} }
} }
} }

View File

@ -1,2 +1 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest package="eu.kanade.tachiyomi.lib.themesources" />
package="eu.kanade.tachiyomi.lib.themesources" />