Tachiyomi-Extensions/settings.gradle.kts
arkon d84a4c90b1
Project reorganization (#5096)
* Rename AndroidConfig to Config

* Move base AndroidManifest.xml

* Make fallback icons into an Android module

* Add example of how to only load a single extension in Gradle project
2020-12-11 09:41:48 -05:00

31 lines
879 B
Plaintext

include(":annotations")
include(":defaultRes")
include(":lib-ratelimit")
project(":lib-ratelimit").projectDir = File("lib/ratelimit")
include(":duktape-stub")
project(":duktape-stub").projectDir = File("lib/duktape-stub")
include(":lib-dataimage")
project(":lib-dataimage").projectDir = File("lib/dataimage")
// Loads all extensions
File(rootDir, "src").eachDir { dir ->
dir.eachDir { subdir ->
val name = ":${dir.name}-${subdir.name}"
include(name)
project(name).projectDir = File("src/${dir.name}/${subdir.name}")
}
}
// Use this to load a single extension during development
// val lang = "all"
// val name = "mmrcms"
// include(":${lang}-${name}")
// project(":${lang}-${name}").projectDir = File("src/${lang}/${name}")
inline fun File.eachDir(block: (File) -> Unit) {
listFiles()?.filter { it.isDirectory }?.forEach { block(it) }
}