fix: make search results independent of CleanAPK and Google Play
Description
This MR allows search page to show the GPlay results when CleanAPK is down and Search screen shows a necessary error message based on this scenario.
Added @fahim.choudhury as an assignee to handle the MR.
Technical details
Usually, the NetworkHandler handles the exception and returns the result as an error, but in this case, GPlay API depends on CleanAPK API and GPlay API should return the result even though CleanAPK fails. GPlay results will be returned as a success in this case.
Error message is also modified for CleanAPK or GPlay failure according to the requirements.
Screenshots
Screen_recording_20241025_225322
Tests
Issues
10 commandments of code reviews
Summary by CodeRabbit
Release Notes
-
New Features
- Enhanced error handling for network operations, providing clearer and more informative error messages.
- Added specific exception types for better granularity in error management related to CleanApk and Google Play data loading.
-
Bug Fixes
- Improved retry logic for network requests to prevent excessive attempts.
-
User Interface
- Introduced new string resources for better user feedback regarding app availability and loading errors.
-
Documentation
- Updated method documentation to reflect changes in return types and error handling practices.