forked from wabisabi-js/isthereuber.in
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappStores.js
118 lines (115 loc) · 4.14 KB
/
appStores.js
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
import MobileDetect from 'mobile-detect'
const md = new MobileDetect(
typeof window !== 'undefined' ? window.navigator.userAgent : ''
)
const mobileOs =
md && (md.os() === 'iOS' || md.match('Mac')) ? 'ios' : 'android'
const sanitizeAppName = name => name.toLowerCase().trim()
const storeLinks = {
uber: {
ios: 'https://itunes.apple.com/us/app/uber/id368677368?mt=8',
android: 'https://play.google.com/store/apps/details?id=com.ubercab&hl=en'
},
cabify: {
ios: 'https://itunes.apple.com/us/app/cabify/id476087442?mt=8',
android: 'https://play.google.com/store/apps/details?id=com.cabify.rider'
},
taxify: {
ios: 'https://itunes.apple.com/us/app/taxify/id675033630?mt=8',
android: 'https://play.google.com/store/apps/details?id=ee.mtakso.client'
},
lyft: {
ios: 'https://itunes.apple.com/cy/app/lyft/id529379082?mt=8',
android:
'https://play.google.com/store/apps/details?id=me.lyft.android&hl=en'
},
grab: {
ios: 'https://itunes.apple.com/sg/app/grab-app/id647268330?mt=8',
android:
'https://play.google.com/store/apps/details?id=com.grabtaxi.passenger'
},
gojek: {
ios: 'https://itunes.apple.com/us/app/go-jek/id944875099?mt=8',
android: 'https://play.google.com/store/apps/details?id=com.gojek.app'
},
mytaxi: {
ios:
'https://itunes.apple.com/us/app/mytaxi-tap-move-freely/id357852748?mt=8',
android: 'https://play.google.com/store/apps/details?id=taxi.android.client'
},
chauffeurprive: {
ios:
'https://itunes.apple.com/us/app/chauffeur-priv%C3%A9/id504597178?mt=8',
android: 'https://play.google.com/store/apps/details?id=fr.chauffeurprive'
},
beat: {
ios: 'https://itunes.apple.com/us/app/beat-ride-app/id436031420?mt=8',
android:
'https://play.google.com/store/apps/details?id=gr.androiddev.taxibeat'
},
blacklane: {
ios:
'https://itunes.apple.com/us/app/blacklane-airport-transfers/id524123600?mt=8',
android:
'https://play.google.com/store/apps/details?id=com.blacklane.passenger&hl=en'
},
gett: {
ios:
'https://itunes.apple.com/us/app/gett-car-service-rideshare/id449655162?mt=8',
android:
'https://play.google.com/store/apps/details?id=com.gettaxi.android&hl=en'
},
taksini: {
ios: 'https://itunes.apple.com/fi/app/l%C3%A4hitaksi/id997696813?mt=8',
android: 'https://play.google.com/store/apps/details?id=dk.frogne.lahitaksi'
},
'taksi helsinki': {
ios: 'https://itunes.apple.com/fi/app/taksi-helsinki/id499496168?mt=8',
android:
'https://play.google.com/store/apps/details?id=fi.taksihelsinki.taksimobipro&hl=en'
},
'Lady Driver': {
ios:
'https://itunes.apple.com/br/app/lady-driver-passageira/id1216671266?mt=8',
android:
'https://play.google.com/store/apps/details?id=br.com.ladydriver.passenger'
},
'99 Pop': {
ios:
'https://itunes.apple.com/br/app/99-t%C3%A1xi-e-carro-particular/id553663691?mt=8',
android: 'https://play.google.com/store/apps/details?id=com.taxis99'
},
moove: {
ios: 'https://itunes.apple.com/dk/app/moove/id1180956418?mt=8',
android: 'https://play.google.com/store/apps/details?id=com.moovetaxi.app'
},
'urban go': {
android:
'https://play.google.com/store/apps/details?id=com.multibrains.taxi.passenger.urbango',
ios: 'https://itunes.apple.com/app/id1260953622'
},
careem: {
ios: 'https://itunes.apple.com/app/careem/id592978487?mt=8',
android: 'https://play.google.com/store/apps/details?id=com.careem.acma'
},
heetch: {
ios:
'https://itunes.apple.com/fr/app/heetch-enjoy-your-night-out/id693137280?mt=8',
android: 'https://play.google.com/store/apps/details?id=com.heetch&hl=fr'
},
'yandex taxi': {
ios: 'https://itunes.apple.com/us/app/yandex-taxi/id472650686',
android: 'https://play.google.com/store/apps/details?id=ru.yandex.taxi'
},
pathao: {
ios: 'https://itunes.apple.com/us/app/pathao/id1201700952?mt=8',
android:
'https://play.google.com/store/apps/details?id=com.pathao.user&hl=en'
},
default: {
ios: '#',
android: '#'
}
}
export const getAppStoreLink = app =>
(storeLinks[sanitizeAppName(app)] || storeLinks.default)[mobileOs]