Skip to content

Commit

Permalink
Adds device type for iPhone X (matomo-org#5683)
Browse files Browse the repository at this point in the history
  • Loading branch information
mneudert authored and sgiehl committed Nov 28, 2017
1 parent 0d7b4bc commit a4841f5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
17 changes: 17 additions & 0 deletions Tests/fixtures/phablet.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
---
-
user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_1 like Mac OS X) AppleWebKit/604.3.5 (KHTML, like Gecko) Mobile/15B86 [FBAN/FBIOS;FBAV/144.0.0.55.89;FBBV/74129168;FBDV/iPhone10,3;FBMD/iPhone;FBSN/iOS;FBSV/11.1;FBSS/3;FBCR/AT&T;FBID/phone;FBLC/en_US;FBOP/5;FBRV/74129168]'
os:
name: iOS
short_name: IOS
version: "11.1"
platform: ""
client:
type: mobile app
name: Facebook
version: "144.0.0.55.89"
device:
type: phablet
brand: AP
model: iPhone X
os_family: iOS
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 4.1.2; ME371MG Build/JZO54K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.166 Safari/537.36
os:
Expand Down
17 changes: 0 additions & 17 deletions Tests/fixtures/unknown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3364,20 +3364,3 @@
model: ""
os_family: iOS
browser_family: Unknown
-
user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_1 like Mac OS X) AppleWebKit/604.3.5 (KHTML, like Gecko) Mobile/15B86 [FBAN/FBIOS;FBAV/144.0.0.55.89;FBBV/74129168;FBDV/iPhone10,3;FBMD/iPhone;FBSN/iOS;FBSV/11.1;FBSS/3;FBCR/AT&T;FBID/phone;FBLC/en_US;FBOP/5;FBRV/74129168]'
os:
name: iOS
short_name: IOS
version: "11.1"
platform: ""
client:
type: mobile app
name: Facebook
version: "144.0.0.55.89"
device:
type: ""
brand: AP
model: iPhone X
os_family: iOS
browser_family: Unknown
1 change: 1 addition & 0 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ Apple:
device: 'phablet'
- regex: '(?:Apple-)?iPh(?:one)?10[C,][36]'
model: 'iPhone X'
device: 'phablet'

# specific tablet devices
- regex: '(?:Apple-)?iPad1[C,]1'
Expand Down

0 comments on commit a4841f5

Please sign in to comment.