chore(build): Reduce global warnings (#1684)

This commit is contained in:
Claudemirovsky
2023-06-07 08:28:34 +00:00
committed by GitHub
parent 1769a8c6e1
commit 632b626f35
9 changed files with 12 additions and 11 deletions

View File

@ -5,6 +5,7 @@ import java.io.File
/**
* Finds and calls all `ThemeSourceGenerator`s
*/
@Suppress("unused_parameter")
fun main(args: Array<String>) {
val userDir = System.getProperty("user.dir")!!
val sourcesDirPath = "$userDir/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc"

View File

@ -6,6 +6,7 @@ import java.io.File
* Finds all themes and creates an Intellij Idea run configuration for their generators
* Should be run after creation/deletion of each theme
*/
@Suppress("unused_parameter")
fun main(args: Array<String>) {
val userDir = System.getProperty("user.dir")!!
val sourcesDirPath = "$userDir/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc"

View File

@ -142,7 +142,7 @@ interface ThemeSourceGenerator {
writeSourceClasses(projectSrcPath, srcOverridePath, source, themePkg, themeClass)
copyThemeClasses(userDir, themePkg, projectRootPath)
copyThemeReadmes(userDir, themePkg, overridesPath, projectRootPath)
copyResFiles(resOverridePath, defaultResPath, source, projectRootPath)
copyResFiles(resOverridePath, defaultResPath, projectRootPath)
}
}
@ -182,7 +182,7 @@ interface ThemeSourceGenerator {
}
}
private fun copyResFiles(resOverridePath: String, defaultResPath: String, source: ThemeSourceData, projectRootPath: String): Any {
private fun copyResFiles(resOverridePath: String, defaultResPath: String, projectRootPath: String): Any {
// check if res override exists if not copy default res
val resOverride = File(resOverridePath)
return if (resOverride.exists()) {