Skip to content

refactor: migrate from Hilt to Koin and expand KMP common modules#4746

Merged
jamesarich merged 1 commit intomainfrom
feat/kmp-koin
Mar 10, 2026
Merged

refactor: migrate from Hilt to Koin and expand KMP common modules#4746
jamesarich merged 1 commit intomainfrom
feat/kmp-koin

Conversation

@jamesarich
Copy link
Copy Markdown
Collaborator

  • Replace Hilt dependency injection with Koin across the entire project.
  • Move core repositories, data sources, and use cases from Android-specific source sets to commonMain for KMP support.
  • Refactor ViewModels to separate common logic from platform-specific implementations (e.g., Android Uri vs CommonUri).
  • Introduce CompositionLocal providers for platform-specific UI components like MapView and InlineMap.
  • Update Gradle convention plugins to support Koin and KMP library configurations.
  • Abstract date formatting and file I/O to remove Android-specific dependencies from common logic.
  • Implement Koin verification tests to ensure graph integrity.

@github-actions github-actions bot added the enhancement New feature or request label Mar 10, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (0ce322a) to head (e32e5be).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #4746   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files          3       3           
  Lines        231     231           
  Branches      34      34           
=====================================
  Misses       231     231           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

- Replace Hilt dependency injection with Koin across the entire project.
- Move core repositories, data sources, and use cases from Android-specific source sets to `commonMain` for KMP support.
- Refactor ViewModels to separate common logic from platform-specific implementations (e.g., Android `Uri` vs `CommonUri`).
- Introduce `CompositionLocal` providers for platform-specific UI components like `MapView` and `InlineMap`.
- Update Gradle convention plugins to support Koin and KMP library configurations.
- Abstract date formatting and file I/O to remove Android-specific dependencies from common logic.
- Implement Koin verification tests to ensure graph integrity.

Signed-off-by: James Rich <[email protected]>
@jamesarich jamesarich added this pull request to the merge queue Mar 10, 2026
Merged via the queue into main with commit 875cf1c Mar 10, 2026
6 checks passed
@jamesarich jamesarich deleted the feat/kmp-koin branch March 10, 2026 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant