import { DeviceType } from "../models/accountSession"; export const appVersion = '4.42.1' const deviceModels: DeviceType[] = [ { model: "Samsung Galaxy S21", manufacturer: "Samsung", os: "Android", osVersion: "12" }, { model: "Samsung Galaxy S20", manufacturer: "Samsung", os: "Android", osVersion: "12" }, { model: "Samsung Galaxy S10", manufacturer: "Samsung", os: "Android", osVersion: "11" }, { model: "Samsung Galaxy Note 20", manufacturer: "Samsung", os: "Android", osVersion: "11" }, { model: "Samsung Galaxy Note 10", manufacturer: "Samsung", os: "Android", osVersion: "11" }, { model: "iPad Pro", manufacturer: "Apple", os: "iOS", osVersion: "15" }, { model: "iPad Air", manufacturer: "Apple", os: "iOS", osVersion: "15" }, { model: "iPad", manufacturer: "Apple", os: "iOS", osVersion: "15" }, { model: "iPhone 14", manufacturer: "Apple", os: "iOS", osVersion: "15" }, { model: "iPhone 14 Pro", manufacturer: "Apple", os: "iOS", osVersion: "15" }, { model: "iPhone 14 Pro Max", manufacturer: "Apple", os: "iOS", osVersion: "15" }, { model: "iPhone 14 Plus", manufacturer: "Apple", os: "iOS", osVersion: "15" }, { model: "iPhone 13 Pro", manufacturer: "Apple", os: "iOS", osVersion: "15" }, { model: "iPhone 13 Pro Max", manufacturer: "Apple", os: "iOS", osVersion: "15" }, { model: "iPhone 13", manufacturer: "Apple", os: "iOS", osVersion: "15" }, { model: "iPhone 12", manufacturer: "Apple", os: "iOS", osVersion: "15" }, { model: "iPhone 12 Pro", manufacturer: "Apple", os: "iOS", osVersion: "15" }, { model: "iPhone 12 Pro Max", manufacturer: "Apple", os: "iOS", osVersion: "15" }, { model: "iPhone 12 Mini", manufacturer: "Apple", os: "iOS", osVersion: "15" }, { model: "iPhone 11 Pro", manufacturer: "Apple", os: "iOS", osVersion: "15" }, { model: "iPhone 11 Pro Max", manufacturer: "Apple", os: "iOS", osVersion: "15" }, { model: "iPhone 11", manufacturer: "Apple", os: "iOS", osVersion: "15" }, { model: "iPhone X", manufacturer: "Apple", os: "iOS", osVersion: "11" }, { model: "iPhone 8", manufacturer: "Apple", os: "iOS", osVersion: "11" }, { model: "Google Pixel 6", manufacturer: "Google", os: "Android", osVersion: "12" }, { model: "Google Pixel 5", manufacturer: "Google", os: "Android", osVersion: "12" }, { model: "Google Pixel 4", manufacturer: "Google", os: "Android", osVersion: "11" }, { model: "Google Pixel 3", manufacturer: "Google", os: "Android", osVersion: "10" }, { model: "Google Pixel 2", manufacturer: "Google", os: "Android", osVersion: "10" }, { model: "OnePlus 9", manufacturer: "OnePlus", os: "Android", osVersion: "12" }, { model: "OnePlus 8", manufacturer: "OnePlus", os: "Android", osVersion: "12" }, { model: "OnePlus 7", manufacturer: "OnePlus", os: "Android", osVersion: "12" }, { model: "OnePlus 6", manufacturer: "OnePlus", os: "Android", osVersion: "12" }, { model: "OnePlus 5", manufacturer: "OnePlus", os: "Android", osVersion: "12" }, { model: "Huawei P40", manufacturer: "Huawei", os: "Android", osVersion: "12" }, { model: "Huawei P30", manufacturer: "Huawei", os: "Android", osVersion: "11" }, { model: "Huawei Mate 40", manufacturer: "Huawei", os: "Android", osVersion: "11" }, { model: "Huawei Mate 30", manufacturer: "Huawei", os: "Android", osVersion: "11" }, { model: "Huawei Nova 7", manufacturer: "Huawei", os: "Android", osVersion: "11" }, { model: "Xiaomi Mi 11", manufacturer: "Xiaomi", os: "Android", osVersion: "12" }, { model: "Xiaomi Mi 10", manufacturer: "Xiaomi", os: "Android", osVersion: "12" }, { model: "Xiaomi Mi 9", manufacturer: "Xiaomi", os: "Android", osVersion: "12" }, { model: "Xiaomi Redmi Note 10", manufacturer: "Xiaomi", os: "Android", osVersion: "12" }, { model: "Xiaomi Redmi Note 9", manufacturer: "Xiaomi", os: "Android", osVersion: "12" }, { model: "Oppo Find X3", manufacturer: "Oppo", os: "Android", osVersion: "12" }, { model: "Oppo Find X2", manufacturer: "Oppo", os: "Android", osVersion: "12" }, { model: "Oppo Reno 5", manufacturer: "Oppo", os: "Android", osVersion: "12" }, { model: "Oppo Reno 4", manufacturer: "Oppo", os: "Android", osVersion: "12" }, { model: "Oppo A94", manufacturer: "Oppo", os: "Android", osVersion: "12" }, { model: "Sony Xperia 1 III", manufacturer: "Sony", os: "Android", osVersion: "12" }, { model: "Sony Xperia 5 II", manufacturer: "Sony", os: "Android", osVersion: "12" }, { model: "Sony Xperia 10 II", manufacturer: "Sony", os: "Android", osVersion: "12" }, { model: "Sony Xperia L4", manufacturer: "Sony", os: "Android", osVersion: "10" }, { model: "Sony Xperia 1 II", manufacturer: "Sony", os: "Android", osVersion: "10" }, { model: "LG Velvet", manufacturer: "LG", os: "Android", osVersion: "12" }, { model: "LG Wing", manufacturer: "LG", os: "Android", osVersion: "12" }, { model: "LG G8X ThinQ", manufacturer: "LG", os: "Android", osVersion: "11" }, { model: "LG V60 ThinQ", manufacturer: "LG", os: "Android", osVersion: "11" }, { model: "LG Q92", manufacturer: "LG", os: "Android", osVersion: "11" }, { model: "Motorola Moto G100", manufacturer: "Motorola", os: "Android", osVersion: "12" }, { model: "Motorola Moto G60", manufacturer: "Motorola", os: "Android", osVersion: "12" }, { model: "Motorola Moto G30", manufacturer: "Motorola", os: "Android", osVersion: "12" }, { model: "Motorola Moto E7", manufacturer: "Motorola", os: "Android", osVersion: "12" }, { model: "Motorola Edge", manufacturer: "Motorola", os: "Android", osVersion: "11" }, { model: "Nokia 8.3", manufacturer: "Nokia", os: "Android", osVersion: "12" }, { model: "Nokia 5.4", manufacturer: "Nokia", os: "Android", osVersion: "10" }, { model: "Nokia 3.4", manufacturer: "Nokia", os: "Android", osVersion: "10" }, { model: "Nokia 2.4", manufacturer: "Nokia", os: "Android", osVersion: "11" }, { model: "Nokia 1.3", manufacturer: "Nokia", os: "Android", osVersion: "11" }, { model: "Asus ROG Phone 5", manufacturer: "Asus", os: "Android", osVersion: "12" }, { model: "Asus Zenfone 8", manufacturer: "Asus", os: "Android", osVersion: "12" }, { model: "Asus ROG Phone 3", manufacturer: "Asus", os: "Android", osVersion: "11" }, { model: "Asus Zenfone 7", manufacturer: "Asus", os: "Android", osVersion: "11" }, { model: "Asus Zenfone 6", manufacturer: "Asus", os: "Android", osVersion: "11" }, { model: "Realme GT", manufacturer: "Realme", os: "Android", osVersion: "12" }, { model: "Realme 8", manufacturer: "Realme", os: "Android", osVersion: "12" }, { model: "Realme 7", manufacturer: "Realme", os: "Android", osVersion: "12" }, { model: "Realme X7", manufacturer: "Realme", os: "Android", osVersion: "11" }, { model: "Realme Narzo 30", manufacturer: "Realme", os: "Android", osVersion: "11" }, { model: "Vivo X60", manufacturer: "Vivo", os: "Android", osVersion: "12" }, { model: "Vivo V21", manufacturer: "Vivo", os: "Android", osVersion: "12" }, { model: "Vivo Y20", manufacturer: "Vivo", os: "Android", osVersion: "11" }, { model: "Vivo X50", manufacturer: "Vivo", os: "Android", osVersion: "11" }, { model: "Vivo V19", manufacturer: "Vivo", os: "Android", osVersion: "10" }, { model: "ZTE Axon 30", manufacturer: "ZTE", os: "Android", osVersion: "12" }, { model: "ZTE Nubia Red Magic 6", manufacturer: "ZTE", os: "Android", osVersion: "12" }, { model: "ZTE Blade V2020", manufacturer: "ZTE", os: "Android", osVersion: "11" }, { model: "ZTE Axon 20", manufacturer: "ZTE", os: "Android", osVersion: "11" }, { model: "ZTE Nubia Play", manufacturer: "ZTE", os: "Android", osVersion: "10" }, { model: "Lenovo Legion Duel", manufacturer: "Lenovo", os: "Android", osVersion: "12" }, { model: "Lenovo K12 Pro", manufacturer: "Lenovo", os: "Android", osVersion: "11" }, { model: "Lenovo Z6 Pro", manufacturer: "Lenovo", os: "Android", osVersion: "11" }, { model: "Lenovo A8", manufacturer: "Lenovo", os: "Android", osVersion: "10" }, { model: "Lenovo P11", manufacturer: "Lenovo", os: "Android", osVersion: "10" }, { model: "Meizu 18", manufacturer: "Meizu", os: "Android", osVersion: "12" }, { model: "Meizu 17", manufacturer: "Meizu", os: "Android", osVersion: "12" }, { model: "Meizu 16T", manufacturer: "Meizu", os: "Android", osVersion: "11" }, { model: "Meizu 15", manufacturer: "Meizu", os: "Android", osVersion: "11" }, { model: "Meizu X8", manufacturer: "Meizu", os: "Android", osVersion: "10" }, { model: "Honor 50", manufacturer: "Honor", os: "Android", osVersion: "12" }, { model: "Honor 30", manufacturer: "Honor", os: "Android", osVersion: "11" }, { model: "Honor View 20", manufacturer: "Honor", os: "Android", osVersion: "10" }, { model: "Honor 20 Pro", manufacturer: "Honor", os: "Android", osVersion: "10" }, { model: "Honor 9X", manufacturer: "Honor", os: "Android", osVersion: "10" }, ]; function getRandomDeviceModel(): DeviceType { const randomIndex = Math.floor(Math.random() * deviceModels.length); return deviceModels[randomIndex]; } export function generateDeviceOsStr(os: string, osVersion: string, manufacturer: string, model: string) { let osStr = ''; if (os.includes("Android")) { osStr = `Android ${osVersion}`; } else if (os.includes("iOS")) { osStr = `iOS ${osVersion}`; } else { osStr = `${os} ${osVersion}`; } return `${osStr}|V${appVersion}|${manufacturer} ${model}|TR`; } export default getRandomDeviceModel;