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: DangcapHD, Durabook, Panoramic, Platoon, Visual Land and Detect devices for exist brands #7421

Merged
merged 4 commits into from
Jun 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'D5' => 'Daewoo',
'DA' => 'Danew',
'DAN' => 'Dany',
'DA1' => 'DangcapHD',
'DT' => 'Datang',
'D7' => 'Datawind',
'7D' => 'Datamini',
Expand Down Expand Up @@ -422,6 +423,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'DU' => 'Dune HD',
'UD' => 'DUNNS Mobile',
'DUU' => 'Duubee',
'DUR' => 'Durabook',
'DTE' => 'D-Tech',
'DLI' => 'D-Link',
'ENO' => 'eNOVA',
Expand Down Expand Up @@ -1134,6 +1136,8 @@ abstract class AbstractDeviceParser extends AbstractParser
'PA' => 'Panasonic',
'PT' => 'Pantech',
'PAN' => 'Pano',
'PA1' => 'Panoramic',
'PLT' => 'Platoon',
'94' => 'Packard Bell',
'H9' => 'Parrot Mobile',
'PAR' => 'Partner Mobile',
Expand Down Expand Up @@ -1589,6 +1593,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'VIZ' => 'Vizmo',
'VIT' => 'Vityaz',
'9V' => 'Vision Touch',
'VIL' => 'Visual Land',
'VK' => 'VK Mobile',
'JM' => 'v-mobile',
'VHO' => 'V-HOPE',
Expand Down
16 changes: 16 additions & 0 deletions Tests/fixtures/peripheral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1164,3 +1164,19 @@
model: M5
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 9; iData 50 Build/PPR1.180610.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/79.0.3945.116 Mobile Safari/537.36 Line/12.10.1/IAB
os:
name: Android
version: "9"
platform: ""
client:
type: mobile app
name: Line
version: 12.10.1
device:
type: peripheral
brand: iData
model: "50"
os_family: Android
browser_family: Unknown
18 changes: 18 additions & 0 deletions Tests/fixtures/phablet-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1255,3 +1255,21 @@
model: Redmi Note 5
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 13; V2266A) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 YaApp_Android/23.50.1 YaSearchBrowser/23.50.1 BroPP/1.0 (beta) SA/3 Mobile Safari/537.36
os:
name: Android
version: "13"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 23.50.1
engine: Blink
engine_version: 112.0.0.0
device:
type: phablet
brand: Vivo
model: X Fold 2
os_family: Android
browser_family: Unknown
Loading
Loading