Skip to content

Commit

Permalink
Detect devices for existing brands and new brands (matomo-org#7224)
Browse files Browse the repository at this point in the history
* feat(device) detect new brand Unblock Tech: S900 Pro BT, S900 Pro
feat(device) detect brand GoMobile: Go506
feat(device) detect brand FiGi: Gtwo
feat(device) detect brand HiKing: MH501
feat(device) detect brand Advance: Hollogram HL7257
feat(device) detect brand FireFly Mobile: S90 Q

* feat(device) detect new brand C5 Mobile: Noa X2 Plus, Noa X Power
feat(device) detect brand Selfix: Q3 Rebel, Q6 Stallion, V41 Pro Mardigras
feat(device) detect brand Leagoo: Shark 1, Shark 6300
feat(device) detect brand Obi: SJ1.5, SJ2.2, SJ3.2
feat(device) detect brand NOA: Hummer

* feat(device) detect new brand Chainway: C66
feat(device) detect brand LT Mobile: P20 (C3600), P30 (C3700)
feat(device) detect brand DEXP: B11

* feat(device) detect brand Tecno Mobile: Spark 9 Pro (TECNO KH7n)
feat(device) detect brand Wiko: Y62 Plus
feat(device) detect brand AGM: H5 Pro
feat(device) detect brand OPPO: Reno 8 Pro (CPH2359)
feat(device) detect brand Xiaomi: Redmi K50i (22041216I)
feat(device) detect brand DEXP: C37

* feat(device) detect new brand Harper: ABX-332
feat(device) detect brand Huawei: P50 (ABR-LX9)

* feat(device) detect brand M-Tech: Foto 3
feat(device) detect brand Hurricane: Flint
feat(device) detect brand Vivax: Fly 4
feat(device) detect brand HiKing: Fun 5
feat(device) detect brand FiGi: Ftwo
feat(device) detect brand SPC: Flow 7

* fix: YAML Lint

* feat(device) detect brand Quantum: Go 2
feat(device) detect brand Blu: Grand M2 LTE, Grand M2, Grand M2X, Grand XL
feat(device) detect brand Zuum: Grant
feat(device) detect brand SPC: Gravity 3G, Gravity Pro

* fix: tests
  • Loading branch information
sanchezzzhak authored Aug 29, 2022
1 parent ec1fcbe commit ae3d8df
Show file tree
Hide file tree
Showing 6 changed files with 998 additions and 34 deletions.
4 changes: 4 additions & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'CG' => 'Cellution',
'62' => 'Centric',
'C2' => 'Changhong',
'CHA' => 'Chainway',
'CH' => 'Cherry Mobile',
'C3' => 'China Mobile',
'U9' => 'China Telecom',
Expand All @@ -294,6 +295,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'C8' => 'Concord',
'CC' => 'ConCorde',
'C5' => 'Condor',
'C5M' => 'C5 Mobile',
'4C' => 'Conquest',
'3C' => 'Contixo',
'8C' => 'Connex',
Expand Down Expand Up @@ -539,6 +541,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'HAN' => 'Handheld',
'HE' => 'HannSpree',
'HK' => 'Hardkernel',
'HAR' => 'Harper',
'HS' => 'Hasee',
'8H' => 'Hamlet',
'H6' => 'Helio',
Expand Down Expand Up @@ -1326,6 +1329,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'UU' => 'Unonu',
'UN' => 'Unowhy',
'UY' => 'UNNO',
'UNB' => 'Unblock Tech',
'UK' => 'UTOK',
'3U' => 'IUNI',
'UT' => 'UTStarcom',
Expand Down
2 changes: 1 addition & 1 deletion Tests/fixtures/smartphone-3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11765,7 +11765,7 @@
device:
type: smartphone
brand: Wiko
model: Y62
model: Y62 Plus
os_family: Android
browser_family: Chrome
-
Expand Down
Loading

0 comments on commit ae3d8df

Please sign in to comment.