Skip to content

Commit

Permalink
feat(device) detect new brand Klipad model: KL-V905
Browse files Browse the repository at this point in the history
feat(device) detect brand Leotec model: Argon A250B (LESPH5003B)
feat(device) detect brand Teclast model: TPad 98 10.1" 4G (
 98(M3E3), 98(M1E8), 98(M1E7), 98(M1E5), 98(M1E4), 98(M1E9)
)

issue matomo-org#6355
  • Loading branch information
sanchezzzhak committed Aug 26, 2020
1 parent 6ad2541 commit 8f55f3f
Show file tree
Hide file tree
Showing 3 changed files with 175 additions and 3 deletions.
1 change: 1 addition & 0 deletions Parser/Device/DeviceParserAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ abstract class DeviceParserAbstract extends ParserAbstract
'JF' => 'JFone',
'JK' => 'JKL',
'KL' => 'Kalley',
'0K' => 'Klipad',
'K4' => 'Kaan',
'K7' => 'Kaiomy',
'K6' => 'Kanji',
Expand Down
161 changes: 161 additions & 0 deletions Tests/fixtures/smartphone-16.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7399,3 +7399,164 @@
model: DuraForce XD
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.4.2; KL-V905 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: 4.4.2
platform: ""
client:
type: browser
name: Chrome Webview
short_name: CV
version: 30.0.0.0
engine: Blink
engine_version: ""
device:
type: smartphone
brand: 0K
model: KL-V905
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.4.2; LESPH5003B Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: 4.4.2
platform: ""
client:
type: browser
name: Chrome Webview
short_name: CV
version: 30.0.0.0
engine: Blink
engine_version: ""
device:
type: smartphone
brand: LT
model: Argon A250B
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 6.0; 98(M1E8)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.93 Safari/537.36
os:
name: Android
short_name: AND
version: "6.0"
platform: ""
client:
type: browser
name: Chrome
short_name: CH
version: 79.0.3945.93
engine: Blink
engine_version: ""
device:
type: tablet
brand: T7
model: TPad 98 10.1" 4G
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 6.0; 98(M1E7)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.62 Safari/537.36
os:
name: Android
short_name: AND
version: "6.0"
platform: ""
client:
type: browser
name: Chrome
short_name: CH
version: 78.0.3904.62
engine: Blink
engine_version: ""
device:
type: tablet
brand: T7
model: TPad 98 10.1" 4G
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 6.0; 98(M1E5)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.93 Safari/537.36
os:
name: Android
short_name: AND
version: "6.0"
platform: ""
client:
type: browser
name: Chrome
short_name: CH
version: 79.0.3945.93
engine: Blink
engine_version: ""
device:
type: tablet
brand: T7
model: TPad 98 10.1" 4G
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 6.0; 98(M1E4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.93 Safari/537.36
os:
name: Android
short_name: AND
version: "6.0"
platform: ""
client:
type: browser
name: Chrome
short_name: CH
version: 79.0.3945.93
engine: Blink
engine_version: ""
device:
type: tablet
brand: T7
model: TPad 98 10.1" 4G
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 6.0; 98(M1E9)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
os:
name: Android
short_name: AND
version: "6.0"
platform: ""
client:
type: browser
name: Chrome
short_name: CH
version: 76.0.3809.132
engine: Blink
engine_version: ""
device:
type: tablet
brand: T7
model: TPad 98 10.1" 4G
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 6.0; 98(M3E3)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.111 Safari/537.36
os:
name: Android
short_name: AND
version: "6.0"
platform: ""
client:
type: browser
name: Chrome
short_name: CH
version: 76.0.3809.111
engine: Blink
engine_version: ""
device:
type: tablet
brand: T7
model: TPad 98 10.1" 4G
os_family: Android
browser_family: Chrome

16 changes: 13 additions & 3 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7429,11 +7429,13 @@ LeEco:

# Leotec
Leotec:
regex: 'LESPH501[14]|SUPERNOVA (Qi16|i3G96[X]?)'
regex: 'LESPH501[14]|LESPH5003B|SUPERNOVA (Qi16|i3G96[X]?)'
device: 'smartphone'
models:
- regex: 'LESPH5011'
model: 'Argon e250'
- regex: 'LESPH5003B'
model: 'Argon A250B'
- regex: 'LESPH5014'
model: 'Krypton K150'
- regex: 'SUPERNOVA (Qi16|i3G96[X]?)'
Expand Down Expand Up @@ -12243,7 +12245,7 @@ TCL:

# Teclast
Teclast:
regex: 'Teclast|X98 Air III|X98 Air II\(HG5N\)|Tbook|X80 Power\(B2N4\)|T30_(ROW|EEA)|T10\(E3C6\)|P10S\(N4H5\)'
regex: 'Teclast|X98 Air III|X98 Air II\(HG5N\)|Tbook|X80 Power\(B2N4\)|T30_(ROW|EEA)|T10\(E3C6\)|P10S\(N4H5\)|98\(M1E[45789]\)|98\(M3E3\)'
device: 'tablet'
models:
- regex: 'Tbook[_ -]([^;/]+) Build'
Expand All @@ -12254,6 +12256,8 @@ Teclast:
model: 'T30 $1'
- regex: 'P10S\(N4H5\)'
model: 'P10S'
- regex: '98\(M1E[45789]\)|98\(M3E3\)'
model: 'TPad 98 10.1" 4G'
- regex: 'X80 Power\(B2N4\)[);/ ]'
model: 'X98 Power'
- regex: 'X98 Air III[);/ ]'
Expand Down Expand Up @@ -16094,4 +16098,10 @@ Tele2:
Alfawise:
regex: '(A95X_R1)[);/ ]'
device: 'tv'
model: '$1'
model: '$1'

# Klipad
Klipad:
regex: '(KL-V905)[);/ ]'
device: 'smartphone'
model: '$1'

0 comments on commit 8f55f3f

Please sign in to comment.