Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Verified Commit 640853ce authored by Fahim M. Choudhury's avatar Fahim M. Choudhury
Browse files

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.
parent 10b9b7dc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment