diff --git a/app/build.gradle b/app/build.gradle
index 9e6187f..b716516 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -25,8 +25,8 @@ dependencies {
implementation "com.android.support:design:$support_version"
implementation "com.android.support:support-vector-drawable:$support_version"
implementation 'com.yanzhenjie:permission:2.0.0-rc4'
- //implementation project(':zxinglibrary')
- implementation 'com.github.yuzhiqiang1993:zxing:2.1.6'
+ implementation project(':zxinglibrary')
+ // implementation 'com.github.yuzhiqiang1993:zxing:2.1.6'
}
diff --git a/gradle.properties b/gradle.properties
index 1b647f9..7afb94c 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -10,7 +10,7 @@
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx1536m
-android.enableAapt2=true
+#android.enableAapt2=true
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
diff --git a/zxinglibrary/src/main/java/com/yzq/zxinglibrary/decode/DecodeHandler.java b/zxinglibrary/src/main/java/com/yzq/zxinglibrary/decode/DecodeHandler.java
index 7f97534..8fd2868 100644
--- a/zxinglibrary/src/main/java/com/yzq/zxinglibrary/decode/DecodeHandler.java
+++ b/zxinglibrary/src/main/java/com/yzq/zxinglibrary/decode/DecodeHandler.java
@@ -76,7 +76,7 @@ private void decode(byte[] data, int width, int height) {
for (int x = 0; x < width; x++)
rotatedData[x * height + height - y - 1] = data[x + y * width];
}
- int tmp = width; // Here we are swapping, that's the difference to #11
+ int tmp = width;
width = height;
height = tmp;
data = rotatedData;
diff --git a/zxinglibrary/src/main/java/com/yzq/zxinglibrary/decode/DecodeImgCallback.java b/zxinglibrary/src/main/java/com/yzq/zxinglibrary/decode/DecodeImgCallback.java
index 6323fbf..a2151e8 100644
--- a/zxinglibrary/src/main/java/com/yzq/zxinglibrary/decode/DecodeImgCallback.java
+++ b/zxinglibrary/src/main/java/com/yzq/zxinglibrary/decode/DecodeImgCallback.java
@@ -4,12 +4,12 @@
/**
* Created by yzq on 2017/10/18.
- *
+ *
* 解析图片的回调
*/
public interface DecodeImgCallback {
- public void onImageDecodeSuccess(Result result);
+ void onImageDecodeSuccess(Result result);
- public void onImageDecodeFailed();
+ void onImageDecodeFailed();
}
From 064cd284056dd19e533fcbd981a854651a575dac Mon Sep 17 00:00:00 2001
From: yzq <1149635502@qq.com>
Date: Mon, 9 Apr 2018 14:47:31 +0800
Subject: [PATCH 3/5] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E4=BF=AE=E5=A4=8D?=
=?UTF-8?q?=E4=BE=9D=E8=B5=96=E6=8A=A5=E9=94=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/caches/build_file_checksums.ser | Bin 589 -> 589 bytes
app/build.gradle | 4 ++--
build.gradle | 4 ++--
gradle.properties | 5 +----
zxinglibrary/src/main/AndroidManifest.xml | 1 -
5 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser
index 1d3ce67d0993cd76676c679203f2dd5baf7439c5..86fd12193b22f5d899f9efda7fbb6aa1a0122cf6 100644
GIT binary patch
delta 73
zcmV-P0Ji_l1kD7HnFA)VJCU4s5Gqbbwhy3g109sEoUWhRkdq?;h!7+D)!qm&r@0r|
fA^b;<4`7qK0f7;H=NDSy8!%z3+ki+_CF-Jhch?{F
delta 73
zcmV-P0Ji_l1kD7HnF9#O&yk#W5Mm0_kgZvUw2f{hFk+XC(~~0sh!C0Q+-h}B62`z{
f|H=f40J)R90f7-#at?gQBU{!0$Cy6!e2P+d%
-
Date: Mon, 9 Apr 2018 15:13:50 +0800
Subject: [PATCH 4/5] no message
---
.idea/misc.xml | 2 +-
app/build.gradle | 3 ---
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/.idea/misc.xml b/.idea/misc.xml
index ac59544..199f869 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -25,7 +25,7 @@
-