Skip to content

Commit 8f467ce

Browse files
committed
Update to 6000038
Updated README.md and CHANGELOG.txt Updated unit tests
1 parent e5b379d commit 8f467ce

File tree

7 files changed

+19
-5
lines changed

7 files changed

+19
-5
lines changed

CHANGELOG.txt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
1.2.15 - 18 March 2020
2+
- Updated to browscap 6000038.
3+
- Updated unit tests accordingly.
4+
15
1.2.14 - 31 Januari 2020
26
- Updated to browscap 6000037.
37
- Updated unit tests accordingly.

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# browscap-java
44
A blazingly fast and memory efficient (thread-safe) Java client on top of the BrowsCap CSV source files.
5-
The BrowsCap version currently shipped is: 6000037.
5+
The BrowsCap version currently shipped is: 6000038.
66

77
## Description
88
This library can be used to parse useragent headers in order to extract information about the used browser, browser version, platform, platform version and device type. Very useful to determine if the client is a desktop, tablet or mobile device or to determine if the client is on Windows or Mac OS (just to name a few examples).
@@ -23,7 +23,7 @@ In short, this is how our algorithm works:
2323
* All BrowsCap fields are available by configuration, but the following fields are loaded by default:
2424
* browser (e.g. Chrome)
2525
* browserType (e.g. Browser or Application)
26-
* browserMajorVersion (e.g. 75 in case of Chrome)
26+
* browserMajorVersion (e.g. 80 in case of Chrome)
2727
* deviceType (e.g. Mobile Phone, Desktop, Tablet, Console, TV Device)
2828
* platform (e.g. Android, iOS, Win7, Win8, Win10)
2929
* platformVersion (e.g. 4.2, 10 depending on what the platform is)
@@ -42,7 +42,7 @@ Add this to the dependencies in your pom.xml.
4242
<dependency>
4343
<groupId>com.blueconic</groupId>
4444
<artifactId>browscap-java</artifactId>
45-
<version>1.2.14</version>
45+
<version>1.2.15</version>
4646
</dependency>
4747
```
4848

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.blueconic</groupId>
55
<artifactId>browscap-java</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.2.14</version>
7+
<version>1.2.15</version>
88
<name>browscap-java</name>
99
<description>A blazingly fast and memory efficient Java client on top of the BrowsCap CSV source files.</description>
1010

src/main/java/com/blueconic/browscap/UserAgentService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
public class UserAgentService {
2323

2424
// The version of the browscap file this bundle depends on
25-
public static final int BUNDLED_BROWSCAP_VERSION = 6000037;
25+
public static final int BUNDLED_BROWSCAP_VERSION = 6000038;
2626
private String myZipFilePath;
2727
private InputStream myZipFileStream;
2828

-4.78 MB
Binary file not shown.
5.35 MB
Binary file not shown.

src/test/resources/useragents.txt

+10
Original file line numberDiff line numberDiff line change
@@ -1194,3 +1194,13 @@ Chrome 77 macOS 10.15 Desktop Mozilla/5.0 (Macintosh; Intel Mac O
11941194
Chrome 79 macOS 10.15 Desktop Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.131 Safari/537.36
11951195
Chrome 79 Win10 10.0 Desktop Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36
11961196
HeyTapBrowser 0 Android 10.0 Mobile Phone Mozilla/5.0 (Linux; U; Android 10; zh-cn; GM1910 Build/QKQ1.190716.003) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/70.0.3538.80 Mobile Safari/537.36 HeyTapBrowser/40.7.0.0
1197+
Chrome 80 Win10 10.0 Desktop Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36
1198+
Chrome 81 Win10 10.0 Desktop Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.3987.132 Safari/537.36
1199+
Chrome 82 Win10 10.0 Desktop Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/82.0.3987.132 Safari/537.36
1200+
Chrome 83 Win10 10.0 Desktop Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.3987.132 Safari/537.36
1201+
Chrome 84 Win10 10.0 Desktop Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.3987.132 Safari/537.36
1202+
Chrome 85 Win10 10.0 Desktop Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.3987.132 Safari/537.36
1203+
Firefox 72 Linux Unknown Desktop Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0
1204+
Firefox 75 Linux Unknown Desktop Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/75.0
1205+
Edge 80 Win10 10.0 Desktop Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.106 Safari/537.36 Edg/80.0.361.54
1206+
Chrome 76 Android 9.0 Mobile Phone Mozilla/5.0 (Linux; Android 9; SM-G973F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.111 Mobile Safari/537.36

0 commit comments

Comments
 (0)