Greenstand / Greenstand/treetracker-android

Split AppModule.kt DI configuration by feature (269 lines)

Open
#1,240 2 comments 0 reactions 1 assignee Claimed by @aneepal55 View on GitHub
chore refactor triage
Dominant language
Kotlin
Stars
101
Forks
116
PR merge metrics
No merged PRs in 30d

Description

## Problem

`AppModule.kt` is 269 lines containing all Koin DI definitions for the entire app. As the app grows, this becomes harder to navigate and maintain.

## Location

- `app/src/main/java/org/greenstand/android/TreeTracker/di/AppModule.kt`

## Suggested Fix

Split into feature-specific modules:
- `ViewModelModule` — all ViewModel definitions
- `UseCaseModule` — all UseCase definitions
- `RepositoryModule` — all repository definitions
- `UtilityModule` — utilities, analytics, etc.

Keep the existing `RoomModule` and `NetworkModule` as-is. Register all sub-modules from a root `appModules` list.

## Effort
Medium

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.