From 6965e59a643c67a2bf81b3c69ec70268e5da5797 Mon Sep 17 00:00:00 2001 From: AntsyLich <59261191+AntsyLich@users.noreply.github.com> Date: Sun, 24 Mar 2024 05:54:27 +0600 Subject: [PATCH] Fix mishap in e020ae5ed558e80742ef0ad8bfa0f69af0959d5a --- .../domain/extensionrepo/service/ExtensionRepoService.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/domain/src/main/java/mihon/domain/extensionrepo/service/ExtensionRepoService.kt b/domain/src/main/java/mihon/domain/extensionrepo/service/ExtensionRepoService.kt index 09a52d908..8262961a7 100644 --- a/domain/src/main/java/mihon/domain/extensionrepo/service/ExtensionRepoService.kt +++ b/domain/src/main/java/mihon/domain/extensionrepo/service/ExtensionRepoService.kt @@ -2,19 +2,20 @@ package mihon.domain.extensionrepo.service import androidx.core.net.toUri import eu.kanade.tachiyomi.network.GET +import eu.kanade.tachiyomi.network.NetworkHelper import eu.kanade.tachiyomi.network.awaitSuccess import eu.kanade.tachiyomi.network.parseAs import kotlinx.serialization.json.Json import logcat.LogPriority import mihon.domain.extensionrepo.model.ExtensionRepo -import okhttp3.OkHttpClient import tachiyomi.core.common.util.lang.withIOContext import tachiyomi.core.common.util.system.logcat class ExtensionRepoService( - private val client: OkHttpClient, + networkHelper: NetworkHelper, private val json: Json, ) { + val client = networkHelper.client @Suppress("TooGenericExceptionCaught") suspend fun fetchRepoDetails(