Skip to content

Commit

Permalink
fixes matomo-org#5278 - added detection for Intex 'Cloud' devices
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Oct 15, 2014
1 parent 208f3f2 commit 2d6516d
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 2 deletions.
54 changes: 54 additions & 0 deletions Tests/fixtures/smartphone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7553,6 +7553,24 @@
model: Cloud X11
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; U; Android 2.3; en-US; Cloud_X2 Build/MocorDroid4.0.1) AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1 UCBrowser/9.2.0.419 Mobile
os:
name: Android
short_name: AND
version: 2.3
client:
type: browser
name: UC Browser
short_name: UC
version: 9.2.0.419
engine: WebKit
device:
type: smartphone
brand: IX
model: Cloud X2
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; Intex Cloud X4 Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/534.30
os:
Expand All @@ -7571,6 +7589,42 @@
model: Cloud X4
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.2.2; en-in; Cloud X5 Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
os:
name: Android
short_name: AND
version: 4.2.2
client:
type: browser
name: Android Browser
short_name: AN
version:
engine: WebKit
device:
type: smartphone
brand: IX
model: Cloud X5
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; Cloud Y2 Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
os:
name: Android
short_name: AND
version: 4.2.2
client:
type: browser
name: Android Browser
short_name: AN
version:
engine: WebKit
device:
type: smartphone
brand: IX
model: Cloud Y2
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; INTEX Cloud Y4 Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
os:
Expand Down
4 changes: 2 additions & 2 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -768,12 +768,12 @@ INQ:

# Intex
Intex:
regex: 'Intex|Aqua[ _][^/;]+[ _]Build'
regex: 'Intex|(Aqua|Cloud)[ _][^/;]+[ _]Build'
device: 'smartphone'
models:
- regex: 'Intex[ _]([^/;]*)[ _]Build'
model: '$1'
- regex: '(Aqua[ _][^/;]+)[ _]Build'
- regex: '((?:Aqua|Cloud)[ _][^/;]+)[ _]Build'
model: '$1'
- regex: 'Intex[ _]([a-z0-9_+-]+)'
model: '$1'
Expand Down

0 comments on commit 2d6516d

Please sign in to comment.