Skip to content

Commit

Permalink
feat(device) detect brand Lenovo models: Tab M10 FHD Plus (TB-X606X),…
Browse files Browse the repository at this point in the history
… TAB 2 A7 (A7-30HC, A7-30GC),

 TAB4 8 Plus (TB-8704X), Tab 7 Essential (TB-7304X), Tab 7 (TB-7504X)
feat(device) detect brand Meizu model: 15 Lite

issue matomo-org#6517
  • Loading branch information
sanchezzzhak committed Dec 9, 2020
1 parent d8c674b commit eeae05d
Show file tree
Hide file tree
Showing 2 changed files with 144 additions and 5 deletions.
129 changes: 128 additions & 1 deletion Tests/fixtures/smartphone-19.yml
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,133 @@
device:
type: tablet
brand: Lenovo
model: TAB2 A10
model: TAB 2 A10
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 9; Lenovo TB-X606X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.127 YaBrowser/20.9.2.95.01 Safari/537.36
os:
name: Android
version: "9"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 20.9.2.95.01
engine: Blink
engine_version: ""
device:
type: tablet
brand: Lenovo
model: Tab M10 FHD Plus
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 4.4.2; Lenovo TAB 2 A7-30HC) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
os:
name: Android
version: 4.4.2
platform: ""
client:
type: browser
name: Chrome
version: 81.0.4044.138
engine: Blink
engine_version: ""
device:
type: tablet
brand: Lenovo
model: TAB 2 A7
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 8.1.0; Lenovo TB-8704X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.127 YaBrowser/20.9.4.99.01 Safari/537.36
os:
name: Android
version: 8.1.0
platform: ARM
client:
type: browser
name: Yandex Browser
version: 20.9.4.99.01
engine: Blink
engine_version: ""
device:
type: tablet
brand: Lenovo
model: TAB4 8 Plus
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 7.0; Lenovo TB-7304X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
os:
name: Android
version: "7.0"
platform: ""
client:
type: browser
name: Chrome
version: 86.0.4240.198
engine: Blink
engine_version: ""
device:
type: tablet
brand: Lenovo
model: Tab 7 Essential
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 7.0; Lenovo TB-7504X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.92 Mobile Safari/537.36
os:
name: Android
version: "7.0"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 77.0.3865.92
engine: Blink
engine_version: ""
device:
type: tablet
brand: Lenovo
model: Tab 7
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.4.2; Lenovo TAB 2 A7-30GC) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
os:
name: Android
version: 4.4.2
platform: ""
client:
type: browser
name: Chrome
version: 81.0.4044.138
engine: Blink
engine_version: ""
device:
type: tablet
brand: Lenovo
model: TAB 2 A7
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; arm_64; Android 7.1.2; 15 Lite) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 YaApp_Android/20.110.0 YaSearchBrowser/20.110.0 BroPP/1.0 SA/3 Mobile Safari/537.36
os:
name: Android
version: 7.1.2
platform: ARM
client:
type: browser
name: Yandex Browser
version: 20.110.0
engine: Blink
engine_version: ""
device:
type: smartphone
brand: Meizu
model: 15 Lite
os_family: Android
browser_family: Unknown

20 changes: 16 additions & 4 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8125,7 +8125,7 @@ Lenovo:
model: 'TAB2 8.0"'
device: 'tablet'
- regex: 'TAB 2 A10-70L(?:[);/ ]|$)'
model: 'TAB2 A10'
model: 'TAB 2 A10'
device: 'tablet'
- regex: '(?:TB3-850[FM]|601LV)(?:[);/ ]|$)'
model: 'TAB3 8'
Expand All @@ -8136,6 +8136,9 @@ Lenovo:
- regex: 'TB-8504X'
model: 'TAB4 8'
device: 'tablet'
- regex: 'TB-8704X'
model: 'TAB4 8 Plus'
device: 'tablet'
- regex: '(?:TB-X704[VL]|701LV)(?:[);/ ]|$)'
model: 'TAB4 10 Plus'
device: 'tablet'
Expand All @@ -8154,7 +8157,13 @@ Lenovo:
- regex: 'TB-7104I(?:[);/ ]|$)'
model: 'Tab E7'
device: 'tablet'
- regex: 'TB-X606F(?:[);/ ]|$)'
- regex: 'TB-7304X(?:[);/ ]|$)'
model: 'Tab 7 Essential'
device: 'tablet'
- regex: 'TB-7504X(?:[);/ ]|$)'
model: 'Tab 7'
device: 'tablet'
- regex: 'TB-X606[FX](?:[);/ ]|$)'
model: 'Tab M10 FHD Plus'
device: 'tablet'
- regex: 'Lenovo ?B8000(-[FH])?'
Expand Down Expand Up @@ -8203,6 +8212,9 @@ Lenovo:
- regex: 'Lenovo ?A3300-(?:GV|H)'
model: 'TAB 2 A7-30'
device: 'tablet'
- regex: 'TAB 2 A7-30[HG]C'
model: 'TAB 2 A7'
device: 'tablet'
- regex: 'TB-8504F'
model: 'TAB 4 8'
device: 'tablet'
Expand Down Expand Up @@ -9144,7 +9156,7 @@ MEEG:

# Meizu
Meizu:
regex: 'Meizu|MZ-[a-z]|(M04[05]|MZ-16th(?: Plus)?|MZ-16[st]|M7[12]1C|M35[1356]|M612C|M578CA|M181[36]|M1822|M681C|M6T|MX[ -]?[2345](?: Pro)?|(?:MZ-)?m[1-6] note|M621C|M1852|M57[18]C|M3[ESX]|M031|m1 metal|M1 E|M2|M2 E|M5s Build|PRO 6|PRO 7-H|MZ-15 (?:Lite|Plus)|MZ-16 X)(?:[);/ ]|$)'
regex: 'Meizu|MZ-[a-z]|(M04[05]|MZ-16th(?: Plus)?|MZ-16[st]|M7[12]1C|M35[1356]|M612C|M578CA|M181[36]|M1822|M681C|M6T|MX[ -]?[2345](?: Pro)?|(?:MZ-)?m[1-6] note|M621C|M1852|M57[18]C|M3[ESX]|M031|m1 metal|M1 E|M2|M2 E|M5s Build|PRO 6|PRO 7-H| 15 Lite|MZ-15 (?:Lite|Plus)|MZ-16 X)(?:[);/ ]|$)'
device: 'smartphone'
models:
- regex: '(?:MZ-)?M571C'
Expand Down Expand Up @@ -9212,7 +9224,7 @@ Meizu:
model: '16th Plus'
- regex: 'MZ-15 Plus(?:[);/ ]|$)'
model: '15 Plus'
- regex: 'MZ-15 Lite(?:[);/ ]|$)'
- regex: '(?:MZ-15 Lite| 15 Lite)(?:[);/ ]|$)'
model: '15 Lite'
- regex: 'MZ-16th(?:[);/ ]|$)'
model: '16th'
Expand Down

0 comments on commit eeae05d

Please sign in to comment.