From 06bc8a839e8b9db20ab03fac3196e0c4ce555878 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Tue, 6 Jun 2023 15:50:31 +0400 Subject: [PATCH] Fix: java.security.cert.CertificateException --- app/src/main/java/ru/nm17/narodmon/ui/elements/TileMap.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/ru/nm17/narodmon/ui/elements/TileMap.kt b/app/src/main/java/ru/nm17/narodmon/ui/elements/TileMap.kt index 6f20744..3da671e 100644 --- a/app/src/main/java/ru/nm17/narodmon/ui/elements/TileMap.kt +++ b/app/src/main/java/ru/nm17/narodmon/ui/elements/TileMap.kt @@ -8,7 +8,7 @@ import androidx.compose.runtime.remember import androidx.compose.ui.Modifier import androidx.compose.ui.geometry.Offset import io.ktor.client.HttpClient -import io.ktor.client.engine.cio.CIO +import io.ktor.client.engine.okhttp.OkHttp import io.ktor.client.request.get import io.ktor.client.statement.bodyAsChannel import io.ktor.utils.io.jvm.javaio.toInputStream @@ -22,7 +22,7 @@ import java.io.InputStream const val mapSize = 32768 -val client = HttpClient(CIO) +val client = HttpClient(OkHttp) val tileStreamProvider = TileStreamProvider { row, col, zoom -> requestTile(row, col, zoom) }