diff --git a/build.gradle.kts b/build.gradle.kts index 94b9e42..90115c1 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -15,51 +15,51 @@ subprojects { apply() apply() - group = "io.github.cleverlance.linguine" - version = System.getenv("NEXT_VERSION") ?: "0.2.0" + group = "com.qinshift.linguine" + version = System.getenv("NEXT_VERSION") ?: "0.3.0" mavenPublishing { publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true) signAllPublications() pom { - name = "Linguine" - description = "Simplifies the localization process in Kotlin projects." - inceptionYear = "2024" - url = "https://github.com/cleverlance/linguine/" + name.set("Linguine") + description.set("Simplifies the localization process in Kotlin projects.") + inceptionYear.set("2024") + url.set("https://github.com/cleverlance/linguine/") licenses { license { - name = "The MIT License" - url = "https://github.com/cleverlance/linguine/blob/main/license.md" - distribution = "https://github.com/cleverlance/linguine/blob/main/license.md" + name.set("The MIT License") + url.set("https://github.com/cleverlance/linguine/blob/main/license.md") + distribution.set("https://github.com/cleverlance/linguine/blob/main/license.md") } } developers { developer { - id = "RealDanie1" - name = "Daniel Pecuch" - url = "https://github.com/RealDanie1" + id.set("RealDanie1") + name.set("Daniel Pecuch") + url.set("https://github.com/RealDanie1") } developer { - id = "RadekKuzel" - name = "Radek Kůžel" - url = "https://github.com/RadekKuzel" + id.set("RadekKuzel") + name.set("Radek Kůžel") + url.set("https://github.com/RadekKuzel") } developer { - id = "JiriHromek" - name = "Jiří Hromek" - url = "https://github.com/JiriHromek" + id.set("JiriHromek") + name.set("Jiří Hromek") + url.set("https://github.com/JiriHromek") } developer { - id = "gerak-cz" - name = "Bořek Leikep" - url = "https://github.com/gerak-cz" + id.set("gerak-cz") + name.set("Bořek Leikep") + url.set("https://github.com/gerak-cz") } } scm { - url = "https://github.com/cleverlance/linguine/" - connection = "scm:git:git://github.com/cleverlance/linguine.git" - developerConnection = "scm:git:ssh://git@github.com:cleverlance/linguine.git" + url.set("https://github.com/cleverlance/linguine/") + connection.set("scm:git:git://github.com/cleverlance/linguine.git") + developerConnection.set("scm:git:ssh://git@github.com:cleverlance/linguine.git") } } } diff --git a/linguine-generator/build.gradle.kts b/linguine-generator/build.gradle.kts index 74662d3..86f3bfa 100644 --- a/linguine-generator/build.gradle.kts +++ b/linguine-generator/build.gradle.kts @@ -22,8 +22,8 @@ buildConfig { gradlePlugin { // Define the plugin val linguine by plugins.creating { - id = "io.github.cleverlance.linguine" - implementationClass = "io.github.cleverlance.linguine.linguinegenerator.LinguinePlugin" + id = "com.qinshift.linguine" + implementationClass = "com.qinshift.linguine.linguinegenerator.LinguinePlugin" } } diff --git a/linguine-generator/src/functionalTest/kotlin/io/github/cleverlance/linguine/linguinegenerator/FileContentGeneratorTest.kt b/linguine-generator/src/functionalTest/kotlin/com/qinshift/linguine/linguinegenerator/FileContentGeneratorTest.kt similarity index 88% rename from linguine-generator/src/functionalTest/kotlin/io/github/cleverlance/linguine/linguinegenerator/FileContentGeneratorTest.kt rename to linguine-generator/src/functionalTest/kotlin/com/qinshift/linguine/linguinegenerator/FileContentGeneratorTest.kt index 09f09fa..7f30070 100644 --- a/linguine-generator/src/functionalTest/kotlin/io/github/cleverlance/linguine/linguinegenerator/FileContentGeneratorTest.kt +++ b/linguine-generator/src/functionalTest/kotlin/com/qinshift/linguine/linguinegenerator/FileContentGeneratorTest.kt @@ -1,5 +1,6 @@ -package io.github.cleverlance.linguine.linguinegenerator +package com.qinshift.linguine.linguinegenerator +import io.kotest.matchers.shouldBe import kotlin.io.path.Path import kotlin.test.Test import kotlin.test.assertEquals @@ -34,7 +35,7 @@ class FileContentGeneratorTest { val expected = """ package presentation - import io.github.cleverlance.linguine.linguineruntime.presentation.Localiser.localise + import com.qinshift.linguine.linguineruntime.presentation.Localiser.localise import kotlin.String public object Settings { @@ -71,7 +72,7 @@ class FileContentGeneratorTest { val expected = """ package presentation - import io.github.cleverlance.linguine.linguineruntime.presentation.Localiser.localise + import com.qinshift.linguine.linguineruntime.presentation.Localiser.localise import kotlin.String public object Section { @@ -105,7 +106,7 @@ class FileContentGeneratorTest { val expected = """ package presentation - import io.github.cleverlance.linguine.linguineruntime.presentation.Localiser.localise + import com.qinshift.linguine.linguineruntime.presentation.Localiser.localise import kotlin.String public object Deep { @@ -142,7 +143,7 @@ class FileContentGeneratorTest { val expected = """ package presentation - import io.github.cleverlance.linguine.linguineruntime.presentation.Localiser.localise + import com.qinshift.linguine.linguineruntime.presentation.Localiser.localise import kotlin.String public object Strings { @@ -175,7 +176,7 @@ class FileContentGeneratorTest { val expected = """ package presentation - import io.github.cleverlance.linguine.linguineruntime.presentation.Localiser.localise + import com.qinshift.linguine.linguineruntime.presentation.Localiser.localise import kotlin.Int import kotlin.String @@ -221,7 +222,7 @@ class FileContentGeneratorTest { val expected = """ package presentation - import io.github.cleverlance.linguine.linguineruntime.presentation.Localiser.localise + import com.qinshift.linguine.linguineruntime.presentation.Localiser.localise import kotlin.String public object Strings { @@ -296,7 +297,7 @@ class FileContentGeneratorTest { val expected = """ package presentation - import io.github.cleverlance.linguine.linguineruntime.presentation.Localiser.localise + import com.qinshift.linguine.linguineruntime.presentation.Localiser.localise import kotlin.String public object Strings { @@ -366,31 +367,31 @@ class FileContentGeneratorTest { generator.generateFileContent(outputDirectory.resolve("Strings.kt"), "Strings", root) val expected = """ - package presentation - - import io.github.cleverlance.linguine.linguineruntime.presentation.Localiser.localise - import kotlin.Float - import kotlin.Int - import kotlin.String - - public object Strings { - public object Activation { - public object ForgottenPassword { - public object Birthdate { - public fun cancelButton( - param1: String, - param2: Int, - param3: Float, - param4: String, - param5: Int, - param6: Float, - ): String = localise("activation__forgotten_password__birthdate__cancel_button", - param1, param2, param3, param4, param5, param6) + package presentation + + import com.qinshift.linguine.linguineruntime.presentation.Localiser.localise + import kotlin.Float + import kotlin.Int + import kotlin.String + + public object Strings { + public object Activation { + public object ForgottenPassword { + public object Birthdate { + public fun cancelButton( + param1: String, + param2: Int, + param3: Float, + param4: String, + param5: Int, + param6: Float, + ): String = localise("activation__forgotten_password__birthdate__cancel_button", + param1, param2, param3, param4, param5, param6) + } } } } - } - """ - assertEquals(expected.trimIndent(), result.trimIndent()) + """ + result.trimIndent() shouldBe expected.trimIndent() } } diff --git a/linguine-generator/src/functionalTest/kotlin/io/github/cleverlance/linguine/linguinegenerator/FileParserTest.kt b/linguine-generator/src/functionalTest/kotlin/com/qinshift/linguine/linguinegenerator/FileParserTest.kt similarity index 99% rename from linguine-generator/src/functionalTest/kotlin/io/github/cleverlance/linguine/linguinegenerator/FileParserTest.kt rename to linguine-generator/src/functionalTest/kotlin/com/qinshift/linguine/linguinegenerator/FileParserTest.kt index 7fb83e4..59f85f7 100644 --- a/linguine-generator/src/functionalTest/kotlin/io/github/cleverlance/linguine/linguinegenerator/FileParserTest.kt +++ b/linguine-generator/src/functionalTest/kotlin/com/qinshift/linguine/linguinegenerator/FileParserTest.kt @@ -1,4 +1,4 @@ -package io.github.cleverlance.linguine.linguinegenerator +package com.qinshift.linguine.linguinegenerator import io.kotest.matchers.shouldBe import io.mockk.mockk diff --git a/linguine-generator/src/functionalTest/kotlin/io/github/cleverlance/linguine/linguinegenerator/FileWriterTest.kt b/linguine-generator/src/functionalTest/kotlin/com/qinshift/linguine/linguinegenerator/FileWriterTest.kt similarity index 95% rename from linguine-generator/src/functionalTest/kotlin/io/github/cleverlance/linguine/linguinegenerator/FileWriterTest.kt rename to linguine-generator/src/functionalTest/kotlin/com/qinshift/linguine/linguinegenerator/FileWriterTest.kt index c78638c..31c7d60 100644 --- a/linguine-generator/src/functionalTest/kotlin/io/github/cleverlance/linguine/linguinegenerator/FileWriterTest.kt +++ b/linguine-generator/src/functionalTest/kotlin/com/qinshift/linguine/linguinegenerator/FileWriterTest.kt @@ -1,4 +1,4 @@ -package io.github.cleverlance.linguine.linguinegenerator +package com.qinshift.linguine.linguinegenerator import io.kotest.matchers.shouldBe import java.io.File diff --git a/linguine-generator/src/functionalTest/kotlin/io/github/cleverlance/linguine/linguinegenerator/LinguinePluginFunctionalTest.kt b/linguine-generator/src/functionalTest/kotlin/com/qinshift/linguine/linguinegenerator/LinguinePluginFunctionalTest.kt similarity index 94% rename from linguine-generator/src/functionalTest/kotlin/io/github/cleverlance/linguine/linguinegenerator/LinguinePluginFunctionalTest.kt rename to linguine-generator/src/functionalTest/kotlin/com/qinshift/linguine/linguinegenerator/LinguinePluginFunctionalTest.kt index 279d0e7..5c05ffa 100644 --- a/linguine-generator/src/functionalTest/kotlin/io/github/cleverlance/linguine/linguinegenerator/LinguinePluginFunctionalTest.kt +++ b/linguine-generator/src/functionalTest/kotlin/com/qinshift/linguine/linguinegenerator/LinguinePluginFunctionalTest.kt @@ -1,4 +1,4 @@ -package io.github.cleverlance.linguine.linguinegenerator +package com.qinshift.linguine.linguinegenerator import java.io.File import java.nio.file.Paths @@ -23,7 +23,7 @@ class LinguinePluginFunctionalTest { writeText( """ plugins { - id("io.github.cleverlance.linguine") + id("com.qinshift.linguine") } linguineConfig { @@ -56,9 +56,9 @@ class LinguinePluginFunctionalTest { testProjectDir.resolve(gradleBuildFileName).apply { writeText( """ - plugins { - id("io.github.cleverlance.linguine") - } + plugins { + id("com.qinshift.linguine") + } linguineConfig { inputFilePath = "src/main/resources/strings.json" @@ -101,7 +101,7 @@ class LinguinePluginFunctionalTest { val expectedContent = """ package presentation - import io.github.cleverlance.linguine.linguineruntime.presentation.Localiser.localise + import com.qinshift.linguine.linguineruntime.presentation.Localiser.localise import kotlin.Float import kotlin.Int import kotlin.String @@ -144,7 +144,7 @@ class LinguinePluginFunctionalTest { val buildScript = """ plugins { - id("io.github.cleverlance.linguine") + id("com.qinshift.linguine") } linguineConfig { diff --git a/linguine-generator/src/functionalTest/kotlin/io/github/cleverlance/linguine/linguinegenerator/filereader/FileReaderTest.kt b/linguine-generator/src/functionalTest/kotlin/com/qinshift/linguine/linguinegenerator/filereader/FileReaderTest.kt similarity index 93% rename from linguine-generator/src/functionalTest/kotlin/io/github/cleverlance/linguine/linguinegenerator/filereader/FileReaderTest.kt rename to linguine-generator/src/functionalTest/kotlin/com/qinshift/linguine/linguinegenerator/filereader/FileReaderTest.kt index 7817b5b..2532175 100644 --- a/linguine-generator/src/functionalTest/kotlin/io/github/cleverlance/linguine/linguinegenerator/filereader/FileReaderTest.kt +++ b/linguine-generator/src/functionalTest/kotlin/com/qinshift/linguine/linguinegenerator/filereader/FileReaderTest.kt @@ -1,4 +1,4 @@ -package io.github.cleverlance.linguine.linguinegenerator.filereader +package com.qinshift.linguine.linguinegenerator.filereader import java.io.File import org.gradle.internal.impldep.junit.framework.TestCase.assertEquals diff --git a/linguine-generator/src/main/kotlin/io/github/cleverlance/linguine/linguinegenerator/FileContentGenerator.kt b/linguine-generator/src/main/kotlin/com/qinshift/linguine/linguinegenerator/FileContentGenerator.kt similarity index 97% rename from linguine-generator/src/main/kotlin/io/github/cleverlance/linguine/linguinegenerator/FileContentGenerator.kt rename to linguine-generator/src/main/kotlin/com/qinshift/linguine/linguinegenerator/FileContentGenerator.kt index 3a51644..a0ca7f1 100644 --- a/linguine-generator/src/main/kotlin/io/github/cleverlance/linguine/linguinegenerator/FileContentGenerator.kt +++ b/linguine-generator/src/main/kotlin/com/qinshift/linguine/linguinegenerator/FileContentGenerator.kt @@ -1,4 +1,4 @@ -package io.github.cleverlance.linguine.linguinegenerator +package com.qinshift.linguine.linguinegenerator import com.squareup.kotlinpoet.FileSpec import com.squareup.kotlinpoet.FunSpec @@ -29,7 +29,7 @@ class FileContentGenerator( return FileSpec.builder(getFilePackage(filePath), fileName) .indent(DEFAULT_INDENT) .addImport( - "io.github.cleverlance.linguine.linguineruntime.presentation", + "com.qinshift.linguine.linguineruntime.presentation", "Localiser.localise", ) .addType( diff --git a/linguine-generator/src/main/kotlin/io/github/cleverlance/linguine/linguinegenerator/FileParser.kt b/linguine-generator/src/main/kotlin/com/qinshift/linguine/linguinegenerator/FileParser.kt similarity index 97% rename from linguine-generator/src/main/kotlin/io/github/cleverlance/linguine/linguinegenerator/FileParser.kt rename to linguine-generator/src/main/kotlin/com/qinshift/linguine/linguinegenerator/FileParser.kt index fbf3554..88b4f35 100644 --- a/linguine-generator/src/main/kotlin/io/github/cleverlance/linguine/linguinegenerator/FileParser.kt +++ b/linguine-generator/src/main/kotlin/com/qinshift/linguine/linguinegenerator/FileParser.kt @@ -1,4 +1,4 @@ -package io.github.cleverlance.linguine.linguinegenerator +package com.qinshift.linguine.linguinegenerator class FileParser( private val fileContent: Map, diff --git a/linguine-generator/src/main/kotlin/io/github/cleverlance/linguine/linguinegenerator/FileWriter.kt b/linguine-generator/src/main/kotlin/com/qinshift/linguine/linguinegenerator/FileWriter.kt similarity index 83% rename from linguine-generator/src/main/kotlin/io/github/cleverlance/linguine/linguinegenerator/FileWriter.kt rename to linguine-generator/src/main/kotlin/com/qinshift/linguine/linguinegenerator/FileWriter.kt index 304fdac..83d8c81 100644 --- a/linguine-generator/src/main/kotlin/io/github/cleverlance/linguine/linguinegenerator/FileWriter.kt +++ b/linguine-generator/src/main/kotlin/com/qinshift/linguine/linguinegenerator/FileWriter.kt @@ -1,4 +1,4 @@ -package io.github.cleverlance.linguine.linguinegenerator +package com.qinshift.linguine.linguinegenerator import java.io.File diff --git a/linguine-generator/src/main/kotlin/io/github/cleverlance/linguine/linguinegenerator/LinguineConfig.kt b/linguine-generator/src/main/kotlin/com/qinshift/linguine/linguinegenerator/LinguineConfig.kt similarity index 66% rename from linguine-generator/src/main/kotlin/io/github/cleverlance/linguine/linguinegenerator/LinguineConfig.kt rename to linguine-generator/src/main/kotlin/com/qinshift/linguine/linguinegenerator/LinguineConfig.kt index 37bca25..fd981ac 100644 --- a/linguine-generator/src/main/kotlin/io/github/cleverlance/linguine/linguinegenerator/LinguineConfig.kt +++ b/linguine-generator/src/main/kotlin/com/qinshift/linguine/linguinegenerator/LinguineConfig.kt @@ -1,6 +1,6 @@ -package io.github.cleverlance.linguine.linguinegenerator +package com.qinshift.linguine.linguinegenerator -import io.github.cleverlance.linguine.linguinegenerator.filereader.FileType +import com.qinshift.linguine.linguinegenerator.filereader.FileType open class LinguineConfig { var inputFilePath: String = "" diff --git a/linguine-generator/src/main/kotlin/io/github/cleverlance/linguine/linguinegenerator/LinguinePlugin.kt b/linguine-generator/src/main/kotlin/com/qinshift/linguine/linguinegenerator/LinguinePlugin.kt similarity index 94% rename from linguine-generator/src/main/kotlin/io/github/cleverlance/linguine/linguinegenerator/LinguinePlugin.kt rename to linguine-generator/src/main/kotlin/com/qinshift/linguine/linguinegenerator/LinguinePlugin.kt index fff40f4..60e0801 100644 --- a/linguine-generator/src/main/kotlin/io/github/cleverlance/linguine/linguinegenerator/LinguinePlugin.kt +++ b/linguine-generator/src/main/kotlin/com/qinshift/linguine/linguinegenerator/LinguinePlugin.kt @@ -1,9 +1,9 @@ -package io.github.cleverlance.linguine.linguinegenerator +package com.qinshift.linguine.linguinegenerator -import io.github.cleverlance.linguine.linguinegenerator.filereader.FileType as LinguineFileType +import com.qinshift.linguine.linguinegenerator.filereader.FileType as LinguineFileType import org.gradle.api.provider.Property as GradleProperty -import io.github.cleverlance.linguine.linguine_generator.BuildConfig -import io.github.cleverlance.linguine.linguinegenerator.filereader.FileReader +import com.qinshift.linguine.linguine_generator.BuildConfig +import com.qinshift.linguine.linguinegenerator.filereader.FileReader import org.gradle.api.DefaultTask import org.gradle.api.Plugin import org.gradle.api.Project diff --git a/linguine-generator/src/main/kotlin/io/github/cleverlance/linguine/linguinegenerator/filereader/FileReader.kt b/linguine-generator/src/main/kotlin/com/qinshift/linguine/linguinegenerator/filereader/FileReader.kt similarity index 87% rename from linguine-generator/src/main/kotlin/io/github/cleverlance/linguine/linguinegenerator/filereader/FileReader.kt rename to linguine-generator/src/main/kotlin/com/qinshift/linguine/linguinegenerator/filereader/FileReader.kt index 6215029..b882fcb 100644 --- a/linguine-generator/src/main/kotlin/io/github/cleverlance/linguine/linguinegenerator/filereader/FileReader.kt +++ b/linguine-generator/src/main/kotlin/com/qinshift/linguine/linguinegenerator/filereader/FileReader.kt @@ -1,4 +1,4 @@ -package io.github.cleverlance.linguine.linguinegenerator.filereader +package com.qinshift.linguine.linguinegenerator.filereader import com.google.gson.Gson import com.google.gson.reflect.TypeToken diff --git a/linguine-generator/src/main/kotlin/com/qinshift/linguine/linguinegenerator/filereader/FileType.kt b/linguine-generator/src/main/kotlin/com/qinshift/linguine/linguinegenerator/filereader/FileType.kt new file mode 100644 index 0000000..029a335 --- /dev/null +++ b/linguine-generator/src/main/kotlin/com/qinshift/linguine/linguinegenerator/filereader/FileType.kt @@ -0,0 +1,5 @@ +package com.qinshift.linguine.linguinegenerator.filereader + +enum class FileType { + JSON +} diff --git a/linguine-generator/src/main/kotlin/io/github/cleverlance/linguine/linguinegenerator/filereader/FileType.kt b/linguine-generator/src/main/kotlin/io/github/cleverlance/linguine/linguinegenerator/filereader/FileType.kt deleted file mode 100644 index 4a2249a..0000000 --- a/linguine-generator/src/main/kotlin/io/github/cleverlance/linguine/linguinegenerator/filereader/FileType.kt +++ /dev/null @@ -1,5 +0,0 @@ -package io.github.cleverlance.linguine.linguinegenerator.filereader - -enum class FileType { - JSON -} diff --git a/linguine-generator/src/test/kotlin/io/github/cleverlance/linguine/linguinegenerator/LinguinePluginTest.kt b/linguine-generator/src/test/kotlin/com/qinshift/linguine/linguinegenerator/LinguinePluginTest.kt similarity index 86% rename from linguine-generator/src/test/kotlin/io/github/cleverlance/linguine/linguinegenerator/LinguinePluginTest.kt rename to linguine-generator/src/test/kotlin/com/qinshift/linguine/linguinegenerator/LinguinePluginTest.kt index 7e64082..9897efd 100644 --- a/linguine-generator/src/test/kotlin/io/github/cleverlance/linguine/linguinegenerator/LinguinePluginTest.kt +++ b/linguine-generator/src/test/kotlin/com/qinshift/linguine/linguinegenerator/LinguinePluginTest.kt @@ -1,4 +1,4 @@ -package io.github.cleverlance.linguine.linguinegenerator +package com.qinshift.linguine.linguinegenerator import org.gradle.api.Project import org.gradle.testfixtures.ProjectBuilder @@ -12,7 +12,7 @@ class LinguinePluginTest { fun `plugin registers a task`() { // Create a test project and apply the plugin val project: Project = ProjectBuilder.builder().build() - project.plugins.apply("io.github.cleverlance.linguine") + project.plugins.apply("com.qinshift.linguine") val extension = project.extensions.getByType(LinguineConfig::class.java) extension.inputFilePath = "src/commonMain/resources/string.json" extension.outputFilePath = "presentation" @@ -25,7 +25,7 @@ class LinguinePluginTest { fun `given configuration plugin should be configured`() { val project: Project = ProjectBuilder.builder().build() - project.pluginManager.apply("io.github.cleverlance.linguine") + project.pluginManager.apply("com.qinshift.linguine") val extension = project.extensions.getByType(LinguineConfig::class.java) extension.inputFilePath = "src/commonMain/resources/string.json" extension.outputFilePath = "presentation" diff --git a/linguine-runtime/src/commonMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/Language.kt b/linguine-runtime/src/commonMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/Language.kt new file mode 100644 index 0000000..1ff8d33 --- /dev/null +++ b/linguine-runtime/src/commonMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/Language.kt @@ -0,0 +1,3 @@ +package com.qinshift.linguine.linguineruntime.presentation + +internal data class Language(val code: String) diff --git a/linguine-runtime/src/commonMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/LanguageRepository.kt b/linguine-runtime/src/commonMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/LanguageRepository.kt similarity index 66% rename from linguine-runtime/src/commonMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/LanguageRepository.kt rename to linguine-runtime/src/commonMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/LanguageRepository.kt index 69b7617..0a78875 100644 --- a/linguine-runtime/src/commonMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/LanguageRepository.kt +++ b/linguine-runtime/src/commonMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/LanguageRepository.kt @@ -1,6 +1,6 @@ @file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING") -package io.github.cleverlance.linguine.linguineruntime.presentation +package com.qinshift.linguine.linguineruntime.presentation internal expect object LanguageRepository { fun load(): Language diff --git a/linguine-runtime/src/commonMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/Localisation.kt b/linguine-runtime/src/commonMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/Localisation.kt similarity index 91% rename from linguine-runtime/src/commonMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/Localisation.kt rename to linguine-runtime/src/commonMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/Localisation.kt index c56bd61..6125991 100644 --- a/linguine-runtime/src/commonMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/Localisation.kt +++ b/linguine-runtime/src/commonMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/Localisation.kt @@ -1,4 +1,4 @@ -package io.github.cleverlance.linguine.linguineruntime.presentation +package com.qinshift.linguine.linguineruntime.presentation import co.touchlab.kermit.Logger diff --git a/linguine-runtime/src/commonMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/LocalisationProvider.kt b/linguine-runtime/src/commonMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/LocalisationProvider.kt similarity index 95% rename from linguine-runtime/src/commonMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/LocalisationProvider.kt rename to linguine-runtime/src/commonMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/LocalisationProvider.kt index 79647d8..c0cfe25 100644 --- a/linguine-runtime/src/commonMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/LocalisationProvider.kt +++ b/linguine-runtime/src/commonMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/LocalisationProvider.kt @@ -1,4 +1,4 @@ -package io.github.cleverlance.linguine.linguineruntime.presentation +package com.qinshift.linguine.linguineruntime.presentation import co.touchlab.kermit.Logger import kotlin.native.concurrent.ThreadLocal diff --git a/linguine-runtime/src/commonMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/LocalisationRetriever.kt b/linguine-runtime/src/commonMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/LocalisationRetriever.kt similarity index 70% rename from linguine-runtime/src/commonMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/LocalisationRetriever.kt rename to linguine-runtime/src/commonMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/LocalisationRetriever.kt index 9543f8d..b7ccd0a 100644 --- a/linguine-runtime/src/commonMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/LocalisationRetriever.kt +++ b/linguine-runtime/src/commonMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/LocalisationRetriever.kt @@ -1,6 +1,6 @@ @file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING") -package io.github.cleverlance.linguine.linguineruntime.presentation +package com.qinshift.linguine.linguineruntime.presentation internal expect object LocalisationRetriever { fun getJson(localization: Language?): String? diff --git a/linguine-runtime/src/commonMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/Localiser.kt b/linguine-runtime/src/commonMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/Localiser.kt similarity index 80% rename from linguine-runtime/src/commonMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/Localiser.kt rename to linguine-runtime/src/commonMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/Localiser.kt index f1a8f43..aec3bd9 100644 --- a/linguine-runtime/src/commonMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/Localiser.kt +++ b/linguine-runtime/src/commonMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/Localiser.kt @@ -1,4 +1,4 @@ -package io.github.cleverlance.linguine.linguineruntime.presentation +package com.qinshift.linguine.linguineruntime.presentation @Suppress("unused") object Localiser { diff --git a/linguine-runtime/src/commonMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/Language.kt b/linguine-runtime/src/commonMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/Language.kt deleted file mode 100644 index 2fa1e16..0000000 --- a/linguine-runtime/src/commonMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/Language.kt +++ /dev/null @@ -1,3 +0,0 @@ -package io.github.cleverlance.linguine.linguineruntime.presentation - -internal data class Language(val code: String) diff --git a/linguine-runtime/src/iosMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/LanguageRepository.kt b/linguine-runtime/src/iosMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/LanguageRepository.kt similarity index 82% rename from linguine-runtime/src/iosMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/LanguageRepository.kt rename to linguine-runtime/src/iosMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/LanguageRepository.kt index 0ddaed2..94ffdec 100644 --- a/linguine-runtime/src/iosMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/LanguageRepository.kt +++ b/linguine-runtime/src/iosMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/LanguageRepository.kt @@ -1,6 +1,6 @@ @file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING") -package io.github.cleverlance.linguine.linguineruntime.presentation +package com.qinshift.linguine.linguineruntime.presentation import platform.Foundation.NSLocale import platform.Foundation.currentLocale diff --git a/linguine-runtime/src/iosMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/LocalisationRetriever.kt b/linguine-runtime/src/iosMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/LocalisationRetriever.kt similarity index 92% rename from linguine-runtime/src/iosMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/LocalisationRetriever.kt rename to linguine-runtime/src/iosMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/LocalisationRetriever.kt index 9d7f393..b94ea17 100644 --- a/linguine-runtime/src/iosMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/LocalisationRetriever.kt +++ b/linguine-runtime/src/iosMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/LocalisationRetriever.kt @@ -1,6 +1,6 @@ @file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING") -package io.github.cleverlance.linguine.linguineruntime.presentation +package com.qinshift.linguine.linguineruntime.presentation import kotlinx.cinterop.ExperimentalForeignApi import platform.Foundation.NSBundle diff --git a/linguine-runtime/src/jvmMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/LanguageRepository.kt b/linguine-runtime/src/jvmMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/LanguageRepository.kt similarity index 77% rename from linguine-runtime/src/jvmMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/LanguageRepository.kt rename to linguine-runtime/src/jvmMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/LanguageRepository.kt index 68d8158..baef485 100644 --- a/linguine-runtime/src/jvmMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/LanguageRepository.kt +++ b/linguine-runtime/src/jvmMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/LanguageRepository.kt @@ -1,6 +1,6 @@ @file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING") -package io.github.cleverlance.linguine.linguineruntime.presentation +package com.qinshift.linguine.linguineruntime.presentation import java.util.Locale diff --git a/linguine-runtime/src/jvmMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/LocalisationRetriever.kt b/linguine-runtime/src/jvmMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/LocalisationRetriever.kt similarity index 86% rename from linguine-runtime/src/jvmMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/LocalisationRetriever.kt rename to linguine-runtime/src/jvmMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/LocalisationRetriever.kt index 372f0ea..e3473c9 100644 --- a/linguine-runtime/src/jvmMain/kotlin/io/github/cleverlance/linguine/linguineruntime/presentation/LocalisationRetriever.kt +++ b/linguine-runtime/src/jvmMain/kotlin/com/qinshift/linguine/linguineruntime/presentation/LocalisationRetriever.kt @@ -1,6 +1,6 @@ @file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING") -package io.github.cleverlance.linguine.linguineruntime.presentation +package com.qinshift.linguine.linguineruntime.presentation internal actual object LocalisationRetriever {