Skip to content

Commit

Permalink
feat(device) detect new brand BOE model: HV320WHB-N55
Browse files Browse the repository at this point in the history
feat(device) detect brand Rombica model: Smart Box v009

issue matomo-org#6517
  • Loading branch information
sanchezzzhak committed Dec 9, 2020
1 parent eeae05d commit e642523
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
1 change: 1 addition & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'B2' => 'Blackview',
'B4' => 'bogo',
'BW' => 'Boway',
'4B' => 'BOE',
'BZ' => 'Bezkam',
'BX' => 'bq',
'BV' => 'Bravis',
Expand Down
36 changes: 36 additions & 0 deletions Tests/fixtures/smartphone-19.yml
Original file line number Diff line number Diff line change
Expand Up @@ -809,4 +809,40 @@
model: 15 Lite
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 7.1.2; Smart Box v009 Build/NHG47L; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/52.0.2743.100 Safari/537.36
os:
name: Android
version: 7.1.2
platform: ""
client:
type: browser
name: Chrome Webview
version: 52.0.2743.100
engine: Blink
engine_version: ""
device:
type: tv
brand: Rombica
model: Smart Box v009
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.4.4; Leff Shell HV320WHB-N55) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 YaBrowser/18.11.1.1011.01 Safari/537.36
os:
name: Android
version: 4.4.4
platform: ""
client:
type: browser
name: Yandex Browser
version: 18.11.1.1011.01
engine: Blink
engine_version: ""
device:
type: tv
brand: BOE
model: HV320WHB-N55
os_family: Android
browser_family: Unknown

10 changes: 8 additions & 2 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11283,12 +11283,12 @@ Rokit:

# Rombica
Rombica:
regex: '(Rombica|SSQ-A0500)(?:[);/ ]|$)'
regex: '(Rombica|SSQ-A0500|Smart Box v[0-9]+)(?:[);/ ]|$)'
device: 'tv'
models:
- regex: 'SSQ-A0500(?:[);/ ]|$)'
model: 'Smart Stick 4K'
- regex: '(Infinity K8|Smart Box (?:v00[34578]|Quad|Ultra HD v002|4K V001))(?:[);/ ]|$)'
- regex: '(Infinity K8|Smart Box (?:v00[345789]|Quad|Ultra HD v002|4K V001))(?:[);/ ]|$)'
model: '$1'

# Rover
Expand Down Expand Up @@ -18349,6 +18349,12 @@ Silelis:
device: 'tv'
model: '$1'

# BOE (www.boe.com)
BOE:
regex: 'Leff Shell (HV320WHB-N55)(?:[);/ ]|$)'
device: 'tv'
model: '$1'

# Hardkernel (www.hardkernel.com)
Hardkernel:
regex: 'ODROID[-]?(C2|U2|XU[34])(?:[);/ ]|$)'
Expand Down

0 comments on commit e642523

Please sign in to comment.