commonMain.co.touchlab.skie.plugin.shim.impl.ActualKonanTargetShim.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-plugin-shim-impl-kgp_2.0.0 Show documentation
Show all versions of gradle-plugin-shim-impl-kgp_2.0.0 Show documentation
Implementation of the SKIE Gradle Plugin Shim API, used by the main plugin module to interact with Kotlin Gradle Plugin.
The newest version!
package co.touchlab.skie.plugin.shim.impl
import co.touchlab.skie.plugin.shim.KonanTargetShim
import org.jetbrains.kotlin.konan.target.KonanTarget
import org.jetbrains.kotlin.konan.target.presetName
class ActualKonanTargetShim(
private val konanTarget: KonanTarget,
) : KonanTargetShim {
override val name: String = konanTarget.name
override val presetName: String = konanTarget.presetName
override fun toString(): String =
konanTarget.toString()
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other !is ActualKonanTargetShim) return false
if (konanTarget != other.konanTarget) return false
return true
}
override fun hashCode(): Int =
konanTarget.hashCode()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy