Skip to content

Commit 6b95fa7

Browse files
author
Harald Walker
committed
Merge branch 'trunk'
2 parents 76a8ed8 + 67656be commit 6b95fa7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+713
-413
lines changed

.gitignore

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,68 @@
11
bin/
2-
target/
32
.project
43
.classpath
54
.settings
65
.DS_Store
6+
7+
8+
### JetBrains template
9+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion
10+
11+
*.iml
12+
13+
## Directory-based project format:
14+
.idea/
15+
# if you remove the above rule, at least ignore the following:
16+
17+
# User-specific stuff:
18+
# .idea/workspace.xml
19+
# .idea/tasks.xml
20+
# .idea/dictionaries
21+
22+
# Sensitive or high-churn files:
23+
# .idea/dataSources.ids
24+
# .idea/dataSources.xml
25+
# .idea/sqlDataSources.xml
26+
# .idea/dynamic.xml
27+
# .idea/uiDesigner.xml
28+
29+
# Gradle:
30+
# .idea/gradle.xml
31+
# .idea/libraries
32+
33+
# Mongo Explorer plugin:
34+
# .idea/mongoSettings.xml
35+
36+
## File-based project format:
37+
*.ipr
38+
*.iws
39+
40+
## Plugin-specific files:
41+
42+
# IntelliJ
43+
/out/
44+
45+
# mpeltonen/sbt-idea plugin
46+
.idea_modules/
47+
48+
# JIRA plugin
49+
atlassian-ide-plugin.xml
50+
51+
# Crashlytics plugin (for Android Studio and IntelliJ)
52+
com_crashlytics_export_strings.xml
53+
crashlytics.properties
54+
crashlytics-build.properties
55+
56+
57+
### Maven template
58+
target/
59+
pom.xml.tag
60+
pom.xml.releaseBackup
61+
pom.xml.versionsBackup
62+
pom.xml.next
63+
release.properties
64+
dependency-reduced-pom.xml
65+
buildNumber.properties
66+
.mvn/timing.properties
67+
68+

README.md

Lines changed: 43 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,16 @@ https://github.com/HaraldWalker/user-agent-utils/tree/master
1111
Support me and buy me a beer:
1212
<a href="http://flattr.com/thing/1968218/HaraldWalkeruser-agent-utils-on-GitHub" target="_blank"><img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" border="0" /></a>
1313

14-
New in Version 1.16
14+
Advice
15+
------
16+
A lot of user-agents lie about their identify. That makes US sniffing a guessing game. On websites it is a better approach to detect features using a javascript library like Modernizr (http://modernizr.com/).
17+
18+
New in Version 1.17
1519
-------------------
16-
- iOS 8.2, 8.3, 8.4 and 9 added
17-
- Chrome updated with latest versions
18-
- Firefox updated with latest versions
19-
- Updated Opera browser detection
20-
- Xbox OS and Internet Explorer for Xbox added
21-
- Improved CFNETWORK browser detection
22-
- Added Vivaldi browser
23-
- Improved Windows 10 detection
24-
- Improved bot detection
25-
- Added Android 5 tablet detection
26-
- Performance improvements
20+
- Added Ubuntu and Ubuntu Touch (mobile) detection
21+
- Added Windows 10 mobile detection
22+
- Added Microsoft Edge browser detection (contributed by https://github.com/nmaves)
23+
- Added future Firefox versions up to 42.
2724

2825
Javadoc
2926
-------
@@ -37,7 +34,7 @@ Add dependency:
3734
<dependency>
3835
<groupId>eu.bitwalker</groupId>
3936
<artifactId>UserAgentUtils</artifactId>
40-
<version>1.16</version>
37+
<version>1.17</version>
4138
</dependency>
4239
```
4340

@@ -46,17 +43,49 @@ Add dependency for snapshot releases:
4643
<dependency>
4744
<groupId>eu.bitwalker</groupId>
4845
<artifactId>UserAgentUtils</artifactId>
49-
<version>1.17-SNAPSHOT</version>
46+
<version>1.18-SNAPSHOT</version>
5047
</dependency>
5148
```
5249

5350
Contributors
5451
------------
5552
* Please use the `trunk` branch on GitHub when making a pull request
53+
* This project is in maintenance mode. We will try to stay up to date and fix bugs but do not expect any big new features or changes.
54+
* If you want big changes feel free to fork this project and start your own version.
55+
56+
FAQ
57+
---
58+
59+
_Can I add new browsers or operating systems?_
60+
Unfortunately not directly. This library uses enums to represent browsers and operating systems to make using it easy and readable. Unfortunately the use of enums also has some disadvantages. You can make a pull request on trunk for a new browser or operating system if all tests are still passing. The purpose of this library is not to detect every possible version, so you’ll have to provide the business value for a change.
61+
62+
_Where can I report bugs or make feature requests_
63+
Go to https://github.com/HaraldWalker/user-agent-utils/issues
64+
65+
_How can I improve the performance of the user-agent parsing?_
66+
When handling requests on a web-server, consider if you need both the browser and operating system or if one of the two gives you enough information. As the parsing uses an ordered tree structure, performance depends a lot on the type of clients making the requests. The most common browsers and operating systems will be parsed faster than exotic ones. Consider caching the results temporarily.
67+
68+
_Are there other libraries like this?_
69+
When I started this project in 2010 there were no other libraries offering the features I was looking for. Currently there are both open source as well as commercial solutions.
70+
5671

5772
Changelog
5873
---------
5974

75+
1.16
76+
----
77+
- iOS 8.2, 8.3, 8.4 and 9 added
78+
- Chrome updated with latest versions
79+
- Firefox updated with latest versions
80+
- Updated Opera browser detection
81+
- Xbox OS and Internet Explorer for Xbox added
82+
- Improved CFNETWORK browser detection
83+
- Added Vivaldi browser
84+
- Improved Windows 10 detection
85+
- Improved bot detection
86+
- Added Android 5 tablet detection
87+
- Performance improvements
88+
6089
1.15
6190
----
6291
- Safari 7 and 8 added

javadoc/allclasses-frame.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (version 1.7.0_67) on Mon Jun 15 20:46:01 CEST 2015 -->
6-
<title>All Classes</title>
7-
<meta name="date" content="2015-06-15">
5+
<!-- Generated by javadoc (version 1.7.0_67) on Sun Aug 02 17:08:24 CEST 2015 -->
6+
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
7+
<title>All Classes (User-Agent-Utils 1.17 API)</title>
8+
<meta name="date" content="2015-08-02">
89
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
910
</head>
1011
<body>

javadoc/allclasses-noframe.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (version 1.7.0_67) on Mon Jun 15 20:46:01 CEST 2015 -->
6-
<title>All Classes</title>
7-
<meta name="date" content="2015-06-15">
5+
<!-- Generated by javadoc (version 1.7.0_67) on Sun Aug 02 17:08:24 CEST 2015 -->
6+
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
7+
<title>All Classes (User-Agent-Utils 1.17 API)</title>
8+
<meta name="date" content="2015-08-02">
89
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
910
</head>
1011
<body>

javadoc/constant-values.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (version 1.7.0_67) on Mon Jun 15 20:46:01 CEST 2015 -->
6-
<title>Constant Field Values</title>
7-
<meta name="date" content="2015-06-15">
5+
<!-- Generated by javadoc (version 1.7.0_67) on Sun Aug 02 17:08:24 CEST 2015 -->
6+
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
7+
<title>Constant Field Values (User-Agent-Utils 1.17 API)</title>
8+
<meta name="date" content="2015-08-02">
89
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
910
</head>
1011
<body>
1112
<script type="text/javascript"><!--
1213
if (location.href.indexOf('is-external=true') == -1) {
13-
parent.document.title="Constant Field Values";
14+
parent.document.title="Constant Field Values (User-Agent-Utils 1.17 API)";
1415
}
1516
//-->
1617
</script>

javadoc/deprecated-list.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (version 1.7.0_67) on Mon Jun 15 20:46:01 CEST 2015 -->
6-
<title>Deprecated List</title>
7-
<meta name="date" content="2015-06-15">
5+
<!-- Generated by javadoc (version 1.7.0_67) on Sun Aug 02 17:08:24 CEST 2015 -->
6+
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
7+
<title>Deprecated List (User-Agent-Utils 1.17 API)</title>
8+
<meta name="date" content="2015-08-02">
89
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
910
</head>
1011
<body>
1112
<script type="text/javascript"><!--
1213
if (location.href.indexOf('is-external=true') == -1) {
13-
parent.document.title="Deprecated List";
14+
parent.document.title="Deprecated List (User-Agent-Utils 1.17 API)";
1415
}
1516
//-->
1617
</script>

javadoc/eu/bitwalker/useragentutils/Application.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (version 1.7.0_67) on Mon Jun 15 20:46:01 CEST 2015 -->
6-
<title>Application</title>
7-
<meta name="date" content="2015-06-15">
5+
<!-- Generated by javadoc (version 1.7.0_67) on Sun Aug 02 17:08:23 CEST 2015 -->
6+
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
7+
<title>Application (User-Agent-Utils 1.17 API)</title>
8+
<meta name="date" content="2015-08-02">
89
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
910
</head>
1011
<body>
1112
<script type="text/javascript"><!--
1213
if (location.href.indexOf('is-external=true') == -1) {
13-
parent.document.title="Application";
14+
parent.document.title="Application (User-Agent-Utils 1.17 API)";
1415
}
1516
//-->
1617
</script>

javadoc/eu/bitwalker/useragentutils/ApplicationType.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (version 1.7.0_67) on Mon Jun 15 20:46:01 CEST 2015 -->
6-
<title>ApplicationType</title>
7-
<meta name="date" content="2015-06-15">
5+
<!-- Generated by javadoc (version 1.7.0_67) on Sun Aug 02 17:08:24 CEST 2015 -->
6+
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
7+
<title>ApplicationType (User-Agent-Utils 1.17 API)</title>
8+
<meta name="date" content="2015-08-02">
89
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
910
</head>
1011
<body>
1112
<script type="text/javascript"><!--
1213
if (location.href.indexOf('is-external=true') == -1) {
13-
parent.document.title="ApplicationType";
14+
parent.document.title="ApplicationType (User-Agent-Utils 1.17 API)";
1415
}
1516
//-->
1617
</script>

0 commit comments

Comments
 (0)