Trail-Sense icon indicating copy to clipboard operation
Trail-Sense copied to clipboard

Refactor / simplify large classes

Open kylecorry31 opened this issue 2 years ago • 0 comments

Here's a report of the 50 most complex classes in Trail Sense by complexity. I would like to refactor or simplify these classes over time. Either by splitting them into smaller classes, extracting functionality into Andromeda, or simplifying the code. This pretty much lines up with how I feel about the classes in Trail Sense, so I believe it to be an accurate metric.

170.58 ./com/kylecorry/trail_sense/navigation/ui/NavigatorFragment.kt 115.52 ./com/kylecorry/trail_sense/shared/FormatService.kt 111.12 ./com/kylecorry/trail_sense/navigation/paths/ui/PathOverviewFragment.kt 89.45 ./com/kylecorry/trail_sense/navigation/beacons/ui/list/BeaconListFragment.kt 83.38 ./com/kylecorry/trail_sense/astronomy/ui/AstronomyFragment.kt 77.36 ./com/kylecorry/trail_sense/tools/clinometer/ui/ClinometerFragment.kt 67.75 ./com/kylecorry/trail_sense/weather/infrastructure/subsystem/WeatherSubsystem.kt 66.46 ./com/kylecorry/trail_sense/shared/views/EnhancedImageView.kt 65.93 ./com/kylecorry/trail_sense/tools/maps/ui/ViewMapFragment.kt 63.40 ./com/kylecorry/trail_sense/diagnostics/SensorDetailsFragment.kt 62.70 ./com/kylecorry/trail_sense/shared/CustomUiUtils.kt 61.02 ./com/kylecorry/trail_sense/astronomy/domain/AstronomyService.kt 58.88 ./com/kylecorry/trail_sense/navigation/paths/infrastructure/persistence/PathService.kt 56.03 ./com/kylecorry/trail_sense/tools/maps/ui/MapListFragment.kt 55.99 ./com/kylecorry/trail_sense/shared/UserPreferences.kt 55.56 ./com/kylecorry/trail_sense/navigation/paths/ui/PathView.kt 55.29 ./com/kylecorry/trail_sense/weather/ui/WeatherFragment.kt 54.79 ./com/kylecorry/trail_sense/navigation/paths/ui/PathsFragment.kt 53.66 ./com/kylecorry/trail_sense/tools/tides/ui/CreateTideFragment.kt 52.80 ./com/kylecorry/trail_sense/settings/ui/ThermometerSettingsFragment.kt 51.87 ./com/kylecorry/trail_sense/shared/sensors/CustomGPS.kt 50.71 ./com/kylecorry/trail_sense/shared/views/PerspectiveCorrectionView.kt 50.45 ./com/kylecorry/trail_sense/tools/packs/ui/PackItemListFragment.kt 50.22 ./com/kylecorry/trail_sense/tools/qr/ui/ScanQRFragment.kt 49.71 ./com/kylecorry/trail_sense/tools/battery/ui/FragmentToolBattery.kt 49.66 ./com/kylecorry/trail_sense/tools/maps/ui/MapsFragment.kt 48.50 ./com/kylecorry/trail_sense/main/MainActivity.kt 46.78 ./com/kylecorry/trail_sense/shared/database/AppDatabase.kt 46.23 ./com/kylecorry/trail_sense/navigation/beacons/ui/PlaceBeaconFragment.kt 45.22 ./com/kylecorry/trail_sense/weather/infrastructure/WeatherPreferences.kt 45.01 ./com/kylecorry/trail_sense/tools/maps/ui/MapCalibrationFragment.kt 43.21 ./com/kylecorry/trail_sense/navigation/infrastructure/NavigationPreferences.kt 42.91 ./com/kylecorry/trail_sense/navigation/ui/RadarCompassView.kt 41.78 ./com/kylecorry/trail_sense/shared/sensors/SensorService.kt 40.10 ./com/kylecorry/trail_sense/shared/views/DialSelectView.kt 38.52 ./com/kylecorry/trail_sense/navigation/beacons/ui/BeaconDetailsFragment.kt 37.87 ./com/kylecorry/trail_sense/calibration/ui/CalibrateAltimeterFragment.kt 37.57 ./com/kylecorry/trail_sense/shared/views/MultipartUnitInputView.kt 35.90 ./com/kylecorry/trail_sense/tools/maps/ui/BasePhotoMapView.kt 35.71 ./com/kylecorry/trail_sense/shared/views/DurationInputView.kt 35.61 ./com/kylecorry/trail_sense/settings/ui/WeatherSettingsFragment.kt 35.41 ./com/kylecorry/trail_sense/licenses/Licenses.kt 34.14 ./com/kylecorry/trail_sense/calibration/ui/CalibrateCompassFragment.kt 34.11 ./com/kylecorry/trail_sense/tools/tides/ui/TidesFragment.kt 34.02 ./com/kylecorry/trail_sense/navigation/paths/ui/PathElevationChart.kt 33.54 ./com/kylecorry/trail_sense/shared/io/FileSubsystem.kt 33.09 ./com/kylecorry/trail_sense/tools/flashlight/infrastructure/FlashlightSubsystem.kt 32.79 ./com/kylecorry/trail_sense/tools/waterpurification/ui/WaterPurificationFragment.kt 32.63 ./com/kylecorry/trail_sense/tools/ruler/ui/RulerView.kt 31.78 ./com/kylecorry/trail_sense/settings/migrations/PreferenceMigrator.kt

kylecorry31 avatar Jul 26 '23 00:07 kylecorry31