compose-compiler-reports-html
v1.0.8
Published
A tool to convert **Compose Compiler metrics and reports** into a fully **formatted HTML report**.
Readme
compose-compiler-reports-html
A tool to convert Compose Compiler metrics and reports into a fully formatted HTML report.
This project provides:
- Statistics overview: Find counts of
composable,classtypes that areunstable,non-skippable,readonly,inline, ornon-restartable. - Full module details: Lists all classes, composables, and metrics in tables with their properties.
- Multi-variant support: View reports for all build variants in a single output.
- Multi-module support: No need to generate separate outputs per module.
Features
| Feature | Description | |-----------------------|-------------------------------------------------------------------------------------| | Statistics overview | Counts unstable composables, non-skippable, readonly, inline, non-restartable items | | Full module tables | Shows classes, composables, metrics with all properties | | Multi-variant support | Includes all variants in one HTML report | | Multi-module support | Generates one consolidated output for all modules |
How to Run
After building the project into a JAR (java -jar app.jar), you can run it using:
java -jar app.jar -p <rootPath> -r <reportsDir> -o <outputDirectory>Arguments:
| Argument | Short | Description | Required / Default |
|-------------------|-------|--------------------------------------------------------------------------------------|--------------------|
| rootPath | -p | Root directory containing your Compose project | Required |
| reportsDir | -r | Path to Compose compiler reports directory, relative to each module's build folder | Required |
| outputDirectory | -o | Directory where formatted HTML report will be saved | Default: . |
Note:
reportsDiris relative to each module'sbuildfolder, e.g.,compose-compiler/reports.
Example Screenshots
Dark Theme
| Module View | Statistics View |
|--------------------------------------------------------------|----------------------------------------------------------------------|
|
|
|
Light Theme
| Module View | Statistics View |
|----------------------------------------------------------------|------------------------------------------------------------------------|
|
|
|
License
This project is licensed under the MIT License.
Summary
This tool lets you quickly analyze Compose projects and produce a clean, navigable HTML report with all module information, metrics, and statistics in one place, supporting multi-variant and multi-module projects.
