All Downloads are FREE. Search and download functionalities are using the official Maven repository.

desktopMain.com.multiplatform.webview.util.getPlatform.kt Maven / Gradle / Ivy

package com.multiplatform.webview.util

internal actual fun getPlatform(): Platform {
    return Platform.Desktop
}

internal actual fun getPlatformVersion(): String {
    // TODO
    return "11.0"
}

internal actual fun getPlatformVersionDouble(): Double {
    val systemVersion = getPlatformVersion()
    val components = systemVersion.split(".")
    val major = components.getOrNull(0)?.toDoubleOrNull() ?: 0.0
    val minor = components.getOrNull(1)?.toDoubleOrNull() ?: 0.0
    return major + (minor / 10.0)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy