-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconstants.js
347 lines (346 loc) · 8.6 KB
/
constants.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
export const DEVICES_WITH_NOTCH = [
{
brand: 'Apple',
model: 'iPhone 11',
},
{
brand: 'Apple',
model: 'iPhone 11 Pro',
},
{
brand: 'Apple',
model: 'iPhone 11 Pro Max',
},
{
brand: 'Apple',
model: 'iPhone X',
},
{
brand: 'Apple',
model: 'iPhone XS',
},
{
brand: 'Apple',
model: 'iPhone XS Max',
},
{
brand: 'Apple',
model: 'iPhone XR',
},
{
brand: 'Asus',
model: 'ZenFone 5',
},
{
brand: 'Asus',
model: 'ZenFone 5z',
},
{
brand: 'google',
model: 'Pixel 3 XL',
},
{
brand: 'Huawei',
model: 'P20',
},
{
brand: 'Huawei',
model: 'P20 Plus',
},
{
brand: 'Huawei',
model: 'P20 Lite',
},
{
brand: 'Huawei',
model: 'ANE-LX1',
},
{
brand: 'Huawei',
model: 'INE-LX1',
},
{
brand: 'Huawei',
model: 'Honor 10',
},
{
brand: 'Huawei',
model: 'Mate 20 Lite',
},
{
brand: 'Huawei',
model: 'Mate 20 Pro',
},
{
brand: 'Huawei',
model: 'P30 Lite',
},
{
brand: 'Huawei',
model: 'P30 Pro',
},
{
brand: 'Huawei',
model: 'Nova 3',
},
{
brand: 'Huawei',
model: 'Nova 3i',
},
{
brand: 'Leagoo',
model: 'S9',
},
{
brand: 'LG',
model: 'G7',
},
{
brand: 'LG',
model: 'G7 ThinQ',
},
{
brand: 'LG',
model: 'G7+ ThinQ',
},
{
brand: 'LG',
model: 'LM-Q910', //G7 One
},
{
brand: 'LG',
model: 'LM-G710', //G7 ThinQ
},
{
brand: 'LG',
model: 'LM-V405', //V40 ThinQ
},
{
brand: 'Motorola',
model: 'Moto g7 Play',
},
{
brand: 'Motorola',
model: 'Moto g7 Power',
},
{
brand: 'Motorola',
model: 'One',
},
{
brand: 'Nokia',
model: '5.1 Plus',
},
{
brand: 'Nokia',
model: '6.1 Plus',
},
{
brand: 'Nokia',
model: '7.1',
},
{
brand: 'Nokia',
model: '8.1',
},
{
brand: 'OnePlus',
model: '6',
},
{
brand: 'OnePlus',
model: 'A6003',
},
{
brand: 'ONEPLUS',
model: 'A6000',
},
{
brand: 'OnePlus',
model: 'OnePlus A6003',
},
{
brand: 'OnePlus',
model: 'ONEPLUS A6010',
},
{
brand: 'OnePlus',
model: 'ONEPLUS A6013',
},
{
brand: 'OnePlus',
model: 'ONEPLUS A6000',
},
{
brand: 'Oppo',
model: 'R15',
},
{
brand: 'Oppo',
model: 'R15 Pro',
},
{
brand: 'Oppo',
model: 'F7',
},
{
brand: 'Oukitel',
model: 'U18',
},
{
brand: 'Sharp',
model: 'Aquos S3',
},
{
brand: 'Vivo',
model: 'V9',
},
{
brand: 'Vivo',
model: 'X21',
},
{
brand: 'Vivo',
model: 'X21 UD',
},
{
brand: 'xiaomi',
model: 'MI 8',
},
{
brand: 'xiaomi',
model: 'MI 8 Explorer Edition',
},
{
brand: 'xiaomi',
model: 'MI 8 SE',
},
{
brand: 'xiaomi',
model: 'MI 8 UD',
},
{
brand: 'xiaomi',
model: 'MI 8 Lite',
},
{
brand: 'xiaomi',
model: 'POCO F1',
},
{
brand: 'xiaomi',
model: 'POCOPHONE F1',
},
{
brand: 'xiaomi',
model: 'Redmi 6 Pro',
},
{
brand: 'xiaomi',
model: 'Redmi Note 7',
},
{
brand: 'xiaomi',
model: 'Mi A2 Lite',
},
];
export const DEVICE_NAMES_BY_CODE = {
'iPod1,1': 'iPod Touch', // (Original)
'iPod2,1': 'iPod Touch', // (Second Generation)
'iPod3,1': 'iPod Touch', // (Third Generation)
'iPod4,1': 'iPod Touch', // (Fourth Generation)
'iPod5,1': 'iPod Touch', // (Fifth Generation)
'iPod7,1': 'iPod Touch', // (Sixth Generation)
'iPod9,1': 'iPod Touch', // (Seventh Generation)
'iPhone1,1': 'iPhone', // (Original)
'iPhone1,2': 'iPhone 3G', // (3G)
'iPhone2,1': 'iPhone 3GS', // (3GS)
'iPad1,1': 'iPad', // (Original)
'iPad2,1': 'iPad 2', //
'iPad2,2': 'iPad 2', //
'iPad2,3': 'iPad 2', //
'iPad2,4': 'iPad 2', //
'iPad3,1': 'iPad', // (3rd Generation)
'iPad3,2': 'iPad', // (3rd Generation)
'iPad3,3': 'iPad', // (3rd Generation)
'iPhone3,1': 'iPhone 4', // (GSM)
'iPhone3,2': 'iPhone 4', // iPhone 4
'iPhone3,3': 'iPhone 4', // (CDMA/Verizon/Sprint)
'iPhone4,1': 'iPhone 4S', //
'iPhone5,1': 'iPhone 5', // (model A1428, AT&T/Canada)
'iPhone5,2': 'iPhone 5', // (model A1429, everything else)
'iPad3,4': 'iPad', // (4th Generation)
'iPad3,5': 'iPad', // (4th Generation)
'iPad3,6': 'iPad', // (4th Generation)
'iPad2,5': 'iPad Mini', // (Original)
'iPad2,6': 'iPad Mini', // (Original)
'iPad2,7': 'iPad Mini', // (Original)
'iPhone5,3': 'iPhone 5c', // (model A1456, A1532 | GSM)
'iPhone5,4': 'iPhone 5c', // (model A1507, A1516, A1526 (China), A1529 | Global)
'iPhone6,1': 'iPhone 5s', // (model A1433, A1533 | GSM)
'iPhone6,2': 'iPhone 5s', // (model A1457, A1518, A1528 (China), A1530 | Global)
'iPhone7,1': 'iPhone 6 Plus', //
'iPhone7,2': 'iPhone 6', //
'iPhone8,1': 'iPhone 6s', //
'iPhone8,2': 'iPhone 6s Plus', //
'iPhone8,4': 'iPhone SE', //
'iPhone9,1': 'iPhone 7', // (model A1660 | CDMA)
'iPhone9,3': 'iPhone 7', // (model A1778 | Global)
'iPhone9,2': 'iPhone 7 Plus', // (model A1661 | CDMA)
'iPhone9,4': 'iPhone 7 Plus', // (model A1784 | Global)
'iPhone10,3': 'iPhone X', // (model A1865, A1902)
'iPhone10,6': 'iPhone X', // (model A1901)
'iPhone10,1': 'iPhone 8', // (model A1863, A1906, A1907)
'iPhone10,4': 'iPhone 8', // (model A1905)
'iPhone10,2': 'iPhone 8 Plus', // (model A1864, A1898, A1899)
'iPhone10,5': 'iPhone 8 Plus', // (model A1897)
'iPhone11,2': 'iPhone XS', // (model A2097, A2098)
'iPhone11,4': 'iPhone XS Max', // (model A1921, A2103)
'iPhone11,6': 'iPhone XS Max', // (model A2104)
'iPhone11,8': 'iPhone XR', // (model A1882, A1719, A2105)
'iPhone12,1': 'iPhone 11',
'iPhone12,3': 'iPhone 11 Pro',
'iPhone12,5': 'iPhone 11 Pro Max',
'iPad4,1': 'iPad Air', // 5th Generation iPad (iPad Air) - Wifi
'iPad4,2': 'iPad Air', // 5th Generation iPad (iPad Air) - Cellular
'iPad4,3': 'iPad Air', // 5th Generation iPad (iPad Air)
'iPad4,4': 'iPad Mini 2', // (2nd Generation iPad Mini - Wifi)
'iPad4,5': 'iPad Mini 2', // (2nd Generation iPad Mini - Cellular)
'iPad4,6': 'iPad Mini 2', // (2nd Generation iPad Mini)
'iPad4,7': 'iPad Mini 3', // (3rd Generation iPad Mini)
'iPad4,8': 'iPad Mini 3', // (3rd Generation iPad Mini)
'iPad4,9': 'iPad Mini 3', // (3rd Generation iPad Mini)
'iPad5,1': 'iPad Mini 4', // (4th Generation iPad Mini)
'iPad5,2': 'iPad Mini 4', // (4th Generation iPad Mini)
'iPad5,3': 'iPad Air 2', // 6th Generation iPad (iPad Air 2)
'iPad5,4': 'iPad Air 2', // 6th Generation iPad (iPad Air 2)
'iPad6,3': 'iPad Pro 9.7-inch', // iPad Pro 9.7-inch
'iPad6,4': 'iPad Pro 9.7-inch', // iPad Pro 9.7-inch
'iPad6,7': 'iPad Pro 12.9-inch', // iPad Pro 12.9-inch
'iPad6,8': 'iPad Pro 12.9-inch', // iPad Pro 12.9-inch
'iPad6,11': 'iPad (5th generation)', // Apple iPad 9.7 inch (5th generation) - WiFi
'iPad6,12': 'iPad (5th generation)', // Apple iPad 9.7 inch (5th generation) - WiFi + cellular
'iPad7,1': 'iPad Pro 12.9-inch', // 2nd Generation iPad Pro 12.5-inch - Wifi
'iPad7,2': 'iPad Pro 12.9-inch', // 2nd Generation iPad Pro 12.5-inch - Cellular
'iPad7,3': 'iPad Pro 10.5-inch', // iPad Pro 10.5-inch - Wifi
'iPad7,4': 'iPad Pro 10.5-inch', // iPad Pro 10.5-inch - Cellular
'iPad7,5': 'iPad (6th generation)', // iPad (6th generation) - Wifi
'iPad7,6': 'iPad (6th generation)', // iPad (6th generation) - Cellular
'iPad8,1': 'iPad Pro 11-inch (3rd generation)', // iPad Pro 11 inch (3rd generation) - Wifi
'iPad8,2': 'iPad Pro 11-inch (3rd generation)', // iPad Pro 11 inch (3rd generation) - 1TB - Wifi
'iPad8,3': 'iPad Pro 11-inch (3rd generation)', // iPad Pro 11 inch (3rd generation) - Wifi + cellular
'iPad8,4': 'iPad Pro 11-inch (3rd generation)', // iPad Pro 11 inch (3rd generation) - 1TB - Wifi + cellular
'iPad8,5': 'iPad Pro 12.9-inch (3rd generation)', // iPad Pro 12.9 inch (3rd generation) - Wifi
'iPad8,6': 'iPad Pro 12.9-inch (3rd generation)', // iPad Pro 12.9 inch (3rd generation) - 1TB - Wifi
'iPad8,7': 'iPad Pro 12.9-inch (3rd generation)', // iPad Pro 12.9 inch (3rd generation) - Wifi + cellular
'iPad8,8': 'iPad Pro 12.9-inch (3rd generation)', // iPad Pro 12.9 inch (3rd generation) - 1TB - Wifi + cellular
'iPad11,1': 'iPad Mini 5', // (5th Generation iPad Mini)
'iPad11,2': 'iPad Mini 5', // (5th Generation iPad Mini)
'iPad11,3': 'iPad Air (3rd generation)',
'iPad11,4': 'iPad Air (3rd generation)',
'AppleTV2,1': 'Apple TV', // Apple TV (2nd Generation)
'AppleTV3,1': 'Apple TV', // Apple TV (3rd Generation)
'AppleTV3,2': 'Apple TV', // Apple TV (3rd Generation - Rev A)
'AppleTV5,3': 'Apple TV', // Apple TV (4th Generation)
'AppleTV6,2': 'Apple TV 4K', // Apple TV 4K
};