mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Sort by filename for easier search in the logs.
This commit is contained in:
@@ -54,7 +54,7 @@ fun DependencyHandlerScope.composeDependencies(libs: LibrariesForLibs) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun DependencyHandlerScope.addImplementationProjects(directory: File, path: String, nameFilter: String) {
|
private fun DependencyHandlerScope.addImplementationProjects(directory: File, path: String, nameFilter: String) {
|
||||||
directory.listFiles().orEmpty().forEach { file ->
|
directory.listFiles().orEmpty().also { it.sort() }.forEach { file ->
|
||||||
if (file.isDirectory) {
|
if (file.isDirectory) {
|
||||||
val newPath = "$path:${file.name}"
|
val newPath = "$path:${file.name}"
|
||||||
val buildFile = File(file, "build.gradle.kts")
|
val buildFile = File(file, "build.gradle.kts")
|
||||||
@@ -104,6 +104,7 @@ fun DependencyHandlerScope.allFeaturesApi(rootDir: File) {
|
|||||||
val featuresDir = File(rootDir, "features")
|
val featuresDir = File(rootDir, "features")
|
||||||
addImplementationProjects(featuresDir, ":features", "api")
|
addImplementationProjects(featuresDir, ":features", "api")
|
||||||
}
|
}
|
||||||
|
|
||||||
fun DependencyHandlerScope.allFeaturesImpl(rootDir: File) {
|
fun DependencyHandlerScope.allFeaturesImpl(rootDir: File) {
|
||||||
val featuresDir = File(rootDir, "features")
|
val featuresDir = File(rootDir, "features")
|
||||||
addImplementationProjects(featuresDir, ":features", "impl")
|
addImplementationProjects(featuresDir, ":features", "impl")
|
||||||
|
|||||||
+1
-1
@@ -56,7 +56,7 @@ include(":anvilcodegen")
|
|||||||
include(":samples:minimal")
|
include(":samples:minimal")
|
||||||
|
|
||||||
fun includeProjects(directory: File, path: String, maxDepth: Int = 1) {
|
fun includeProjects(directory: File, path: String, maxDepth: Int = 1) {
|
||||||
directory.listFiles().orEmpty().forEach { file ->
|
directory.listFiles().orEmpty().also { it.sort() }.forEach { file ->
|
||||||
if (file.isDirectory) {
|
if (file.isDirectory) {
|
||||||
val newPath = "$path:${file.name}"
|
val newPath = "$path:${file.name}"
|
||||||
val buildFile = File(file, "build.gradle.kts")
|
val buildFile = File(file, "build.gradle.kts")
|
||||||
|
|||||||
Reference in New Issue
Block a user