Skip to content

Commit

Permalink
[build]: maybe fixed fdroid build
Browse files Browse the repository at this point in the history
  • Loading branch information
F0x1d committed Aug 22, 2024
1 parent 9fa3549 commit 90079d3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,16 @@ include(
)

private val modulesDirectories = setOf("core", "feature")
private val submoduleNameRegex = "^[A-Za-z0-9\\-_]+\$".toRegex()

requireNotNull(rootDir.listFiles()).filter { file ->
file.isDirectory && file.name in modulesDirectories
}.forEach { file ->
val modules = requireNotNull(file.listFiles())

modules.filter(File::isDirectory).forEach { moduleFile ->
include(":${file.name}:${moduleFile.name}")
if (submoduleNameRegex.matches(moduleFile.name)) {
include(":${file.name}:${moduleFile.name}")
}
}
}

0 comments on commit 90079d3

Please sign in to comment.