From 5c740416d6e4f73ea8c41be5e7c820eed7b8ba2a Mon Sep 17 00:00:00 2001 From: sabeeh Date: Tue, 6 Aug 2024 06:45:15 +0500 Subject: [PATCH] move datetime dep to test --- ksoup-test/module.yaml | 1 + .../ported => ksoup-test/test/com/fleeksoft/ksoup}/System.kt | 2 +- ksoup-test/test/com/fleeksoft/ksoup/nodes/ElementIT.kt | 2 +- ksoup-test/test/com/fleeksoft/ksoup/parser/HtmlParserTest.kt | 2 +- ksoup-test/test/com/fleeksoft/ksoup/parser/ParserIT.kt | 2 +- ksoup/module.yaml | 1 - 6 files changed, 5 insertions(+), 5 deletions(-) rename {ksoup/src/com/fleeksoft/ksoup/ported => ksoup-test/test/com/fleeksoft/ksoup}/System.kt (91%) diff --git a/ksoup-test/module.yaml b/ksoup-test/module.yaml index a5edbb1f..6c72c811 100644 --- a/ksoup-test/module.yaml +++ b/ksoup-test/module.yaml @@ -16,6 +16,7 @@ test-dependencies: - $libs.korlibs.io - $libs.codepoints - $libs.kotlinx.coroutines.test + - $libs.kotlinx.datetime settings: kotlin: diff --git a/ksoup/src/com/fleeksoft/ksoup/ported/System.kt b/ksoup-test/test/com/fleeksoft/ksoup/System.kt similarity index 91% rename from ksoup/src/com/fleeksoft/ksoup/ported/System.kt rename to ksoup-test/test/com/fleeksoft/ksoup/System.kt index e32b4938..e841f4be 100644 --- a/ksoup/src/com/fleeksoft/ksoup/ported/System.kt +++ b/ksoup-test/test/com/fleeksoft/ksoup/System.kt @@ -1,4 +1,4 @@ -package com.fleeksoft.ksoup.ported +package com.fleeksoft.ksoup import kotlinx.datetime.Clock import kotlin.time.Duration.Companion.seconds diff --git a/ksoup-test/test/com/fleeksoft/ksoup/nodes/ElementIT.kt b/ksoup-test/test/com/fleeksoft/ksoup/nodes/ElementIT.kt index 6fef2951..69192b1f 100644 --- a/ksoup-test/test/com/fleeksoft/ksoup/nodes/ElementIT.kt +++ b/ksoup-test/test/com/fleeksoft/ksoup/nodes/ElementIT.kt @@ -4,7 +4,7 @@ import com.fleeksoft.ksoup.BuildConfig import com.fleeksoft.ksoup.Ksoup.parse import com.fleeksoft.ksoup.Platform import com.fleeksoft.ksoup.isJS -import com.fleeksoft.ksoup.ported.System +import com.fleeksoft.ksoup.System import kotlin.test.* import kotlin.test.Test diff --git a/ksoup-test/test/com/fleeksoft/ksoup/parser/HtmlParserTest.kt b/ksoup-test/test/com/fleeksoft/ksoup/parser/HtmlParserTest.kt index d01f1991..5f0f3a60 100644 --- a/ksoup-test/test/com/fleeksoft/ksoup/parser/HtmlParserTest.kt +++ b/ksoup-test/test/com/fleeksoft/ksoup/parser/HtmlParserTest.kt @@ -3,7 +3,7 @@ package com.fleeksoft.ksoup.parser import com.fleeksoft.ksoup.* import com.fleeksoft.ksoup.internal.StringUtil import com.fleeksoft.ksoup.nodes.* -import com.fleeksoft.ksoup.ported.System +import com.fleeksoft.ksoup.System import com.fleeksoft.ksoup.safety.Safelist import korlibs.io.lang.IOException import korlibs.io.stream.openSync diff --git a/ksoup-test/test/com/fleeksoft/ksoup/parser/ParserIT.kt b/ksoup-test/test/com/fleeksoft/ksoup/parser/ParserIT.kt index e8800983..a4c78b51 100644 --- a/ksoup-test/test/com/fleeksoft/ksoup/parser/ParserIT.kt +++ b/ksoup-test/test/com/fleeksoft/ksoup/parser/ParserIT.kt @@ -3,7 +3,7 @@ package com.fleeksoft.ksoup.parser import com.fleeksoft.ksoup.BuildConfig import com.fleeksoft.ksoup.Platform import com.fleeksoft.ksoup.isJS -import com.fleeksoft.ksoup.ported.System +import com.fleeksoft.ksoup.System import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals diff --git a/ksoup/module.yaml b/ksoup/module.yaml index e0c7f69f..e8fd0efd 100644 --- a/ksoup/module.yaml +++ b/ksoup/module.yaml @@ -11,6 +11,5 @@ repositories: - mavenLocal dependencies: - - $libs.kotlinx.datetime - $libs.codepoints - $libs.korlibs.io: exported \ No newline at end of file