Skip to content

Commit e4a02ed

Browse files
authored
Merge pull request #6020 from Countly/ar2rsawseen/master
Generate device list
2 parents 68d594a + 373fdd0 commit e4a02ed

File tree

5 files changed

+5648
-158
lines changed

5 files changed

+5648
-158
lines changed

bin/scripts/device_list/amazon.json

+2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@
7777
"AFTEU011":"Fire TV (Grundig Vision 6 HD 2019)",
7878
"AFTEU014":"Fire TV (Grundig Vision 7 4K 2019)",
7979
"AFTEUFF014":"Fire TV (Grundig OLED 4K 2019)",
80+
"AFTDEC012E":"TCL S4/S5/Q5/Q6 Series 4K UHD HDR LED (2024)",
81+
"AFTMA475B1":"TCL 4K Smart Fire TV (2024)",
8082
"AFTLFT962X3":"Stellantis",
8183
"AFTLBT962E2":"BMW (2022)",
8284
"AEOHY":"Echo Show 15 (2021)"

bin/scripts/device_list/apple.json

+27-9
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@
5656
"iPhone15,5":"iPhone 15 Plus",
5757
"iPhone16,1":"iPhone 15 Pro",
5858
"iPhone16,2":"iPhone 15 Pro Max",
59+
"iPhone17,1":"iPhone 16 Pro",
60+
"iPhone17,2":"iPhone 16 Pro Max",
61+
"iPhone17,3":"iPhone 16",
62+
"iPhone17,4":"iPhone 16 Plus",
63+
"iPhone17,5":"iPhone 16e",
5964
"iPod1,1":"iPod touch 1G",
6065
"iPod2,1":"iPod touch 2G",
6166
"iPod3,1":"iPod touch 3G",
@@ -146,14 +151,14 @@
146151
"iPad14,6":"iPad Pro 12.9 inch 6th Gen",
147152
"iPad14,8":"iPad Air 6th Gen",
148153
"iPad14,9":"iPad Air 6th Gen",
149-
"iPad16,3-A":"iPad Pro 11 inch 5th Gen",
150-
"iPad16,3-B":"iPad Pro 11 inch 5th Gen",
151-
"iPad16,4-A":"iPad Pro 11 inch 5th Gen",
152-
"iPad16,4-B":"iPad Pro 11 inch 5th Gen",
153-
"iPad16,5-A":"iPad Pro 12.9 inch 7th Gen",
154-
"iPad16,5-B":"iPad Pro 12.9 inch 7th Gen",
155-
"iPad16,6-A":"iPad Pro 12.9 inch 7th Gen",
156-
"iPad16,6-B":"iPad Pro 12.9 inch 7th Gen",
154+
"iPad14,10":"iPad Air 7th Gen",
155+
"iPad14,11":"iPad Air 7th Gen",
156+
"iPad16,1":"iPad mini 7th Gen (WiFi)",
157+
"iPad16,2":"iPad mini 7th Gen (WiFi+Cellular)",
158+
"iPad16,3":"iPad Pro 11 inch 5th Gen",
159+
"iPad16,4":"iPad Pro 11 inch 5th Gen",
160+
"iPad16,5":"iPad Pro 12.9 inch 7th Gen",
161+
"iPad16,6":"iPad Pro 12.9 inch 7th Gen",
157162
"Watch1,1":"Apple Watch (1st Gen) 38mm",
158163
"Watch1,2":"Apple Watch (1st Gen) 42mm",
159164
"Watch2,6":"Apple Watch Series 1 38mm",
@@ -198,6 +203,10 @@
198203
"Watch7,3":"Apple Watch Series 9 41mm case (GPS+Cellular)",
199204
"Watch7,4":"Apple Watch Series 9 45mm case (GPS+Cellular)",
200205
"Watch7,5":"Apple Watch Ultra 2",
206+
"Watch7,8":"Apple Watch Series 10 (42mm) GPS",
207+
"Watch7,9":"Apple Watch Series 10 (46mm) GPS",
208+
"Watch7,10":"Apple Watch Series 10 (42mm) GPS + Cellular",
209+
"Watch7,11":"Apple Watch Series 10 (46mm) GPS + Cellular",
201210
"AppleTV2,1":"Apple TV (2nd generation)",
202211
"AppleTV3,1":"Apple TV (3rd generation)",
203212
"AppleTV3,2":"Apple TV (3rd generation) (Rev)",
@@ -327,5 +336,14 @@
327336
"Mac13,2":"Mac Studio (2022)",
328337
"Mac13,1":"Mac Studio (2022)",
329338
"Mac14,14":"Mac Studio (2023) Thunderbolt",
330-
"Mac14,13":"Mac Studio (2023) USB-C"
339+
"Mac14,13":"Mac Studio (2023) USB-C",
340+
"Mac16,3":"iMac (24-inch, 2024, Four ports)",
341+
"Mac16,2":"iMac (24-inch, 2024, Two ports)",
342+
"Mac16,1":"MacBook Pro (14-inch, 2024)",
343+
"Mac16,6":"MacBook Pro (14-inch, 2024)",
344+
"Mac16,8":"MacBook Pro (16-inch, 2024)",
345+
"Mac16,7":"MacBook Pro (16-inch, 2024)",
346+
"Mac16,5":"MacBook Pro (16-inch, 2024)",
347+
"Mac16,10":"Mac mini (2024)",
348+
"Mac16,11":"Mac mini (2024)"
331349
}

bin/scripts/device_list/generate.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// run as
2-
// node generate.js > countly.device.list.js
2+
// node generate.js > ../../../frontend/express/public/javascripts/countly/countly.device.list.js
33

4-
//https://www.theiphonewiki.com/wiki/Models
4+
//https://www.theiphonewiki.com/wiki/Models
55
//https://gist.github.com/adamawolf/3048717
66
//scrape_mac_devices.txt
77
var devices = require("./apple.json");
@@ -17,6 +17,7 @@ for (var i in amazon) {
1717
}
1818
var csv = require('csvtojson');
1919
csv()
20+
//Shift + Cmd + P -> Convert Encoding -> Save with encoding -> UTF-8
2021
//from https://support.google.com/googleplay/answer/1727131?hl=en-GB
2122
.fromFile("./supported_devices.csv")
2223
.on('json', (jsonObj)=>{

0 commit comments

Comments
 (0)