Skip to content

Commit a5dded8

Browse files
authored
Merge pull request #5 from matrad/master
(upgrade) upgraded zxing library to 3.3.3
2 parents 991c4ed + 862fac5 commit a5dded8

7 files changed

+10
-3
lines changed

src/PHPZxing/PHPZxingBase.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,13 @@
3737
class PHPZxingBase {
3838

3939
// name of the javase.jar file located in /src/bin directory
40-
private $_JAVASE_PATH = 'javase-3.2.0.jar';
40+
private $_JAVASE_PATH = 'javase-3.3.3.jar';
4141

4242
// name of the core.jar file located in /src/bin directory
43-
private $_CORE_PATH = "core-3.2.0.jar";
43+
private $_CORE_PATH = "core-3.3.3.jar";
44+
45+
// name of the jcommander.jar file located in /src/bin directory
46+
private $_JCOMMANDER_PATH = "jcommander-1.72.jar";
4447

4548
// location of java in your machine
4649
private $_JAVA_PATH = "/usr/bin/java";
@@ -57,6 +60,10 @@ public function getCorePAth() {
5760
return dirname(__DIR__) . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . $this->_CORE_PATH;
5861
}
5962

63+
public function getJcommanderPath() {
64+
return dirname(__DIR__) . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . $this->_JCOMMANDER_PATH;
65+
}
66+
6067
/**
6168
* Set the default java path which we will use for decoding
6269
*/

src/PHPZxing/PHPZxingDecoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function __construct($config = array()) {
8989
private function basePrepare() {
9090
$command = "";
9191
$command = $command . $this->getJavaPath() . $this->SPACE . "-cp" . $this->SPACE;
92-
$command = $command . $this->getJARPath() . PATH_SEPARATOR . $this->getCorePAth() . $this->SPACE;
92+
$command = $command . $this->getJARPath() . PATH_SEPARATOR . $this->getCorePAth() . PATH_SEPARATOR . $this->getJcommanderPath() . $this->SPACE;
9393
$command = $command . $this->JAVA_DECODER_CLASS . $this->SPACE;
9494
return $command;
9595
}

src/bin/core-3.2.0.jar

-531 KB
Binary file not shown.

src/bin/core-3.3.3.jar

530 KB
Binary file not shown.

src/bin/javase-3.2.0.jar

-38.3 KB
Binary file not shown.

src/bin/javase-3.3.3.jar

40.7 KB
Binary file not shown.

src/bin/jcommander-1.72.jar

67.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)