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
This commit is contained in:
arkon
2020-12-11 09:41:48 -05:00
committed by GitHub
parent 0c39ab336b
commit d84a4c90b1
13 changed files with 49 additions and 21 deletions

View File

@@ -1,4 +1,5 @@
include(":annotations")
include(":defaultRes")
include(":lib-ratelimit")
project(":lib-ratelimit").projectDir = File("lib/ratelimit")
@@ -9,6 +10,7 @@ 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}"
@@ -17,6 +19,12 @@ File(rootDir, "src").eachDir { dir ->
}
}
// 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) }
}