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

codecov-commenter commented Apr 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.57%. Comparing base (1ddfb28) to head (37ac974).

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   63.26%   63.57%   +0.30%     
==========================================
  Files         144      144              
  Lines        8156     8117      -39     
  Branches     1852     1831      -21     
==========================================
  Hits         5160     5160              
+ Misses       1897     1858      -39     
  Partials     1099     1099              
Flag Coverage Δ
domain 79.91% <ø> (ø)
presentation 59.59% <0.00%> (+0.35%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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 2 times, most recently from 5a2669c to 03008b3 Compare May 7, 2026 12:45
…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 03008b3 to 37ac974 Compare August 31, 2026 20:19
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