android / gradle-recipes
Components & Dependencies

An overview of source code logical components.

Intro

Logical decomposition is a representation of the organization of the main source code, where every and each file is put in exactly one logical component.

  • A software system can have one or more logical decompositions.
  • A logical decomposition can be defined in two ways in Sokrates.
  • First approach is based on the folders structure. Components are mapped to folders at defined folder depth relative to the source code root.
  • Second approach is based on explicit definition of each component. In such explicit definitions, components are explicitly named and their files are selected based on explicitly defined path and content filters.
  • A logical decomposition is considered invalid if a file is selected into two or more components.This constraint is introduced in order to facilitate measuring of dependencies among components.
  • Files not assigned to any component are put into a special "Unclassified" component.
Learn more...
Logical Decompositions Overview

Analyzed system has 1 logical decomposition:

  • primary (32 components)

Logical Decomposition #1: PRIMARY

The decompositions is based on the folder structure (relative to the source code root), with automatically defined folder depth to have at least 10 components.

Bubble Chart | Tree Map
Components
The "primary" logical decomposition has 32 components.
  • 163 files, 2,759 lines of code (100.0% vs. main code).
  • "BuildSrc/manifestReplacementTest" is biggest, containing 6.09% of code.
  • "Groovy/manifestTransformerTest" is smallest, containing 0.51% of code.


BuildSrc/manifestReplacementTest168 LOC (6%) 10 files
BuildSrc/getApksTest168 LOC (6%) 10 files
BuildSrc/manifestUpdaterTest162 LOC (5%) 10 files
BuildSrc/workerEnabledTransformation148 LOC (5%) 8 files
Unclassified147 LOC (5%) 6 files
BuildSrc/setVersionsFromTask134 LOC (4%) 8 files
BuildSrc/customizeAgpDslAndVariant133 LOC (4%) 10 files
BuildSrc/customizeAgpDslAndVariantWithConvenientAPI123 LOC (4%) 10 files
BuildSrc/testAsmTransformApi110 LOC (3%) 7 files
BuildSrc/customizeAgpDsl105 LOC (3%) 8 files
Kotlin/manifestReplacementTest104 LOC (3%) 5 files
BuildSrc/testVariantFilteringOnBuildType99 LOC (3%) 7 files
Kotlin/workerEnabledTransformation89 LOC (3%) 3 files
Kotlin/getPublicTxt81 LOC (2%) 3 files
Kotlin/bundleTransformerTest75 LOC (2%) 3 files
Kotlin/addCustomFieldWithValueFromTask75 LOC (2%) 4 files
Kotlin/libraryManifestTransformerTest74 LOC (2%) 4 files
Kotlin/addCustomResValueFromTask73 LOC (2%) 4 files
Kotlin/addManifestPlaceholderFromTask72 LOC (2%) 3 files
Kotlin/manifestTransformerTest72 LOC (2%) 3 files
BuildSrc/addBuildTypeUsingDslFinalize71 LOC (2%) 6 files
Kotlin/getApksTest60 LOC (2%) 3 files
Kotlin/getMappingFile58 LOC (2%) 3 files
Kotlin/getBundleTest56 LOC (2%) 3 files
Kotlin/getAarTest53 LOC (1%) 3 files
Kotlin/addCustomBuildConfigField52 LOC (1%) 4 files
Kotlin/addCustomManifestPlaceholder49 LOC (1%) 3 files
Kotlin/addCustomResValueField49 LOC (1%) 4 files
Kotlin/changeMinSdkVersion36 LOC (1%) 3 files
Kotlin/addBuildTypeUsingDslFinalize35 LOC (1%) 3 files
Groovy/manifestReplacementTest14 LOC (<1%) 1 files
Groovy/manifestTransformerTest14 LOC (<1%) 1 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-02-03 05:25