status-go/common/devices.go
frank 6581f75c63
fix: enable light client for mobile (#5654)
* fix_: enable light client for mobile

* fix_: rename const name

* fix_: disable store confirmation for mobile v1 by default
2024-08-07 14:43:21 +05:30

18 lines
327 B
Go

package common
import "runtime"
const (
AndroidPlatform = "android"
IOSPlatform = "ios"
WindowsPlatform = "windows"
)
var IsMobilePlatform = func() bool {
return OperatingSystemIs(AndroidPlatform) || OperatingSystemIs(IOSPlatform)
}
func OperatingSystemIs(targetOS string) bool {
return runtime.GOOS == targetOS
}