Commit graph

3266 commits

Author SHA1 Message Date
Sean Owen 343ddc7a98 Fix argLine for jacoco, and update to war plugin 3.0.0 2016-09-04 21:31:26 +01:00
fgrieu e9e2bd280b Update DataMask.java (#653)
Further micro-optimize QR data mask recognition; more comment for earlier such changes.
2016-08-28 23:12:25 +01:00
Sean Owen 7b1e1ccadb Fix some warnings from new inspection tool 2016-08-26 16:21:05 +01:00
Sean Owen 33fd85e0c2 Minor changes from inspection 2016-08-22 10:46:41 +01:00
Sean Owen 608dff8522 Make background of zxing.org white to match zxing.appspot.com 2016-08-22 10:35:38 +01:00
steelman 2de9d7ceaf I've seen some codes with the type set to WPA2 (#650) 2016-08-22 10:35:13 +01:00
Sebastian Buchwald 70db62d11b Optimize QR data mask recognition (#652) 2016-08-22 10:33:43 +01:00
Sebastian Buchwald 7805a7551c Fix some typos (#651) 2016-08-22 10:29:31 +01:00
Sean Owen ba6ce9fb25 Minor follow on to last QR code version hint commit 2016-08-08 11:30:18 +01:00
germinator d60c0f14bd Add ability to specify a QR code version hint. (#637)
* Add ability to specify a QR code version hint.

* Checkstyle.
2016-08-08 11:22:35 +01:00
Sean Owen f6a1e20e1b Fix one code warning; update plugins 2016-08-08 11:16:57 +01:00
Sean Owen 77fb240beb Increase online decoder size limits 2016-08-08 11:14:50 +01:00
fgrieu b708f95a87 Aztec decoder fix: return to Upper mode after U/S B/S sequence. (#643)
* Update Decoder.java

* Add files via upload

dlusbs.png and dlusbs.txt is a test case for the D/L [digit] U/S B/S sequence, which should end in Upper mode, not Digit mode

* Update number of test cases

* Comment logic of the fix

* Mention fixed issue #642
2016-08-08 09:09:53 +01:00
Sean Owen 61016808da Rename/rearrange old locale names to standard ones 2016-07-24 20:55:01 +01:00
Sean Owen 2f11529aa3 A bunch of inspection changes, including some dead code removal and tightening visibility, removing unnecessary casts 2016-07-24 18:29:42 +01:00
Sean Owen 78fbdc58fc Update plugins; use https:// URLs consistently for good practice 2016-07-16 12:38:19 +01:00
Sean Owen d3dd1827ba Don't interpret very long strings.with.dots.like.this to be interpreted as URIs 2016-07-08 15:21:18 +01:00
Sean Owen 7e2d7c0b21 Crush some PNGs that could benefit from it 2016-07-02 14:13:11 +01:00
Sean Owen a1a51de290 Oops, fix fat finger typo from last change 2016-06-24 10:48:25 +01:00
Sean Owen 08e5431d99 Implement more style checks around whitespace 2016-06-24 10:28:00 +01:00
Sean Owen ddfc0cac11 Allow building of Android apps on Travis 2016-06-24 09:26:53 +01:00
Sean Owen c4c578f7ee Preload bookmarks instead of holding open cursor to avoid concurrent modification; no longer that slow that it must be avoided on the UI thread 2016-06-22 16:52:30 +01:00
Sean Owen 53837950aa Skip javadoc for Android apps, always 2016-06-22 16:52:30 +01:00
Sebastian Buchwald ee150757ec Fix typo (#615) 2016-06-21 21:20:16 +01:00
Sean Owen 53ce55ed96 Render groupings of packages in javadoc 2016-06-20 15:55:22 +01:00
Sean Owen 19ce4cfb3b Use HTTPS for all zxing.org / zxing.appspot.com links 2016-06-20 15:51:44 +01:00
Sean Owen 41f59701da No need for coverity config in main branch 2016-06-20 13:54:32 +01:00
Sean Owen 1a5b739cdc Closes #610 : avoid AIOOBE in pure-barcode mode for obviously wrong case 2016-06-20 09:20:16 +01:00
Sean Owen 5927f6ef09 Redirect to https://zxing.org directly, and touch up a build warning 2016-06-20 09:13:21 +01:00
Sean Owen cf59354cde Experiment with parallel Maven build in Travis 2016-06-13 16:03:04 +01:00
Sean Owen c044a946e9 Put optimization behind a profile as it won't currently work with JDK9 2016-06-13 10:25:49 +01:00
Sean Owen 6ffb40e1fd Update plugins; fix logging of uploaded file name 2016-06-12 18:10:45 +01:00
Sean Owen a57bfa44e8 Move zxing.org web resources to standard src/main/webapp 2016-06-10 14:07:21 +01:00
Sean Owen 3d18e3e449 Update proguard plugin to 2.0.13 2016-06-10 13:59:08 +01:00
Sean Owen 6cdc7493d5 Closes Issue #607 : guard against very narrow images which would otherwise cause an exception 2016-06-10 13:58:51 +01:00
Sean Owen b1f4b5a269 Try local-only Proguard optimization for core library 2016-06-08 18:40:27 +01:00
Sean Owen b40dd94843 Make redundant proguard.cfg files symlinks 2016-06-08 15:36:47 +01:00
Sean Owen 58f748a451 Remove unneeded .gitignore, and unneeded libs copy step for Android targets. Update plugins. Fix javadoc warning / checkstyle problem. 2016-06-08 15:15:06 +01:00
Sean Owen 032e1547ae Enable some additional checkstyle rules 2016-06-04 22:40:48 +01:00
Sean Owen 389f69f4b2 Add minimal javadoc to all classes (and enforce with checkstyle); minor refactoring to of array sum code 2016-06-04 15:36:32 +01:00
Nayuki 7cf49565c2 Simplified pieces of code (#601)
* Simplify code in bit-twiddling methods, using APIs introduced in Java 5.

* Align code by adjusting whitespace and adding `+0`.

* Convert qrcode DataMask to enum to reduce source code size, which shouldn't change behavior.

* Simplify lists of character constants using string initializer instead of array.

* Remove redundant `+ 0` operations from a recent change.

* Delete the function DataMask.forReference() and inline the logic into all its callers.
2016-05-25 06:46:44 -05:00
Sean Owen c2eb20d976 Compute locale-specific expected date strings in test for JDK 9 compatibility 2016-05-23 07:18:48 -05:00
Sean Owen 2a5a62e373 Don't build source, javadoc in Travis 2016-05-22 22:33:04 -05:00
Sean Owen 0ef26e3948 Use java.util.Base64 in Java 8+ only, to remove javax.xml.bind dependency in javase, which doesn't exist by default in Java 9 2016-05-22 22:24:19 -05:00
Sean Owen ce072f02f9 Better info logging in web app, and better clearing of buffers 2016-05-18 14:57:03 +01:00
Sean Owen 1f14baf6f2 Set up for app 4.7.6 2016-05-12 10:10:11 +01:00
Taneli Huuskonen cc16a72c85 Simplified some code (#596)
* Fixed bug #593

Bug #593 was misleadingly reported as pertaining to another project, but
testing revealed it affected this project as well.  The Code128 encoding
algorithm failed when an odd number of digits were followed by FNC1 and
other digits.  The code selection algorithm was rewritten.  A test case
showing the bug was added, and an old test case was updated to expect
the result of the new algorithm  -  another valid encoding of the same
length as the old one.

* Fixed bug #593

Bug #593 was misleadingly reported as pertaining to another project, but
testing revealed it affected this project as well.  The Code128 encoding
algorithm failed when an odd number of digits were followed by FNC1 and
other digits.  The code selection algorithm was rewritten.  A test case
showing the bug was added, and an old test case was updated to expect
the result of the new algorithm  -  another valid encoding of the same
length as the old one.

* Cleaning up

Added a private enum and changed some names to improve readability.
Also some trivial cosmetic changes.

* Further cleanup of Code128 writer test

Removed a private one-liner method used exactly once, alphabetized
imports.

* Simplify conversion RGB -> luminance

Removed testing every pixel for greyness in RGBLuminanceSource, as it
did not appreciably change the speed of converting a greyscale image and
slowed down the conversion of a colour image by a few percent.  Besides,
there was no need to treat every row separately; the total number of
pixels was enough.

* Minor improvements to BitArray

Simplified some code, added more accurate error checking, and corrected
small inaccuracies in comments.
2016-05-12 10:06:04 +01:00
Taneli Huuskonen f0dfcdfed5 Fix for bug #593
* Fixed bug #593

Bug #593 was misleadingly reported as pertaining to another project, but
testing revealed it affected this project as well.  The Code128 encoding
algorithm failed when an odd number of digits were followed by FNC1 and
other digits.  The code selection algorithm was rewritten.  A test case
showing the bug was added, and an old test case was updated to expect
the result of the new algorithm  -  another valid encoding of the same
length as the old one.

* Fixed bug #593

Bug #593 was misleadingly reported as pertaining to another project, but
testing revealed it affected this project as well.  The Code128 encoding
algorithm failed when an odd number of digits were followed by FNC1 and
other digits.  The code selection algorithm was rewritten.  A test case
showing the bug was added, and an old test case was updated to expect
the result of the new algorithm  -  another valid encoding of the same
length as the old one.

* Cleaning up

Added a private enum and changed some names to improve readability.
Also some trivial cosmetic changes.

* Further cleanup of Code128 writer test

Removed a private one-liner method used exactly once, alphabetized
imports.
2016-05-08 15:01:41 +01:00
Sean Owen a064c719e6 Update plugins 2016-05-08 09:32:07 +01:00
Sean Owen 84d08ef61f Revert inadvertent change to non-private API 2016-05-08 09:30:51 +01:00