From 08023839ba9fbea52d52bea1203a39a7bbdaa186 Mon Sep 17 00:00:00 2001 From: WooJin Kong Date: Sun, 5 May 2024 17:19:52 +0900 Subject: [PATCH] chore: Fix ktlint --- .../main/java/com/kongjak/koreatechboard/ui/Navigation.kt | 2 -- .../com/kongjak/koreatechboard/ui/components/HtmlView.kt | 1 - .../java/com/kongjak/koreatechboard/ui/components/WebView.kt | 5 ----- .../main/java/com/kongjak/koreatechboard/util/CssParser.kt | 3 +-- 4 files changed, 1 insertion(+), 10 deletions(-) diff --git a/app/src/main/java/com/kongjak/koreatechboard/ui/Navigation.kt b/app/src/main/java/com/kongjak/koreatechboard/ui/Navigation.kt index 053038d9..c95783c9 100644 --- a/app/src/main/java/com/kongjak/koreatechboard/ui/Navigation.kt +++ b/app/src/main/java/com/kongjak/koreatechboard/ui/Navigation.kt @@ -11,8 +11,6 @@ import androidx.compose.material3.NavigationBarItemDefaults import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue -import androidx.compose.runtime.mutableStateOf -import androidx.compose.runtime.remember import androidx.compose.ui.Modifier import androidx.compose.ui.res.stringResource import androidx.navigation.NamedNavArgument diff --git a/app/src/main/java/com/kongjak/koreatechboard/ui/components/HtmlView.kt b/app/src/main/java/com/kongjak/koreatechboard/ui/components/HtmlView.kt index 59f38135..54de0498 100644 --- a/app/src/main/java/com/kongjak/koreatechboard/ui/components/HtmlView.kt +++ b/app/src/main/java/com/kongjak/koreatechboard/ui/components/HtmlView.kt @@ -3,7 +3,6 @@ package com.kongjak.koreatechboard.ui.components import android.net.Uri import android.util.Log import androidx.browser.customtabs.CustomTabsIntent -import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.platform.LocalContext diff --git a/app/src/main/java/com/kongjak/koreatechboard/ui/components/WebView.kt b/app/src/main/java/com/kongjak/koreatechboard/ui/components/WebView.kt index c58b79d3..332fedc2 100644 --- a/app/src/main/java/com/kongjak/koreatechboard/ui/components/WebView.kt +++ b/app/src/main/java/com/kongjak/koreatechboard/ui/components/WebView.kt @@ -1,7 +1,6 @@ package com.kongjak.koreatechboard.ui.components import android.content.Context -import android.content.res.Configuration import android.graphics.Bitmap import android.graphics.Bitmap.CompressFormat import android.graphics.Color @@ -24,10 +23,6 @@ import androidx.compose.runtime.setValue import androidx.compose.ui.Modifier import androidx.compose.ui.viewinterop.AndroidView import androidx.core.graphics.drawable.toBitmap -import androidx.webkit.WebSettingsCompat -import androidx.webkit.WebSettingsCompat.FORCE_DARK_OFF -import androidx.webkit.WebSettingsCompat.FORCE_DARK_ON -import androidx.webkit.WebViewFeature import coil.imageLoader import coil.request.ImageRequest import kotlinx.coroutines.runBlocking diff --git a/app/src/main/java/com/kongjak/koreatechboard/util/CssParser.kt b/app/src/main/java/com/kongjak/koreatechboard/util/CssParser.kt index 813e44c8..4d94e3c3 100644 --- a/app/src/main/java/com/kongjak/koreatechboard/util/CssParser.kt +++ b/app/src/main/java/com/kongjak/koreatechboard/util/CssParser.kt @@ -1,6 +1,5 @@ package com.kongjak.koreatechboard.util -import android.util.Log import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.toArgb import androidx.compose.ui.text.SpanStyle @@ -183,4 +182,4 @@ fun parseSpanStyle(css: String?, isDarkMode: Boolean): SpanStyle { fun Color.toRaw(): String { return "rgb(${this.toArgb().red}, ${this.toArgb().green}, ${this.toArgb().blue})" -} \ No newline at end of file +}