From 67ecd95b3387995210df7de299a31cf768f0580c Mon Sep 17 00:00:00 2001 From: Alexander Popoff Date: Sun, 21 Jan 2024 16:50:28 +0200 Subject: [PATCH] Remove redundant `JS_NAME_DEFAULT` cleanup in pickers --- buildSrc/src/main/kotlin/karakum/mui/Converter.kt | 2 +- buildSrc/src/main/kotlin/karakum/mui/Generator.kt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/buildSrc/src/main/kotlin/karakum/mui/Converter.kt b/buildSrc/src/main/kotlin/karakum/mui/Converter.kt index 8adddf767..7bd4938be 100644 --- a/buildSrc/src/main/kotlin/karakum/mui/Converter.kt +++ b/buildSrc/src/main/kotlin/karakum/mui/Converter.kt @@ -2,7 +2,7 @@ package karakum.mui import java.io.File -internal const val JS_NAME_DEFAULT = "@JsName(\"default\")\n" +private const val JS_NAME_DEFAULT = "@JsName(\"default\")\n" internal data class ConversionResult( val main: String, diff --git a/buildSrc/src/main/kotlin/karakum/mui/Generator.kt b/buildSrc/src/main/kotlin/karakum/mui/Generator.kt index ec91aeee2..694a29206 100644 --- a/buildSrc/src/main/kotlin/karakum/mui/Generator.kt +++ b/buildSrc/src/main/kotlin/karakum/mui/Generator.kt @@ -663,7 +663,6 @@ private fun generate( if (componentName != "CalendarPickerView" && componentName != "createTypography") { val finalBody = when { componentName == "createTransitions" -> body + "\n\n" + STYLE_TRANSITION_CREATE_OPTIONS - pkg == Package.pickers -> body.replace(JS_NAME_DEFAULT, "") else -> body }