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: Kinstone, ROiK and Detect device for exist brands: Samsung, Huawai, DEXP, TCL, Xiaomi #7380

Merged
merged 6 commits into from
Mar 31, 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
2 changes: 2 additions & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'K1' => 'Kiano',
'5W' => 'Kingbox',
'KI' => 'Kingsun',
'KIS' => 'Kinstone',
'KF' => 'KINGZONE',
'KIN' => 'Kingstar',
'46' => 'Kiowa',
Expand Down Expand Up @@ -1217,6 +1218,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'QR' => 'ROADMAX',
'ROC' => 'Roam Cat',
'R1' => 'Rokit',
'ROI' => 'ROiK',
'RK' => 'Roku',
'R3' => 'Rombica',
'R5' => 'Ross&Moor',
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 @@ -611,3 +611,21 @@
model: Pro 8475
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 7.1.2; RoiK10) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Mobile Safari/537.36
os:
name: Android
version: 7.1.2
platform: ""
client:
type: browser
name: Chrome Mobile
version: 110.0.0.0
engine: Blink
engine_version: 110.0.0.0
device:
type: car browser
brand: ROiK
model: "10"
os_family: Android
browser_family: Chrome
18 changes: 18 additions & 0 deletions Tests/fixtures/console.yml
Original file line number Diff line number Diff line change
Expand Up @@ -503,3 +503,21 @@
model: Freya
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 9; Retroid Pocket 2+) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Mobile Safari/537.36
os:
name: Android
version: "9"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 111.0.0.0
engine: Blink
engine_version: 111.0.0.0
device:
type: console
brand: Retroid Pocket
model: 2 Plus
os_family: Android
browser_family: Chrome
Loading