Skip to content

Commit

Permalink
refs #5585 - adds detection for Sony Xperia X Compact
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Mar 2, 2017
1 parent 9b8f7af commit 4c548f1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
20 changes: 20 additions & 0 deletions Tests/fixtures/smartphone-4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,26 @@
model: Xperia X
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 6.0.1; F5321 Build/34.1.A.3.49) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.91 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "6.0.1"
platform:
client:
type: browser
name: Chrome Mobile
short_name: CM
version: "55.0.2883.91"
engine: Blink
engine_version:
device:
type: smartphone
brand: SO
model: Xperia X Compact
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 6.0; F3111 Build/33.2.A.2.35) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.98 Mobile Safari/537.36
os:
Expand Down
6 changes: 4 additions & 2 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@ Rikomagic:

# Sony & Sony Ericsson (combined as they are mixed up)
Sony:
regex: 'Sony(?: ?Ericsson)?|SGP|Xperia|C1[569]0[45]|C2[01]0[45]|C2305|C530[236]|C550[23]|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]|D240[36]|D25(?:02|33)|D510[236]|D530[36]|D5322|D5503|D58[03]3|D65(?:0[23]|43)|D66[035]3|E210[45]|E2[03]03|E2306|E2312|E58[02]3|E5603|E6553|E66[358]3|E68[58]3|F3111|F331[13]|F3213|F5121|F833[12]|(?:WT|LT|SO|ST|SK|MK)[0-9]+[a-z]*[0-9]*(?: Build|\))|X?L39H|XM50[ht]|W960|portalmmm/2\.0 K|S3[69]h|X10[ia]v?|E1[05][ai]v?|MT[0-9]{2}[a-z]? Build|SO-0(?:[345]D|[234]E|[12]C|[1235]F|[12]G)|R800[aix]|LiveWithWalkman'
regex: 'Sony(?: ?Ericsson)?|SGP|Xperia|C1[569]0[45]|C2[01]0[45]|C2305|C530[236]|C550[23]|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]|D240[36]|D25(?:02|33)|D510[236]|D530[36]|D5322|D5503|D58[03]3|D65(?:0[23]|43)|D66[035]3|E210[45]|E2[03]03|E2306|E2312|E58[02]3|E5603|E6553|E66[358]3|E68[58]3|F3111|F331[13]|F3213|F5[13]21|F833[12]|(?:WT|LT|SO|ST|SK|MK)[0-9]+[a-z]*[0-9]*(?: Build|\))|X?L39H|XM50[ht]|W960|portalmmm/2\.0 K|S3[69]h|X10[ia]v?|E1[05][ai]v?|MT[0-9]{2}[a-z]? Build|SO-0(?:[345]D|[234]E|[12]C|[1235]F|[12]G)|R800[aix]|LiveWithWalkman'
device: 'smartphone'
models:
# SONY ERICSSON: explicit smartphone models
Expand Down Expand Up @@ -1525,8 +1525,10 @@ Sony:
model: 'Xperia GX'
- regex: '(?:Sony(?:Ericsson)?)?SO-05D'
model: 'Xperia SX'
- regex: 'F5121'
- regex: '(?:Sony(?:Ericsson)?)?F5121'
model: 'Xperia X'
- regex: '(?:Sony(?:Ericsson)?)?F5321'
model: 'Xperia X Compact'

# SONY: explicit tablet models
- regex: 'SGP(?:311|312|321)[);/ ]|SO-03E'
Expand Down

0 comments on commit 4c548f1

Please sign in to comment.