nowinandroid icon indicating copy to clipboard operation
nowinandroid copied to clipboard

Change ViewModel visibility from public to internal for all feature modules

Open audgns10 opened this issue 4 months ago • 0 comments

What I have done and why

  • Changed the visibility modifier of all ViewModel classes within their respective feature modules from public to internal, ensuring that ViewModels are only accessible within their own modules.

  • This modification improves encapsulation and enforces clear module boundaries, preventing unintended usage of ViewModels across modules.

  • By restricting access with the internal modifier, the codebase becomes more maintainable and less prone to unintended dependencies.

  • Updated each feature module separately to reflect this visibility change, keeping each commit modular and easier to review.


Updated Modules

The following feature modules have been updated:

  • BookmarksViewModel (in feature-bookmarks)
  • ForYouViewModel (in feature-foryou)
  • SearchViewModel (in feature-search)

audgns10 avatar Aug 02 '25 19:08 audgns10