Skip to content
This repository has been archived by the owner on Jul 1, 2020. It is now read-only.

Commit

Permalink
Revert changes from 1.9.5 and bump to 1.9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Dushyanth Maguluru committed Aug 2, 2017
1 parent 81aee5a commit a526e66
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 21 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## [1.9.6] - July 28, 2017
* Revert changes from 1.9.5 as it causes more harm than good (See #336)

## [1.9.5] - July 28, 2017
* Fix incorrectly rotated data on Nexus 5x devices. Thanks to @rramprasad for the pull request #315

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Installation

Add the following dependency to your build.gradle file.

`compile 'me.dm7.barcodescanner:zxing:1.9.5'`
`compile 'me.dm7.barcodescanner:zxing:1.9.6'`

Simple Usage
------------
Expand Down Expand Up @@ -126,7 +126,7 @@ Installation

Add the following dependency to your build.gradle file.

`compile 'me.dm7.barcodescanner:zbar:1.9.5'`
`compile 'me.dm7.barcodescanner:zbar:1.9.6'`

Simple Usage
------------
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ buildscript {

allprojects {
group = 'me.dm7.barcodescanner'
version = '1.9.5'
version = '1.9.6'

repositories {
mavenCentral()
Expand Down Expand Up @@ -44,8 +44,8 @@ subprojects {
defaultConfig {
minSdkVersion versions.min_sdk
targetSdkVersion versions.target_sdk
versionCode 195
versionName "1.9.5"
versionCode 196
versionName "1.9.6"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,21 +315,7 @@ public byte[] getRotatedData(byte[] data, Camera camera) {

int displayOrientation = mPreview.getDisplayOrientation();

int rotationCount = 0;
switch (displayOrientation) {
case 0:
rotationCount = 0;
break;
case 90:
rotationCount = 1;
break;
case 180:
rotationCount = 2;
break;
case 270:
rotationCount = 3;
break;
}
int rotationCount = 1;

for (int i = 0; i < rotationCount; i++) {
byte[] rotatedData = new byte[data.length];
Expand Down
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ext.versions = [
build_tools : "25.0.2",
support_lib : "25.3.1",
zxing : "3.3.0",
barcodescanner: "1.9.5"
barcodescanner: "1.9.6"
]

ext.libraries = [
Expand Down

0 comments on commit a526e66

Please sign in to comment.