We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1d5445 commit 2ffb846Copy full SHA for 2ffb846
app/build.gradle.kts
@@ -44,4 +44,11 @@ dependencies {
44
testImplementation(libs.junit)
45
androidTestImplementation(libs.androidx.junit)
46
androidTestImplementation(libs.androidx.espresso.core)
47
+
48
+ //Retrofit
49
+ api(libs.retrofit)
50
+ api(libs.converter.gson)
51
+ api(libs.okhttp)
52
+ api(libs.logging.interceptor)
53
54
}
network/src/main/java/com/vimalraj/network/ApiHelper.kt
@@ -59,4 +59,8 @@ private fun <T> handleApiError(exception: Throwable): ResultHandler<T> {
59
exception = exception,
60
remoteApiError = remoteApiError
61
)
62
+}
63
64
+private fun accessDeniedError(): ResultHandler<Nothing> {
65
+ return ResultHandler.AccessDenied
66
0 commit comments