Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tooseriuz committed Jan 8, 2024
1 parent 464eca9 commit 0259658
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ import org.rfcx.incidents.data.remote.guardian.software.ClassifierEndpoint
import org.rfcx.incidents.data.remote.guardian.software.DownloadFileEndpoint
import org.rfcx.incidents.data.remote.guardian.software.SoftwareEndpoint
import org.rfcx.incidents.data.remote.media.MediaEndpoint
import org.rfcx.incidents.data.remote.password.PasswordChangeEndpoint
import org.rfcx.incidents.data.remote.profilephoto.ProfilePhotoEndpoint
import org.rfcx.incidents.data.remote.project.ProjectsEndpoint
import org.rfcx.incidents.data.remote.response.CreateResponseEndpoint
import org.rfcx.incidents.data.remote.setusername.SetNameEndpoint
Expand Down Expand Up @@ -100,22 +98,6 @@ object ServiceFactory {
.create(SetNameEndpoint::class.java)
}

fun makePasswordService(isDebug: Boolean, context: Context): PasswordChangeEndpoint {
return createRetrofit(
BuildConfig.CORE_API_BASE_URL, createAuthTokenOkHttpClient(isDebug, AuthTokenInterceptor(context)),
GsonProvider.getInstance().gson
)
.create(PasswordChangeEndpoint::class.java)
}

fun makeProfilePhotoService(isDebug: Boolean, context: Context): ProfilePhotoEndpoint {
return createRetrofit(
BuildConfig.CORE_API_BASE_URL, createAuthTokenOkHttpClient(isDebug, AuthTokenInterceptor(context)),
GsonProvider.getInstance().gson
)
.create(ProfilePhotoEndpoint::class.java)
}

fun makeSubscribeService(isDebug: Boolean, context: Context): SubscribeEndpoint {
return createRetrofit(
BuildConfig.CORE_API_BASE_URL, createAuthTokenOkHttpClient(isDebug, AuthTokenInterceptor(context)),
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/java/org/rfcx/incidents/domain/DataModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,6 @@ object DataModule {
factory { ServiceFactory.makeAssetsService(BuildConfig.DEBUG, androidContext()) }
factory { ServiceFactory.makeUserTouchService(BuildConfig.DEBUG, androidContext()) }
factory { ServiceFactory.makeSetNameService(BuildConfig.DEBUG, androidContext()) }
factory { ServiceFactory.makePasswordService(BuildConfig.DEBUG, androidContext()) }
factory { ServiceFactory.makeProfilePhotoService(BuildConfig.DEBUG, androidContext()) }
factory { ServiceFactory.makeSubscribeService(BuildConfig.DEBUG, androidContext()) }
factory { ServiceFactory.makeSoftwareService(BuildConfig.DEBUG, androidContext()) }
factory { ServiceFactory.makeClassifierService(BuildConfig.DEBUG, androidContext()) }
Expand Down

0 comments on commit 0259658

Please sign in to comment.