Skip to content

Commit

Permalink
Detect new brand E-TACHI And Detect devices for exist brands (matomo-…
Browse files Browse the repository at this point in the history
…org#7851)

* feat(device) detect new brand E-TACHI: A5 Slim
feat(device) detect brand Nothing Phone: 1 (A015)
feat(device) detect brand Xiaomi: 14T Pro (2407FPN8EG)
feat(device) detect brand Sharp: Aquos V6 (SH-C03), Aquos V6+ (SH-C04)
feat(device) detect brand Dcode: Cypher (DS-CR1)
feat(device) detect brand Wiko: Y51 (W-K211-OPE)
feat(device) detect brand OnePlus: Pad 2 12.1" WiFi (OPD2403)
feat(device) detect brand OPPO: Pad Neo (OPD2303)
feat(device) detect brand Hometech: 7 Premium Pro
feat(device) detect brand Skyline: 50UST5970
feat(device) detect brand Asano: 50LU8130S 50.0", 50LF7010T 50.0"

* feat(device) detect brand ZTE: Blade A35 (Z2453)
feat(device) detect brand Motorola: Moto X50 Ultra (XT2401-2)
feat(device) detect brand VOCAL: V11

* feat(device) detect brand Huawei: Honor Magic V3 (FCP-N49)
feat(device) detect brand Oukitel: WP39, WP28 S, WP28 E
feat(device) detect brand HTC: U Play
feat(device) detect brand Nothing Phone: 2a
feat(device) detect brand Hammer: Iron Va
feat(device) detect brand AllDocube: iPlay 60 Mini Pro
feat(device) detect brand Energizer: Energy S550
feat(device) detect brand Tecno Mobile: Spark 30C (TECNO KL5), Spark Go (2022) (TECNO KG5m)
feat(device) detect brand Sparx: Ultra 8

* fix tests

* feat(device) rename brand Nothing Phone to Nothing and rename device models
feat(device) detect brand CMF: Phone 1 (A015)
  • Loading branch information
sanchezzzhak authored Oct 1, 2024
1 parent 7dc1c2d commit e6456a1
Show file tree
Hide file tree
Showing 8 changed files with 691 additions and 59 deletions.
4 changes: 3 additions & 1 deletion Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'CX' => 'Crescent',
'CK' => 'Cricket',
'CM' => 'Crius Mea',
'CMF' => 'CMF',
'0C' => 'Crony',
'C1' => 'Crosscall',
'4W' => 'Crown',
Expand Down Expand Up @@ -502,6 +503,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'ENI' => 'ENIE',
'2E' => 'E-Ceros',
'E8' => 'E-tel',
'ETH' => 'E-TACHI',
'EAS' => 'EAS Electric',
'EP' => 'Easypix',
'EQ' => 'Eagle',
Expand Down Expand Up @@ -1249,7 +1251,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'NRD' => 'Nordfrost',
'NOR' => 'NORMANDE',
'7N' => 'NorthTech',
'NOT' => 'Nothing Phone',
'NOT' => 'Nothing',
'5N' => 'Nos',
'NO' => 'Nous',
'NQ' => 'Novex',
Expand Down
36 changes: 36 additions & 0 deletions Tests/fixtures/phablet-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5472,3 +5472,39 @@
model: Pova 6 Pro 5G
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 14; FCP-N49) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Chrome
version: 128.0.0.0
engine: Blink
engine_version: 128.0.0.0
device:
type: phablet
brand: Huawei
model: Honor Magic V3
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 14; FCP-AN10 Build/HONORFCP-AN10; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/124.0.6367.179 Safari/537.36
os:
name: Android
version: "14"
platform: ""
client:
type: browser
name: Chrome Webview
version: 124.0.6367.179
engine: Blink
engine_version: 124.0.6367.179
device:
type: phablet
brand: Huawei
model: Honor Magic V3
os_family: Android
browser_family: Chrome
4 changes: 2 additions & 2 deletions Tests/fixtures/smartphone-32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1579,8 +1579,8 @@
engine_version: 102.0.5005.167
device:
type: smartphone
brand: Nothing Phone
model: "1"
brand: Nothing
model: Phone 1
os_family: Android
browser_family: Unknown
-
Expand Down
12 changes: 6 additions & 6 deletions Tests/fixtures/smartphone-38.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1861,8 +1861,8 @@
engine_version: 78.0.3904.108
device:
type: smartphone
brand: Nothing Phone
model: "2"
brand: Nothing
model: Phone 2
os_family: Android
browser_family: Unknown
-
Expand Down Expand Up @@ -4843,8 +4843,8 @@
engine_version: 122.0.6261.119
device:
type: smartphone
brand: Nothing Phone
model: "2"
brand: Nothing
model: Phone 2
os_family: Android
browser_family: Opera
-
Expand All @@ -4861,8 +4861,8 @@
engine_version: 122.0.6261.119
device:
type: smartphone
brand: Nothing Phone
model: 2a
brand: Nothing
model: Phone 2a
os_family: Android
browser_family: Opera
-
Expand Down
Loading

0 comments on commit e6456a1

Please sign in to comment.