Skip to content

Commit 8cb46ab

Browse files
authored
docs: Update module dependency graphs (openMF#1844)
1 parent 0526359 commit 8cb46ab

File tree

75 files changed

+7491
-20
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+7491
-20
lines changed

build.gradle.kts

+20
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,24 @@ tasks.register("versionFile") {
4646
val file = File(projectDir, "version.txt")
4747

4848
DynamicVersion.setDynamicVersion(file, project.version.toString())
49+
}
50+
51+
// Task to print all the module paths in the project e.g. :core:data
52+
// Used by module graph generator script
53+
tasks.register("printModulePaths") {
54+
subprojects {
55+
if (subprojects.size == 0) {
56+
println(this.path)
57+
}
58+
}
59+
}
60+
61+
// Configuration for CMP module dependency graph
62+
moduleGraphAssert {
63+
configurations += setOf("commonMainImplementation", "commonMainApi")
64+
configurations += setOf("androidMainImplementation", "androidMainApi")
65+
configurations += setOf("desktopMainImplementation", "desktopMainApi")
66+
configurations += setOf("jsMainImplementation", "jsMainApi")
67+
configurations += setOf("nativeMainImplementation", "nativeMainApi")
68+
configurations += setOf("wasmJsMainImplementation", "wasmJsMainApi")
4969
}

core/analytics/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
# :core:analytics module
2+
## Dependency graph
3+
![Dependency graph](../../docs/images/graphs-kmp/dep_graph_core_analytics.svg)

core/common/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
# :core:common module
2+
## Dependency graph
3+
![Dependency graph](../../docs/images/graphs-kmp/dep_graph_core_common.svg)

core/data/README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@ graph LR
2121
:core:data --> :core:model
2222
:core:data --> :core:network
2323
:core:data --> :core:analytics
24-
```
24+
```
25+
# :core:data module
26+
## Dependency graph
27+
![Dependency graph](../../docs/images/graphs-kmp/dep_graph_core_data.svg)

core/datastore/README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ graph LR
1515
end
1616
:core:datastore --> :core:model
1717
:core:datastore --> :core:common
18-
```
18+
```
19+
# :core:datastore module
20+
## Dependency graph
21+
![Dependency graph](../../docs/images/graphs-kmp/dep_graph_core_datastore.svg)

core/designsystem/README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ graph LR
1313
:core:model["model"]
1414
end
1515
:core:designsystem --> :core:model
16-
```
16+
```
17+
# :core:designsystem module
18+
## Dependency graph
19+
![Dependency graph](../../docs/images/graphs-kmp/dep_graph_core_designsystem.svg)

core/domain/README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ graph LR
1717
:core:domain --> :core:common
1818
:core:domain --> :core:data
1919
:core:domain --> :core:model
20-
```
20+
```
21+
# :core:domain module
22+
## Dependency graph
23+
![Dependency graph](../../docs/images/graphs-kmp/dep_graph_core_domain.svg)

core/model/README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ graph LR
1313
:core:common["common"]
1414
end
1515
:core:model --> :core:common
16-
```
16+
```
17+
# :core:model module
18+
## Dependency graph
19+
![Dependency graph](../../docs/images/graphs-kmp/dep_graph_core_model.svg)

core/network/README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ graph LR
1717
:core:network --> :core:common
1818
:core:network --> :core:model
1919
:core:network --> :core:datastore
20-
```
20+
```
21+
# :core:network module
22+
## Dependency graph
23+
![Dependency graph](../../docs/images/graphs-kmp/dep_graph_core_network.svg)

core/ui/README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,7 @@ graph LR
1919
:core:ui --> :core:designsystem
2020
:core:ui --> :core:model
2121
:core:ui --> :core:common
22-
```
22+
```
23+
# :core:ui module
24+
## Dependency graph
25+
![Dependency graph](../../docs/images/graphs-kmp/dep_graph_core_ui.svg)
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)