Skip to content

Commit

Permalink
feat(device) detect brand Explay: Fresh
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezzzhak committed May 24, 2022
1 parent 4992bbc commit a34adb9
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
36 changes: 36 additions & 0 deletions Tests/fixtures/smartphone-30.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2659,3 +2659,39 @@
model: M5c
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 5.1.1; Explay Fresh Build/LMY49J) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/39.0.0.0 Mobile Safari/537.36
os:
name: Android
version: 5.1.1
platform: ""
client:
type: browser
name: Chrome Webview
version: 39.0.0.0
engine: Blink
engine_version: 39.0.0.0
device:
type: smartphone
brand: Explay
model: Fresh
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; arm; Android 6.0; Fresh) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 YaBrowser/20.8.0.174.00 SA/3 Mobile Safari/537.36
os:
name: Android
version: "6.0"
platform: ARM
client:
type: browser
name: Yandex Browser
version: 20.8.0.174.00
engine: Blink
engine_version: 84.0.4147.135
device:
type: smartphone
brand: Explay
model: Fresh
os_family: Android
browser_family: Unknown
5 changes: 4 additions & 1 deletion regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7604,7 +7604,7 @@ GoMobile:

# Explay
Explay:
regex: 'Explay|[\w]+-EXPLAY-FIN|ActiveD[ _]|Atlant |Informer[ _][0-9]+|CinemaTV 3G|Surfer[ _][0-9\.]|Surfer7773G|sQuad[ _][0-9\.]|Onliner[1-4]|RioPlay|Leader|Pulsar|Infinityll|Joy_TV|Imperium[78]|Winner[78]|Indigo|Lagoon|Tornado(?! 348)(?:3G)?|Onyx(?!_[A-Z]{1,2})'
regex: 'Explay|[\w]+-EXPLAY-FIN|ActiveD[ _]|Atlant |Informer[ _][0-9]+|CinemaTV 3G|Surfer[ _][0-9\.]|Surfer7773G|sQuad[ _][0-9\.]|Onliner[1-4]|RioPlay|Leader|Pulsar|Infinityll|Joy_TV|Imperium[78]|Winner[78]|Indigo|Lagoon|Tornado(?! 348)(?:3G)?|Onyx(?!_[A-Z]{1,2})|Fresh(?:[);/ ]|$)'
device: 'tablet'
models:
- regex: 'ActiveD[ _]7.4[ _]3G'
Expand Down Expand Up @@ -7644,6 +7644,9 @@ Explay:
- regex: 'Onyx(?:[);/ ]|$)'
device: 'smartphone'
model: 'Onyx'
- regex: 'Fresh(?:[);/ ]|$)'
device: 'smartphone'
model: 'Fresh'
- regex: 'Joy_TV(?:[);/ ]|$)'
device: 'smartphone'
model: 'JoyTV'
Expand Down

0 comments on commit a34adb9

Please sign in to comment.