Skip to content

Commit 45ec2c9

Browse files
committed
* Update to 6000045 (skipped 6000044)
* Updated unit tests for Chrome and Firefox (latest expected user agents)
1 parent 3072f65 commit 45ec2c9

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.3.6 - 04 May 2021
2+
- Updated to browscap 6000045 (skipped 6000045 due to bug).
3+
- Updated unit tests accordingly (Future Chrome and FireFox versions).
4+
15
1.3.5 - 22 April 2021
26
- Fix for #36
37

README.md

+2-2
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](https://github.com/browscap/browscap).
5-
The BrowsCap version currently shipped is: 6000043.
5+
The BrowsCap version currently shipped is: 6000045.
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).
@@ -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.3.5</version>
45+
<version>1.3.6</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.3.5</version>
7+
<version>1.3.6</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 = 6000043;
25+
public static final int BUNDLED_BROWSCAP_VERSION = 6000045;
2626
private String myZipFilePath;
2727
private InputStream myZipFileStream;
2828

-4.73 MB
Binary file not shown.
5.05 MB
Binary file not shown.

src/test/resources/useragents.txt

+11-1
Original file line numberDiff line numberDiff line change
@@ -1229,4 +1229,14 @@ Microsoft News 0 MacOSX 10 Desktop Mozilla/5.0 (Macintosh; Intel
12291229
LinkedInApp 0 MacOSX 10 Mobile Device Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 [LinkedInApp]
12301230
Schoology 0 MacOSX 10 Mobile Device Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Schoology iOS v2021.03.1
12311231
Playstation Browser 0 OrbisOS Unknown TV Device Mozilla/5.0 (PlayStation; PlayStation 4/8.00) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Safari/605.1.15
1232-
Google Adwords Express 0 Unknown Unknown Unknown Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; GoogleAdwordsExpress) Chrome/89.0.4389.93 Safari/537.36
1232+
Google Adwords Express 0 Unknown Unknown Unknown Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; GoogleAdwordsExpress) Chrome/89.0.4389.93 Safari/537.36
1233+
Chrome 99 Win10 10.0 Desktop Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4240.183 Safari/537.36
1234+
Chrome 99 macOS 10.15 Desktop Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4240.183 Safari/537.36
1235+
Chrome 99 Linux Unknown Desktop Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4240.183 Safari/537.36
1236+
Chrome 99 iOS 14.1 Mobile Phone Mozilla/5.0 (iPhone; CPU iPhone OS 14_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/99.0.4240.93 Mobile/15E148 Safari/604.1
1237+
Chrome 99 Android Unknown Mobile Phone Mozilla/5.0 (Linux; Android 10) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4240.185 Mobile Safari/537.36
1238+
Chrome 99 Android 10.0 Mobile Phone Mozilla/5.0 (Linux; Android 10; SM-A205U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4240.185 Mobile Safari/537.36
1239+
Chrome 99 Android 10.0 Mobile Phone Mozilla/5.0 (Linux; Android 10; LM-Q720) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4240.185 Mobile Safari/537.36
1240+
Firefox 96 Win10 10.0 Desktop Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/96.0
1241+
Firefox 96 macOS 10.15 Desktop Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:82.0) Gecko/20100101 Firefox/96.0
1242+
Firefox 96 Android 11.0 Mobile Phone Mozilla/5.0 (Android 11; Mobile; rv:68.0) Gecko/68.0 Firefox/96.0

0 commit comments

Comments
 (0)