diff --git a/build.gradle.kts b/build.gradle.kts index 4cd2f2a..722275d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ plugins { } group = "info.mking.k2zpl" -version = "0.0.3" +version = "0.0.4" repositories { mavenCentral() @@ -25,7 +25,7 @@ tasks.test { mavenPublishing { publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) signAllPublications() - coordinates("info.mking.k2zpl", "k2zpl", "0.0.3") + coordinates("info.mking.k2zpl", "k2zpl", "0.0.4") pom { name.set("k2zpl") description.set("Kotlin DSL for ZPL (Zebra Programming Language)") diff --git a/src/main/kotlin/command/options/DpiSetting.kt b/src/main/kotlin/info/mking/k2zpl/command/options/ZplDpiSetting.kt similarity index 61% rename from src/main/kotlin/command/options/DpiSetting.kt rename to src/main/kotlin/info/mking/k2zpl/command/options/ZplDpiSetting.kt index dd950be..113f2e0 100644 --- a/src/main/kotlin/command/options/DpiSetting.kt +++ b/src/main/kotlin/info/mking/k2zpl/command/options/ZplDpiSetting.kt @@ -1,6 +1,8 @@ -package command.options +@file:Suppress("UNUSED") -enum class DpiSetting(val dpi: Int, val dotsPerMm: Double) { +package info.mking.k2zpl.command.options + +enum class ZplDpiSetting(val dpi: Int, val dotsPerMm: Double) { Unset(-1, -1.0), DPI_152(152, 6.0), DPI_203(203, 8.0), @@ -8,7 +10,7 @@ enum class DpiSetting(val dpi: Int, val dotsPerMm: Double) { DPI_608(608, 24.0); companion object { - fun fromDpi(dpi: Int): DpiSetting { + fun fromDpi(dpi: Int): ZplDpiSetting { return entries.find { it.dpi == dpi } ?: throw IllegalArgumentException("Unsupported DPI value: $dpi") }