nowinandroid
nowinandroid copied to clipboard
Change ViewModel visibility from public to internal for all feature modules
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)