feat: add a module graph to the README

This commit is contained in:
Harsh Shandilya 2023-04-02 23:38:03 +05:30
parent bc60929fe9
commit adfac94094
No known key found for this signature in database
5 changed files with 37 additions and 4 deletions

View file

@ -14,6 +14,32 @@ Unofficial Android app for read-only access to [lobste.rs](https://lobste.rs), b
Snapshots from the development branch can be obtained [here](https://github.com/msfjarvis/compose-lobsters/releases/tag/nightly).
## Dependency Diagram
```mermaid
%%{
init: {
'theme': 'neutral'
}
}%%
graph LR
benchmark --> android
android --> api
android --> common
android --> core
android --> coroutine-utils
android --> database
android --> metadata-extractor
android --> model
api --> model
common --> core
common --> database
common --> model
metadata-extractor --> model
database --> core
```
## License
See [LICENSE](LICENSE)

View file

@ -4,7 +4,7 @@
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
@file:Suppress("DSL_SCOPE_VIOLATION", "UnstableApiUsage")
@file:Suppress("UnstableApiUsage")
plugins {
id("dev.msfjarvis.claw.android-application")

View file

@ -1,14 +1,18 @@
/*
* Copyright © 2021-2022 Harsh Shandilya.
* Copyright © 2021-2023 Harsh Shandilya.
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
@file:Suppress("DSL_SCOPE_VIOLATION")
plugins {
id("dev.msfjarvis.claw.spotless")
id("dev.msfjarvis.claw.versions")
id("dev.msfjarvis.claw.kotlin-common")
alias(libs.plugins.android.test) apply false
alias(libs.plugins.modulegraph)
}
moduleGraphConfig {
readmePath.set(project.layout.projectDirectory.file("README.md").asFile.absolutePath)
heading.set("## Dependency Diagram")
}

View file

@ -93,5 +93,6 @@ whetstone = { module = "com.deliveryhero.whetstone:whetstone", version.ref = "wh
android-test = { id = "com.android.test", version.ref = "agp" }
anvil = "com.squareup.anvil:2.4.4"
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
modulegraph = "dev.iurysouza.modulegraph:0.2.2"
sqldelight = { id = "app.cash.sqldelight", version.ref = "sqldelight" }
whetstone = { id = "dev.msfjarvis.whetstone", version.ref = "whetstone" }

View file

@ -32,6 +32,8 @@ pluginManagement {
includeModule("com.github.ben-manes", "gradle-versions-plugin")
includeModule("org.gradle.android.cache-fix", "org.gradle.android.cache-fix.gradle.plugin")
includeModule("gradle.plugin.org.gradle.android", "android-cache-fix-gradle-plugin")
includeModule("dev.iurysouza.modulegraph", "dev.iurysouza.modulegraph.gradle.plugin")
includeModule("dev.iurysouza", "modulegraph")
}
}
exclusiveContent {