2
0
mirror of https://github.com/status-im/status-go.git synced 2025-02-24 04:38:41 +00:00

18 lines
327 B
Go
Raw Normal View History

2023-09-05 10:04:38 +01:00
package common
import "runtime"
2023-09-05 10:04:38 +01:00
const (
AndroidPlatform = "android"
IOSPlatform = "ios"
WindowsPlatform = "windows"
2023-09-05 10:04:38 +01:00
)
var IsMobilePlatform = func() bool {
return OperatingSystemIs(AndroidPlatform) || OperatingSystemIs(IOSPlatform)
}
func OperatingSystemIs(targetOS string) bool {
return runtime.GOOS == targetOS
}