Add support for macOS and backport to older OS versions
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package xyz.tyiu.satsprice
|
||||
|
||||
import platform.Foundation.NSProcessInfo
|
||||
|
||||
class MacOSPlatform : Platform {
|
||||
override val name: String = "macOS " + NSProcessInfo.processInfo.operatingSystemVersionString
|
||||
}
|
||||
|
||||
actual fun getPlatform(): Platform = MacOSPlatform()
|
||||
Reference in New Issue
Block a user