Skip to content
New issue

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

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

Already on GitHub? # to your account

Detect new brand Surfans and Detect devices for exist brands #7706

Merged
merged 3 commits into from
Jun 10, 2024
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
1 change: 1 addition & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -1550,6 +1550,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'69' => 'Stylo',
'9S' => 'Sugar',
'SUR' => 'Surge',
'SUF' => 'Surfans',
'06' => 'Subor',
'SZ' => 'Sumvision',
'0H' => 'Sunstech',
Expand Down
18 changes: 18 additions & 0 deletions Tests/fixtures/desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9709,3 +9709,21 @@
model: GP70 2OD
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 11; HP Engage One Pro AIO System) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.87 Safari/537.36
os:
name: Android
version: "11"
platform: ""
client:
type: browser
name: Chrome
version: 97.0.4692.87
engine: Blink
engine_version: 97.0.4692.87
device:
type: desktop
brand: HP
model: Engage One Pro AIO
os_family: Android
browser_family: Chrome
36 changes: 36 additions & 0 deletions Tests/fixtures/phablet-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4570,3 +4570,39 @@
model: Redmi Note 12R
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; U; Android 14; en-US; SM-F946W Build/UP1A.231005.007) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/100.0.4896.58 UCBrowser/13.7.0.1319 Mobile Safari/537.36
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: UC Browser
version: 13.7.0.1319
engine: Blink
engine_version: 100.0.4896.58
device:
type: phablet
brand: Samsung
model: Galaxy Z Fold 5
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; U; Android 13; en-gb; Redmi Note 12R Pro Build/TKQ1.221013.002) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/112.0.5615.136 Mobile Safari/537.36 XiaoMi/MiuiBrowser/14.9.1-gn
os:
name: Android
version: "13"
platform: ""
client:
type: browser
name: MIUI Browser
version: 14.9.1
engine: Blink
engine_version: 112.0.5615.136
device:
type: phablet
brand: Xiaomi
model: Redmi Note 12R Pro
os_family: Android
browser_family: Android Browser
18 changes: 18 additions & 0 deletions Tests/fixtures/portable_media_player.yml
Original file line number Diff line number Diff line change
Expand Up @@ -933,3 +933,21 @@
model: R6 Gen III
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 11; Y57A) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
os:
name: Android
version: "11"
platform: ""
client:
type: browser
name: Chrome
version: 87.0.4280.141
engine: Blink
engine_version: 87.0.4280.141
device:
type: portable media player
brand: Surfans
model: Y57A
os_family: Android
browser_family: Chrome
2 changes: 1 addition & 1 deletion Tests/fixtures/smartphone-27.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2748,7 +2748,7 @@
device:
type: smartphone
brand: Vivo
model: Y51
model: Y51A
os_family: Android
browser_family: Unknown
-
Expand Down
Loading
Loading