android / user-interface-samples
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 (24 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 24 components.
  • 208 files, 11,217 lines of code (82.4% vs. main code).
  • "Notifications" is biggest, containing 19.15% of code.
  • "ImmersiveMode" is smallest, containing 0.65% of code.


Notifications2148 LOC (15%) 23 files
InteractiveSliceProviderKotlin1523 LOC (11%) 35 files
People1244 LOC (9%) 20 files
WindowManager1021 LOC (7%) 22 files
SliceViewerKotlin575 LOC (4%) 12 files
ElevationDrag491 LOC (3%) 10 files
ClippingBasic415 LOC (3%) 9 files
ElevationBasic384 LOC (2%) 9 files
AppShortcuts375 LOC (2%) 4 files
TextStyling357 LOC (2%) 8 files
AppWidget322 LOC (2%) 6 files
TextLinkify293 LOC (2%) 7 files
DownloadableFonts290 LOC (2%) 3 files
TextRoundedBackgroundKotlin289 LOC (2%) 6 files
TextStylingKotlin270 LOC (1%) 8 files
DownloadableFontsKotlin211 LOC (1%) 3 files
DarkTheme206 LOC (1%) 7 files
DragAndDrop197 LOC (1%) 2 files
SplashScreen151 LOC (1%) 5 files
EmojiCompat112 LOC (<1%) 2 files
EmojiCompatKotlin107 LOC (<1%) 3 files
DocumentCentricApps82 LOC (<1%) 2 files
PreferencesKotlin81 LOC (<1%) 1 files
ImmersiveMode73 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