Skip to content

Commit

Permalink
refs #5585 - adds detection for LeEco devices
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Mar 2, 2017
1 parent ba6dc5b commit 5869157
Show file tree
Hide file tree
Showing 6 changed files with 335 additions and 240 deletions.
1 change: 1 addition & 0 deletions Parser/Device/DeviceParserAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ abstract class DeviceParserAbstract extends ParserAbstract
'LV' => 'Lava',
'LA' => 'Lanix',
'LC' => 'LCT',
'L1' => 'LeEco',
'LE' => 'Lenovo',
'LN' => 'Lenco',
'LP' => 'Le Pan',
Expand Down
160 changes: 80 additions & 80 deletions Tests/fixtures/smartphone-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9197,6 +9197,86 @@
model: Trooper2 50
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; Android 5.0.2; Le Max Build/CHXOSOP5501405221S) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/37.0.0.0 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "5.0.2"
platform:
client:
type: browser
name: Chrome Mobile
short_name: CM
version: "37.0.0.0"
engine: Blink
engine_version:
device:
type: smartphone
brand: L1
model: Le Max
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 6.0.1; Le X527 Build/IMXOSOP5801809091S) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.68 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: "54.0.2840.68"
engine: Blink
engine_version:
device:
type: smartphone
brand: L1
model: Le X527
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; U; Android 6.0.1;zh_cn; LEX720 Build/WAXCNFN5902012312S) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/49.0.0.0 Mobile Safari/537.36 EUI Browser/5.9.020S
os:
name: Android
short_name: AND
version: "6.0.1"
platform:
client:
type: browser
name: Chrome Mobile
short_name: CM
version: "49.0.0.0"
engine: Blink
engine_version:
device:
type: smartphone
brand: L1
model: Le X720
os_family: Android
browser_family: Chrome
-
user_agent: Dalvik/2.1.0 (Linux; U; Android 6.0.1; Le X820 Build/MOB31S)
os:
name: Android
short_name: AND
version: "6.0.1"
platform:
client:
type: browser
name: Android Browser
short_name: AN
version:
engine: WebKit
engine_version:
device:
type: smartphone
brand: L1
model: Le X820
os_family: Android
browser_family: Android Browser
-
user_agent: LENOVO-Lenovo-A288t/1.0 Linux/2.6.35.7 Android/2.3.5 Release/12.28.2012 Browser/AppleWebKit533.1 (KHTML, like Gecko) Mozilla/5.0 Mobile
os:
Expand Down Expand Up @@ -9877,83 +9957,3 @@
model: E615
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.0.3; en-ca; LG-E617G Build/IML74K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
os:
name: Android
short_name: AND
version: "4.0.3"
platform:
client:
type: browser
name: Android Browser
short_name: AN
version:
engine: WebKit
engine_version: "534.30"
device:
type: smartphone
brand: LG
model: E617G
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; U; Android 2.3.4; es-es; LG-E730/V10b Build/GRJ22) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1 MMS/LG-Android-MMS-V1.2
os:
name: Android
short_name: AND
version: "2.3.4"
platform:
client:
type: browser
name: Android Browser
short_name: AN
version:
engine: WebKit
engine_version: "533.1"
device:
type: smartphone
brand: LG
model: E730
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0; LG; LG-E900; Orange)
os:
name: Windows Phone
short_name: WPH
version: "7.5"
platform:
client:
type: browser
name: IE Mobile
short_name: IM
version: "9.0"
engine: Trident
engine_version: "5.0"
device:
type: smartphone
brand: LG
model: E900
os_family: Windows Mobile
browser_family: Internet Explorer
-
user_agent: Mozilla/5.0 (Linux; Android 4.1.2; LG-E970 Build/JZO54K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.166 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "4.1.2"
platform:
client:
type: browser
name: Chrome Mobile
short_name: CM
version: "33.0.1750.166"
engine: Blink
engine_version:
device:
type: smartphone
brand: LG
model: E970
os_family: Android
browser_family: Chrome
160 changes: 80 additions & 80 deletions Tests/fixtures/smartphone-2.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,84 @@
---
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.0.3; en-ca; LG-E617G Build/IML74K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
os:
name: Android
short_name: AND
version: "4.0.3"
platform:
client:
type: browser
name: Android Browser
short_name: AN
version:
engine: WebKit
engine_version: "534.30"
device:
type: smartphone
brand: LG
model: E617G
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (Linux; U; Android 2.3.4; es-es; LG-E730/V10b Build/GRJ22) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1 MMS/LG-Android-MMS-V1.2
os:
name: Android
short_name: AND
version: "2.3.4"
platform:
client:
type: browser
name: Android Browser
short_name: AN
version:
engine: WebKit
engine_version: "533.1"
device:
type: smartphone
brand: LG
model: E730
os_family: Android
browser_family: Android Browser
-
user_agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0; LG; LG-E900; Orange)
os:
name: Windows Phone
short_name: WPH
version: "7.5"
platform:
client:
type: browser
name: IE Mobile
short_name: IM
version: "9.0"
engine: Trident
engine_version: "5.0"
device:
type: smartphone
brand: LG
model: E900
os_family: Windows Mobile
browser_family: Internet Explorer
-
user_agent: Mozilla/5.0 (Linux; Android 4.1.2; LG-E970 Build/JZO54K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.166 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "4.1.2"
platform:
client:
type: browser
name: Chrome Mobile
short_name: CM
version: "33.0.1750.166"
engine: Blink
engine_version:
device:
type: smartphone
brand: LG
model: E970
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.0.4; en-ca; LG-E973 Build/IMM76L) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
os:
Expand Down Expand Up @@ -9809,83 +9889,3 @@
model: A30
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; QMobile A65 Build/QMobileA65) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 UCBrowser/9.5.0.360 U3/0.8.0 Mobile Safari/533.1
os:
name: Android
short_name: AND
version: "4.2.2"
platform:
client:
type: browser
name: UC Browser
short_name: UC
version: "9.5.0.360"
engine: WebKit
engine_version: "533.1"
device:
type: smartphone
brand: QM
model: A65
os_family: Android
browser_family: Unknown
-
user_agent: UCWEB/2.0 (MIDP-2.0; U; Adr 2.3.5; vi; Q-Smart_S12) U2/1.0.0 UCBrowser/9.7.0.520 U2/1.0.0 Mobile
os:
name: Android
short_name: AND
version: "2.3.5"
platform:
client:
type: browser
name: UC Browser
short_name: UC
version: "9.7.0.520"
engine:
engine_version:
device:
type: smartphone
brand: QM
model: S12
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 4.4.2; QMobile X25 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.89 Mobile Safari/537.36 OPR/27.0.1698.88647
os:
name: Android
short_name: AND
version: "4.4.2"
platform:
client:
type: browser
name: Opera Mobile
short_name: OM
version: "27.0.1698.88647"
engine: Blink
engine_version:
device:
type: smartphone
brand: QM
model: X25
os_family: Android
browser_family: Opera
-
user_agent: Mozilla/5.0 (Linux; Android 4.1.2; Quechua Phone 5 Build/JZO54K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.114 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: "4.1.2"
platform:
client:
type: browser
name: Chrome Mobile
short_name: CM
version: "34.0.1847.114"
engine: Blink
engine_version:
device:
type: smartphone
brand: QU
model: Quechua Phone 5
os_family: Android
browser_family: Chrome
Loading

0 comments on commit 5869157

Please sign in to comment.