You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactored `isServerReachable` to be a `suspend` function that uses a Retrofit `HEAD` request instead of a synchronous `HttpURLConnection`. This eliminates the risk of an ANR when checking for server connectivity.
- Created a `HealthCheckApi` interface for the `HEAD` request.
- Added a custom `OkHttpClient` with a 5-second timeout for the health check.
- Restored the `ServerUrlMapper` and URL scheme-prepending logic to maintain existing functionality.
- Fixed a duplicate import statement in `MainApplication.kt`.
0 commit comments