Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect new brands: ASSE, Kraft, Linsay, NeuTab, Zoom and Detect devices for exist brands #7401

Merged
merged 7 commits into from
May 4, 2023
5 changes: 5 additions & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'1U' => 'Astro',
'A4' => 'Ask',
'A8' => 'Assistant',
'ASS' => 'ASSE',
'AU' => 'Asus',
'6A' => 'AT&T',
'ATH' => 'Athesi',
Expand Down Expand Up @@ -809,6 +810,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'KE' => 'Krüger&Matz',
'5K' => 'KREZ',
'WK' => 'KRIP',
'KRA' => 'Kraft',
'KH' => 'KT-Tech',
'Z6' => 'KUBO',
'K8' => 'Kuliao',
Expand Down Expand Up @@ -850,6 +852,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'LG' => 'LG',
'39' => 'Liberton',
'5L' => 'Linsar',
'LIN' => 'Linsay',
'LF' => 'Lifemaxx',
'LI' => 'Lingwin',
'LJ' => 'L-Max',
Expand Down Expand Up @@ -1002,6 +1005,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'NA' => 'Netgear',
'NEM' => 'Netmak',
'NU' => 'NeuImage',
'NEU' => 'NeuTab',
'NW' => 'Newgen',
'N9' => 'Newland',
'0N' => 'Newman',
Expand Down Expand Up @@ -1694,6 +1698,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'ZW' => 'Zonko',
'ZP' => 'Zopo',
'ZOO' => 'ZoomSmart',
'ZO1' => 'Zoom',
'ZT' => 'ZTE',
'ZU' => 'Zuum',
'ZY' => 'Zync',
Expand Down
18 changes: 18 additions & 0 deletions Tests/fixtures/car_browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -881,3 +881,21 @@
model: ""
os_family: GNU/Linux
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 9.1; YT9213AJ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
os:
name: Android
version: "9.1"
platform: ""
client:
type: browser
name: Chrome
version: 110.0.0.0
engine: Blink
engine_version: 110.0.0.0
device:
type: car browser
brand: XY Auto
model: YT9213AJ
os_family: Android
browser_family: Chrome
54 changes: 54 additions & 0 deletions Tests/fixtures/desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9097,3 +9097,57 @@
model: Vostro 14-3468
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 8.1.0; Swift SF113-31) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.143 Safari/537.36
os:
name: Android
version: 8.1.0
platform: ""
client:
type: browser
name: Chrome
version: 75.0.3770.143
engine: Blink
engine_version: 75.0.3770.143
device:
type: desktop
brand: Acer
model: Swift SF113-31
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 9; Latitude E4310) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36
os:
name: Android
version: "9"
platform: ""
client:
type: browser
name: Chrome
version: 84.0.4147.89
engine: Blink
engine_version: 84.0.4147.89
device:
type: desktop
brand: Dell
model: Latitude E4310
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 8.1.0; K50IJ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36
os:
name: Android
version: 8.1.0
platform: ""
client:
type: browser
name: Chrome
version: 74.0.3729.157
engine: Blink
engine_version: 74.0.3729.157
device:
type: desktop
brand: Asus
model: K50IJ
os_family: Android
browser_family: Chrome
18 changes: 18 additions & 0 deletions Tests/fixtures/phablet-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1093,3 +1093,21 @@
model: PhonePad Duo S510L
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.4.2; Infinix-X551) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.96 Mobile Safari/537.36
os:
name: Android
version: 4.4.2
platform: ""
client:
type: browser
name: Chrome Mobile
version: 81.0.4044.96
engine: Blink
engine_version: 81.0.4044.96
device:
type: phablet
brand: Infinix
model: Hot Note
os_family: Android
browser_family: Chrome
Loading