Skip to content

Commit

Permalink
Version 2.9.1 (release)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfcast committed Aug 24, 2018
1 parent 080bec9 commit eda2b89
Show file tree
Hide file tree
Showing 10 changed files with 2,185 additions and 2,169 deletions.
282 changes: 141 additions & 141 deletions docs/Browser_Detection/BrowserDetection.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/Browser_Detection/_BrowserDetection.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ <h4>Tags:</h4>
<td><b>author:</b>&nbsp;&nbsp;</td><td>Alexandre Valiquette</td>
</tr>
<tr>
<td><b>version:</b>&nbsp;&nbsp;</td><td>2.9.0</td>
<td><b>version:</b>&nbsp;&nbsp;</td><td>2.9.1</td>
</tr>
<tr>
<td><b>copyright:</b>&nbsp;&nbsp;</td><td>Copyright (c) 2018, Wolfcast</td>
Expand All @@ -73,7 +73,7 @@ <h4>Tags:</h4>
<td><b>link:</b>&nbsp;&nbsp;</td><td><a href="https://wolfcast.com/">https://wolfcast.com/</a></td>
</tr>
<tr>
<td><b>last-modified:</b>&nbsp;&nbsp;</td><td>July 15, 2018</td>
<td><b>last-modified:</b>&nbsp;&nbsp;</td><td>August 23, 2018</td>
</tr>
<tr>
<td><b>filesource:</b>&nbsp;&nbsp;</td><td><a href="../__filesource/fsource_Browser_Detection__BrowserDetection.php.html">Source Code for this file</a></td>
Expand All @@ -87,7 +87,7 @@ <h4>Tags:</h4>

<div class="credit">
<hr />
Documentation generated on Sun, 15 Jul 2018 10:02:35 -0400 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Thu, 23 Aug 2018 20:14:10 -0400 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>
Expand Down
4,020 changes: 2,014 additions & 2,006 deletions docs/__filesource/fsource_Browser_Detection__BrowserDetection.php.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/classtrees_Browser_Detection.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h1>Class Trees for Package Browser_Detection</h1>

<div class="credit">
<hr />
Documentation generated on Sun, 15 Jul 2018 10:02:35 -0400 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Thu, 23 Aug 2018 20:14:10 -0400 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>
Expand Down
2 changes: 1 addition & 1 deletion docs/elementindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ <h2>_</h2>
<a href="elementindex.html#top">top</a><br>
<div class="credit">
<hr />
Documentation generated on Sun, 15 Jul 2018 10:02:35 -0400 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Thu, 23 Aug 2018 20:14:10 -0400 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>
Expand Down
2 changes: 1 addition & 1 deletion docs/elementindex_Browser_Detection.html
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ <h2>w</h2>
<a href="elementindex_Browser_Detection.html#top">top</a><br>
<div class="credit">
<hr />
Documentation generated on Sun, 15 Jul 2018 10:02:35 -0400 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Thu, 23 Aug 2018 20:14:10 -0400 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>
Expand Down
2 changes: 1 addition & 1 deletion docs/errors.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<a href="#Post-parsing">Post-parsing</a><br>
<div class="credit">
<hr />
Documentation generated on Sun, 15 Jul 2018 10:02:38 -0400 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Thu, 23 Aug 2018 20:14:13 -0400 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
This documentation was generated by <a href="http://www.phpdoc.org">phpDocumentor v1.4.3</a><br />
<div class="credit">
<hr />
Documentation generated on Sun, 15 Jul 2018 10:02:35 -0400 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Thu, 23 Aug 2018 20:14:10 -0400 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>
Expand Down
2 changes: 1 addition & 1 deletion docs/li_Browser_Detection.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
This documentation was generated by <a href="http://www.phpdoc.org">phpDocumentor v1.4.3</a><br />
<div class="credit">
<hr />
Documentation generated on Sun, 15 Jul 2018 10:02:35 -0400 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Thu, 23 Aug 2018 20:14:10 -0400 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>
Expand Down
34 changes: 21 additions & 13 deletions lib/BrowserDetection.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
* details at: http://www.gnu.org/licenses/lgpl.html
*
* @package Browser_Detection
* @version 2.9.0
* @last-modified July 15, 2018
* @version 2.9.1
* @last-modified August 23, 2018
* @author Alexandre Valiquette
* @copyright Copyright (c) 2018, Wolfcast
* @link https://wolfcast.com/
Expand All @@ -41,6 +41,10 @@
*
* Updates:
*
* 2018-08-23: Version 2.9.1
* + Fixed Chrome detection under iOS.
* + Added Android Pie detection.
* + Added macOS Mojave detection.
* 2018-07-15: Version 2.9.0
* + WARNING! Breaking change: new Wolfcast namespace. Use new Wolfcast\BrowserDetection().
* + iPad, iPhone and iPod are all under iOS now.
Expand Down Expand Up @@ -110,8 +114,8 @@
* + Better Mozilla detection
*
* @package Browser_Detection
* @version 2.9.0
* @last-modified July 15, 2018
* @version 2.9.1
* @last-modified August 23, 2018
* @author Alexandre Valiquette, Chris Schuld, Gary White
* @copyright Copyright (c) 2018, Wolfcast
* @license http://www.gnu.org/licenses/lgpl.html
Expand Down Expand Up @@ -440,7 +444,7 @@ public function getIECompatibilityView($asArray = false)
*/
public function getLibVersion()
{
return '2.9.0';
return '2.9.1';
}

