Skip to content

Commit

Permalink
refs matomo-org#5279 - added detection for Sony Xperia E3 / E3 Dual
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Oct 19, 2014
1 parent 7cf051d commit 30bcc96
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 1 deletion.
90 changes: 90 additions & 0 deletions Tests/fixtures/smartphone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20904,6 +20904,96 @@
model: Xperia E1 Dual
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.4.2; D2203 Build/18.4.A.1.25) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.136 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: 4.4.2
client:
type: browser
name: Chrome Mobile
short_name: CM
version: 33.0.1750.136
engine: Blink
device:
type: smartphone
brand: SO
model: Xperia E3
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.4.2; D2206 Build/18.4.C.0.25) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.122 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: 4.4.2
client:
type: browser
name: Chrome Mobile
short_name: CM
version: 35.0.1916.122
engine: Blink
device:
type: smartphone
brand: SO
model: Xperia E3
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 4.4.2; D2243 Build/18.4.C.1.29) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.135 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: 4.4.2
client:
type: browser
name: Chrome Mobile
short_name: CM
version: 36.0.1985.135
engine: Blink
device:
type: smartphone
brand: SO
model: Xperia E3
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; D2202 Build/18.4.A.1.25) AppleWebKit/533.1 (KHTML like Gecko) Version/4.0 UCBrowser/9.9.2.467 U3/0.8.0 Mobile Safari/533.1
os:
name: Android
short_name: AND
version: 4.4.2
client:
type: browser
name: UC Browser
short_name: UC
version: 9.9.2.467
engine: WebKit
device:
type: smartphone
brand: SO
model: Xperia E3
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 4.4.2; D2212 Build/18.4.B.1.20) AppleWebKit/537.36 (KHTML like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36 Mobile UCBrowser/3.4.1.483
os:
name: Android
short_name: AND
version: 4.4.2
client:
type: browser
name: Chrome Mobile
short_name: CM
version: 30.0.0.0
engine: Blink
device:
type: smartphone
brand: SO
model: Xperia E3 Dual
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.1.2; fr-ca; SonyC2104 Build/15.0.A.1.36) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
os:
Expand Down
6 changes: 5 additions & 1 deletion regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1532,7 +1532,7 @@ Softbank:

# Sony
Sony:
regex: 'Sony(?! ?Ericsson)|SGP|Xperia|C1[569]0[45]|C2[01]0[45]|C2305|C530[236]|C5502|C6[56]0[236]|C6616|C68(?:0[26]|[34]3)|C69(?:0[236]|16|43)|D200[45]|D21(?:0[45]|14)|D230[2356]|D530[36]|D5322|D5503|D65(?:0[23]|43)|LT22i|XL39H'
regex: 'Sony(?! ?Ericsson)|SGP|Xperia|C1[569]0[45]|C2[01]0[45]|C2305|C530[236]|C5502|C6[56]0[236]|C6616|C68(?:0[26]|[34]3)|C69(?:0[236]|16|43)|D200[45]|D21(?:0[45]|14)|D22(?:0[236]|12|43)|D230[2356]|D530[36]|D5322|D5503|D65(?:0[23]|43)|LT22i|XL39H'
device: 'smartphone'
models:
# explicit smartphone models
Expand Down Expand Up @@ -1564,6 +1564,10 @@ Sony:
model: 'Xperia E1'
- regex: '(?:Sony)?D21(?:0[45]|14)'
model: 'Xperia E1 Dual'
- regex: '(?:Sony)?D22(?:0[236]|43)'
model: 'Xperia E3'
- regex: '(?:Sony)?D2212'
model: 'Xperia E3 Dual'
- regex: '(?:Sony)?D2302'
model: 'Xperia M2 Dual'
- regex: '(?:Sony)?D230[356]'
Expand Down

0 comments on commit 30bcc96

Please sign in to comment.