diff --git a/core/screenshot-testing/README.md b/core/screenshot-testing/README.md new file mode 100644 index 000000000..bab2e1a10 --- /dev/null +++ b/core/screenshot-testing/README.md @@ -0,0 +1,3 @@ +# :core:screenshot-testing module + +![Dependency graph](../../docs/images/graphs/dep_graph_core_screenshot_testing.svg) diff --git a/docs/images/graphs/dep_graph_core_screenshot_testing.svg b/docs/images/graphs/dep_graph_core_screenshot_testing.svg new file mode 100644 index 000000000..e9fc6d48a --- /dev/null +++ b/docs/images/graphs/dep_graph_core_screenshot_testing.svg @@ -0,0 +1,43 @@ + + + + + + +G + + + +:core:screenshot-testing + +:core:screenshot-testing + + + +:core:common + +:core:common + + + +:core:screenshot-testing->:core:common + + + + + +:core:designsystem + +:core:designsystem + + + +:core:screenshot-testing->:core:designsystem + + + + + diff --git a/generateModuleGraphs.sh b/generateModuleGraphs.sh index c759fea30..f69339502 100755 --- a/generateModuleGraphs.sh +++ b/generateModuleGraphs.sh @@ -14,12 +14,12 @@ # See the License for the specific language governing permissions and # limitations under the License. # - -# Script to generate dependency graphs for each of the modules -# Usage: generateModuleGraphs.sh --exclude-module :benchmarks --exclude-module :lint - -# Echo each command so the caller knows what's going on -set -e +# +# Script to generate dependency graphs for each of the modules. The --exclude-module parameter can +# be used to exclude modules which are not part of the root dependency graph (and which, if included +# would cause the script to fail. +# +# Usage: generateModuleGraphs.sh --exclude-module :benchmarks --exclude-module :lint --exclude-module :ui-test-hilt-manifest # Check if the dot command is available if ! command -v dot &> /dev/null @@ -47,14 +47,17 @@ while [[ $# -gt 0 ]]; do esac done -# Function to check and create README.md +# Get the module paths +module_paths=$(./gradlew -q printModulePaths --no-configuration-cache) + +# Function to check and create a README.md for modules which don't have one. check_and_create_readme() { local module_path="$1" local file_name="$2" local readme_path="${module_path:1}" # Remove leading colon readme_path=$(echo "$readme_path" | sed 's/:/\//g') # Replace colons with slashes using sed - readme_path="${readme_path}/README.md" + readme_path="${readme_path}/README.md" #Append the filename # Check if README.md exists and create it if not if [[ ! -f "$readme_path" ]]; then @@ -67,9 +70,6 @@ check_and_create_readme() { fi } -# Get the module paths -module_paths=$(./gradlew -q printModulePaths --no-configuration-cache) - # Loop through each module path echo "$module_paths" | while read -r module_path; do # Check if the module is in the excluded list @@ -83,6 +83,7 @@ echo "$module_paths" | while read -r module_path; do # Generate the .gv file in a temporary location # "docs/images/graphs/${file_name}.svg" # Remove the temporary .gv file