refactor: implement search provider pattern
This commit refactors the search functionality to use a `SearchProvider` pattern. Each app source (CleanAPK, PWA, Google Play) now has its own `SearchProvider` implementation. Key changes: - Introduced `SearchProvider` interface. - Created `CleanApkSearchProvider`, `PwaSearchProvider`, and `GPlaySearchProvider` implementations. - `SearchApiImpl` now uses a set of `SearchProvider`s to fetch search results and suggestions. - Introduced `SearchSuggestion` data class to standardize search suggestion objects. - Removed old search logic from `SearchApiImpl`. - Updated `SearchViewModel`, `SearchFragment`, and `ApplicationRepository` to use the new search mechanism and `SearchSuggestion`. - Added a Hilt module (`SearchModule`) to provide the different `SearchProvider` implementations.
Loading
Please register or sign in to comment