domain.SwiftToolVersion.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kmmbridge Show documentation
Show all versions of kmmbridge Show documentation
KMP Xcode XCFramework Packaging and tooling
package co.touchlab.faktory.domain
internal class SwiftToolVersion private constructor(private val value: String) {
val name get() = value
internal companion object {
internal const val Default = "5.3"
internal fun of(version: String): SwiftToolVersion? =
version.takeIf(String::isNotBlank)?.let(::SwiftToolVersion)
}
override fun equals(other: Any?): Boolean = value == (other as? SwiftToolVersion)?.value
override fun hashCode(): Int = value.hashCode()
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy