Skip to content

Commit

Permalink
feat(device) detect new brand Jedi: Remix Mini, Remix Pro (#6999)
Browse files Browse the repository at this point in the history
feat(os) improvements detection RemixOs

issue #6745

Co-authored-by: Stefan Giehl <[email protected]>
  • Loading branch information
sanchezzzhak and sgiehl authored Feb 18, 2022
1 parent e8463c5 commit 608cb84
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 14 deletions.
1 change: 1 addition & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'I9' => 'iZotron',
'JA' => 'JAY-Tech',
'KJ' => 'Jiake',
'JD' => 'Jedi',
'J6' => 'Jeka',
'JF' => 'JFone',
'JI' => 'Jiayu',
Expand Down
18 changes: 18 additions & 0 deletions Tests/fixtures/desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8487,3 +8487,21 @@
model: iMac 21.5" (2010)
os_family: Mac
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 5.1; Remix Mini) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.105 Safari/537.36
os:
name: Remix OS
version: "2"
platform: ""
client:
type: browser
name: Chrome
version: 89.0.4389.105
engine: Blink
engine_version: ""
device:
type: desktop
brand: Jedi
model: Remix Mini
os_family: Android
browser_family: Chrome
11 changes: 11 additions & 0 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27958,6 +27958,17 @@ Massgo:
- regex: 'Massgo[ _]([^/;)]+)(?: Build|[);])'
model: '$1'

# Jedi
Jedi:
regex: 'Remix (?:Pro|Mini)'
device: 'desktop'
models:
- regex: 'Remix Pro'
device: 'tablet'
model: 'Remix Pro'
- regex: 'Remix Mini'
model: 'Remix Mini'

# Technopc (en.technopc.com.tr)
Technopc:
regex: 'UP10SI[34]6LA(?:[);/ ]|$)'
Expand Down
27 changes: 13 additions & 14 deletions regexes/oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,19 @@
name: 'FydeOS'
version: ''

##########
# Remix OS
##########
- regex: 'RemixOS|Remix (?:Pro|Mini)'
name: 'Remix OS'
versions:
- regex: 'RemixOS 5'
version: '1'
- regex: 'RemixOS 6|Remix Mini'
version: '2'
- regex: 'Remix Pro'
version: '3'

##########
# Android
##########
Expand Down Expand Up @@ -1045,20 +1058,6 @@
name: 'WebTV'
version: '$1'

##########
# Remix OS
##########
- regex: 'RemixOS 5.1.1'
name: 'Remix OS'
version: '1'

- regex: 'RemixOS 6.0'
name: 'Remix OS'
version: '2'

- regex: 'RemixOS'
name: 'Remix OS'
version: ''

##########
# Unix
Expand Down

0 comments on commit 608cb84

Please sign in to comment.