Skip to content

Commit 2ffb846

Browse files
implementation to API
1 parent e1d5445 commit 2ffb846

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

app/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,11 @@ dependencies {
4444
testImplementation(libs.junit)
4545
androidTestImplementation(libs.androidx.junit)
4646
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+
4754
}

network/src/main/java/com/vimalraj/network/ApiHelper.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,8 @@ private fun <T> handleApiError(exception: Throwable): ResultHandler<T> {
5959
exception = exception,
6060
remoteApiError = remoteApiError
6161
)
62+
}
63+
64+
private fun accessDeniedError(): ResultHandler<Nothing> {
65+
return ResultHandler.AccessDenied
6266
}

0 commit comments

Comments
 (0)