Skip to content

Refactor: Replace wrapper classes with top-level @Inject composable functions#157

Open
Rolf-Smit wants to merge 1 commit into
mainfrom
feature/refactor-dependency-injection-to-metro-with-top-level-injection
Open

Refactor: Replace wrapper classes with top-level @Inject composable functions#157
Rolf-Smit wants to merge 1 commit into
mainfrom
feature/refactor-dependency-injection-to-metro-with-top-level-injection

Conversation

@Rolf-Smit
Copy link
Copy Markdown
Contributor

The downside of this is that the IDE (Android Studio Quail 1 | 2026.1.1 Canary 1) does not yet resolve the generated class types, and will show "Unresolved reference" on parameters like PlannerScreen in MainNavController.

A fix can be applied on the IDE (Android Studio) by opening the registry (Ctrl/Cmd+Shift+A, type 'Registry') and disabling the flag kotlin.k2.only.bundled.compiler.plugins.enabled. However symbol navigation ('Go to Definition') and similar actions don't seem to work.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 23, 2026

Codecov Report

❌ Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.12%. Comparing base (96baf5c) to head (03008b3).

Files with missing lines Patch % Lines
...s/terms_and_conditions/TermsAndConditionsScreen.kt 0.00% 3 Missing ⚠️
...tech/app/abysner/presentation/MainNavController.kt 0.00% 1 Missing ⚠️
.../abysner/presentation/screens/about/AboutScreen.kt 0.00% 0 Missing and 1 partial ⚠️
...abysner/presentation/screens/planner/PlanScreen.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #157      +/-   ##
==========================================
+ Coverage   69.79%   70.12%   +0.33%     
==========================================
  Files         144      144              
  Lines        8140     8101      -39     
  Branches     1038     1032       -6     
==========================================
  Hits         5681     5681              
+ Misses       1946     1907      -39     
  Partials      513      513              
Flag Coverage Δ
domain 77.88% <ø> (ø)
presentation 68.25% <0.00%> (+0.40%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Rolf-Smit Rolf-Smit force-pushed the feature/refactor-dependency-injection-to-metro branch from 2cafd19 to 853b49c Compare May 7, 2026 01:14
@Rolf-Smit Rolf-Smit force-pushed the feature/refactor-dependency-injection-to-metro-with-top-level-injection branch from 144bbf0 to 6914ed9 Compare May 7, 2026 01:16
Base automatically changed from feature/refactor-dependency-injection-to-metro to main May 7, 2026 09:36
@Rolf-Smit Rolf-Smit force-pushed the feature/refactor-dependency-injection-to-metro-with-top-level-injection branch from 6914ed9 to 5a2669c Compare May 7, 2026 09:38
…unctions

The downside of this is that the IDE (Android Studio Quail 1 | 2026.1.1 Canary 1) does not yet resolve the generated class types, and will show "Unresolved reference" on parameters like `PlannerScreen` in `MainNavController`.

A fix can be applied on the IDE (Android Studio) by opening the registry (Ctrl/Cmd+Shift+A, type 'Registry') and disabling the flag `kotlin.k2.only.bundled.compiler.plugins.enabled`. However symbol navigation ('Go to Definition') and similar actions don't seem to work.
@Rolf-Smit Rolf-Smit force-pushed the feature/refactor-dependency-injection-to-metro-with-top-level-injection branch from 5a2669c to 03008b3 Compare May 7, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants