-
Notifications
You must be signed in to change notification settings - Fork 0
/
Constants.fs
31 lines (22 loc) · 987 Bytes
/
Constants.fs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module BlindfoldChessTraining.Constants
open BlindfoldChessTraining.Types
open Microsoft.Maui.Devices
let os =
match DeviceInfo.Current.Platform with
| v when v = DevicePlatform.Android -> Android
| v when v = DevicePlatform.iOS -> IOS
| _ -> raise UnknownOS
let volumePressOrPanGestureDebounceTimeout = 500L
let numOfLevelsPerCategory = 10
let numOfPuzzlesPerLevel = 50
let fontSize = 20.
let visualWidth =
DeviceDisplay.MainDisplayInfo.Width / DeviceDisplay.MainDisplayInfo.Density
let appStoreUrl =
match os with
| Android -> "https://play.google.com/store/apps/details?id=com.github.mrdimosthenis.blindfoldchesstraining"
| IOS -> "https://apps.apple.com/us/app/apple-store/id1553271236"
let gitHubUrl = "https://github.com/mrdimosthenis/BlindfoldChessTraining"
let linkedInUrl = "https://www.linkedin.com/in/mrdimosthenis/"
let privacyPolicyUrl =
"https://github.com/mrdimosthenis/BlindfoldChessTraining/blob/master/privacy_policy.md"