Skip to content

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

Open
Rolf-Smit wants to merge 1 commit intofeature/refactor-dependency-injection-to-metrofrom
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 intofeature/refactor-dependency-injection-to-metrofrom
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.

…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.
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 51.61%. Comparing base (2cafd19) to head (144bbf0).

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                                 @@
##           feature/refactor-dependency-injection-to-metro     #157      +/-   ##
==================================================================================
+ Coverage                                           51.37%   51.61%   +0.23%     
==================================================================================
  Files                                                 138      138              
  Lines                                                7517     7479      -38     
  Branches                                              915      909       -6     
==================================================================================
- Hits                                                 3862     3860       -2     
+ Misses                                               3310     3273      -37     
- Partials                                              345      346       +1     
Flag Coverage Δ
domain 76.29% <ø> (ø)
presentation 45.98% <0.00%> (+0.25%) ⬆️

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.

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