/**
Expand Down Expand Up @@ -636,31 +640,33 @@ protected function androidVerToStr($androidVer)
{
//https://en.wikipedia.org/wiki/Android_version_history

if ($this->compareVersions($androidVer, '8') >= 0 && $this->compareVersions($androidVer, '9') < 0) {
if ($this->compareVersions($androidVer, '9') >= 0 && $this->compareVersions($androidVer, '10') < 0) {
return 'Pie';
} else if ($this->compareVersions($androidVer, '8') >= 0 && $this->compareVersions($androidVer, '9') < 0) {
return 'Oreo';
} else if ($this->compareVersions($androidVer, '7') >= 0 && $this->compareVersions($androidVer, '8') < 0) {
return 'Nougat';
} else if ($this->compareVersions($androidVer, '6') >= 0 && $this->compareVersions($androidVer, '7') < 0) {
return 'Marshmallow';
} else if ($this->compareVersions($androidVer, '5') >= 0 && $this->compareVersions($androidVer, '6') < 0) {
} else if ($this->compareVersions($androidVer, '5') >= 0 && $this->compareVersions($androidVer, '5.2') < 0) {
return 'Lollipop';
} else if ($this->compareVersions($androidVer, '4.4') >= 0 && $this->compareVersions($androidVer, '5') < 0) {
} else if ($this->compareVersions($androidVer, '4.4') >= 0 && $this->compareVersions($androidVer, '4.5') < 0) {
return 'KitKat';
} else if ($this->compareVersions($androidVer, '4.1') >= 0 && $this->compareVersions($androidVer, '4.4') < 0) {
return 'Jelly Bean';
} else if ($this->compareVersions($androidVer, '4') >= 0 && $this->compareVersions($androidVer, '4.1') < 0) {
return 'Ice Cream Sandwich';
} else if ($this->compareVersions($androidVer, '3') >= 0 && $this->compareVersions($androidVer, '4') < 0) {
} else if ($this->compareVersions($androidVer, '3') >= 0 && $this->compareVersions($androidVer, '3.3') < 0) {
return 'Honeycomb';
} else if ($this->compareVersions($androidVer, '2.3') >= 0 && $this->compareVersions($androidVer, '3') < 0) {
} else if ($this->compareVersions($androidVer, '2.3') >= 0 && $this->compareVersions($androidVer, '2.4') < 0) {
return 'Gingerbread';
} else if ($this->compareVersions($androidVer, '2.2') >= 0 && $this->compareVersions($androidVer, '2.3') < 0) {
return 'Froyo';
} else if ($this->compareVersions($androidVer, '2') >= 0 && $this->compareVersions($androidVer, '2.2') < 0) {
return 'Eclair';
} else if ($this->compareVersions($androidVer, '1.6') >= 0 && $this->compareVersions($androidVer, '2') < 0) {
} else if ($this->compareVersions($androidVer, '1.6') == 0) {
return 'Donut';
} else if ($this->compareVersions($androidVer, '1.5') >= 0 && $this->compareVersions($androidVer, '1.6') < 0) {
} else if ($this->compareVersions($androidVer, '1.5') == 0) {
return 'Cupcake';
} else {
return self::PLATFORM_VERSION_UNKNOWN; //Unknown/unnamed Android version
Expand Down Expand Up @@ -734,7 +740,7 @@ protected function checkBrowserBlackBerry()
*/
protected function checkBrowserChrome()
{
return $this->checkSimpleBrowserUA('Chrome', $this->_agent, self::BROWSER_CHROME);
return $this->checkSimpleBrowserUA(array('Chrome', 'CriOS'), $this->_agent, self::BROWSER_CHROME);
}

/**
Expand Down Expand Up @@ -1647,6 +1653,8 @@ protected function macVerToStr($macVer)

if ($this->_platformVersion === '10') {
return 'Mac OS X'; //Unspecified Mac OS X version
} else if ($this->compareVersions($macVer, '10.14') >= 0 && $this->compareVersions($macVer, '10.15') < 0) {
return 'macOS Mojave';
} else if ($this->compareVersions($macVer, '10.13') >= 0 && $this->compareVersions($macVer, '10.14') < 0) {
return 'macOS High Sierra';
} else if ($this->compareVersions($macVer, '10.12') >= 0 && $this->compareVersions($macVer, '10.13') < 0) {
Expand Down

0 comments on commit eda2b89

Please sign in to comment.