mirror of
https://github.com/status-im/status-go.git
synced 2025-01-10 06:36:32 +00:00
6581f75c63
* fix_: enable light client for mobile * fix_: rename const name * fix_: disable store confirmation for mobile v1 by default
18 lines
327 B
Go
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
|
|
}
|