[新增] UserAgent 解析,增加 MiUI/XiaoMi 浏览器 判断逻辑

This commit is contained in:
xhal
2022-03-22 13:37:16 +08:00
parent f52ec39d44
commit d48d1bab25
4 changed files with 19 additions and 0 deletions

View File

@@ -45,6 +45,8 @@ public class Browser extends UserAgentInfo {
new Browser("Taobao", "taobao", "AliApp\\(TB\\/([\\d\\w\\.\\-]+)\\)"),
// UC浏览器
new Browser("UCBrowser", "UC?Browser", "UC?Browser\\/([\\d\\w\\.\\-]+)"),
// XiaoMi 浏览器
new Browser("MiuiBrowser", "MiuiBrowser|mibrowser", "MiuiBrowser\\/([\\d\\w\\.\\-]+)"),
// 夸克浏览器
new Browser("Quark", "Quark", Other_Version),
// 联想浏览器

View File

@@ -36,6 +36,7 @@ public class OS extends UserAgentInfo {
new OS("Windows", "windows"), //
new OS("OSX", "os x (\\d+)[._](\\d+)", "os x (\\d+([._]\\d+)*)"), //
new OS("Android", "Android", "Android (\\d+([._]\\d+)*)"),//
new OS("Android", "\\(X\\d+; Linux", "\\(X(\\d+([._]\\d+)*)"),//
new OS("Linux", "linux"), //
new OS("Wii", "wii", "wii libnup/(\\d+([._]\\d+)*)"), //
new OS("PS3", "playstation 3", "playstation 3; (\\d+([._]\\d+)*)"), //

View File

@@ -54,6 +54,7 @@ public class Platform extends UserAgentInfo {
IPAD, //
IPOD, //
IPHONE, //
new Platform("Android", "XiaoMi|MI "), //
ANDROID, //
GOOGLE_TV, //
new Platform("htcFlyer", "htc_flyer"), //