发布v1.1.6-androidx

This commit is contained in:
jenly1314
2019-12-27 18:50:44 +08:00
parent 42a5cc926a
commit 30bc3e3708
7 changed files with 19 additions and 13 deletions

View File

@@ -9,7 +9,7 @@
[![API](https://img.shields.io/badge/API-16%2B-blue.svg?style=flat)](https://android-arsenal.com/api?level=16) [![API](https://img.shields.io/badge/API-16%2B-blue.svg?style=flat)](https://android-arsenal.com/api?level=16)
[![License](https://img.shields.io/badge/license-Apche%202.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0) [![License](https://img.shields.io/badge/license-Apche%202.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)
[![Blog](https://img.shields.io/badge/blog-Jenly-9933CC.svg)](https://jenly1314.github.io/) [![Blog](https://img.shields.io/badge/blog-Jenly-9933CC.svg)](https://jenly1314.github.io/)
[![QQGroup](https://img.shields.io/badge/QQGroup-20867961-blue.svg)](http://shang.qq.com/wpa/qunwpa?idkey=8fcc6a2f88552ea44b1411582c94fd124f7bb3ec227e2a400dbbfaad3dc2f5ad) [![QQGroup](https://img.shields.io/badge/QQGroup-20867961-blue.svg)](http://shang.qq.com/wpa/qunwpa?idkey=8fcc6a2f88552ea44b1.1.682c94fd124f7bb3ec227e2a400dbbfaad3dc2f5ad)
ZXingLite for Android 是ZXing的精简版基于ZXing库优化扫码和生成二维码/条形码功能,扫码界面完全支持自定义,也可一行代码使用默认实现的扫码功能。总之你想要的都在这里。 ZXingLite for Android 是ZXing的精简版基于ZXing库优化扫码和生成二维码/条形码功能,扫码界面完全支持自定义,也可一行代码使用默认实现的扫码功能。总之你想要的都在这里。
>简单如斯,你不试试? Come on~ >简单如斯,你不试试? Come on~
@@ -54,21 +54,21 @@ ZXingLite for Android 是ZXing的精简版基于ZXing库优化扫码和生成
<dependency> <dependency>
<groupId>com.king.zxing</groupId> <groupId>com.king.zxing</groupId>
<artifactId>zxing-lite</artifactId> <artifactId>zxing-lite</artifactId>
<version>1.1.5</version> <version>1.1.6</version>
<type>pom</type> <type>pom</type>
</dependency> </dependency>
``` ```
### Gradle: ### Gradle:
```gradle ```gradle
//AndroidX 版本 //AndroidX 版本
implementation 'com.king.zxing:zxing-lite:1.1.5-androidx' implementation 'com.king.zxing:zxing-lite:1.1.6-androidx'
//Android 版本 //Android 版本
implementation 'com.king.zxing:zxing-lite:1.1.5' implementation 'com.king.zxing:zxing-lite:1.1.6'
``` ```
### Lvy: ### Lvy:
```lvy ```lvy
<dependency org='com.king.zxing' name='zxing-lite' rev='1.1.5'> <dependency org='com.king.zxing' name='zxing-lite' rev='1.1.6'>
<artifact name='$AID' ext='pom'></artifact> <artifact name='$AID' ext='pom'></artifact>
</dependency> </dependency>
``` ```
@@ -165,6 +165,10 @@ api 'com.google.zxing:core:3.3.3'
## 版本记录 ## 版本记录
#### v1.1.62019-12-27
* 生成条形码/二维码时支持自定义配置颜色
* 支持识别反色码增强识别率默认不支持需通过CaptureHelper.supportLuminanceInvert(true)开启)
#### v1.1.52019-12-16 #### v1.1.52019-12-16
* 优化Camera初始化相关策略减少出现卡顿的可能性 * 优化Camera初始化相关策略减少出现卡顿的可能性
@@ -182,7 +186,7 @@ api 'com.google.zxing:core:3.3.3'
#### v1.1.12019-5-20 #### v1.1.12019-5-20
* 支持扫二维码过小时,自动缩放 * 支持扫二维码过小时,自动缩放
* 支持垂直条形码识别增强条形码识别默认不支持需CaptureHelper.supportVerticalCode(true)开启) * 支持识别垂直条形码(增强条形码识别,默认不支持,需通过CaptureHelper.supportVerticalCode(true)开启)
#### v1.1.02019-4-19 #### v1.1.02019-4-19
* 将扫码相关逻辑与界面分离ZXingLite使用更容易扩展 * 将扫码相关逻辑与界面分离ZXingLite使用更容易扩展
@@ -236,10 +240,11 @@ api 'com.google.zxing:core:3.3.3'
Github: <a title="Github开源项目" href="https://github.com/jenly1314" target="_blank">jenly1314</a> Github: <a title="Github开源项目" href="https://github.com/jenly1314" target="_blank">jenly1314</a>
加入QQ群: <a title="点击加入QQ群" href="http://shang.qq.com/wpa/qunwpa?idkey=8fcc6a2f88552ea44b1411582c94fd124f7bb3ec227e2a400dbbfaad3dc2f5ad" target="_blank">20867961</a> 加入QQ群: <a title="点击加入QQ群" href="http://shang.qq.com/wpa/qunwpa?idkey=8fcc6a2f88552ea44b1.1.682c94fd124f7bb3ec227e2a400dbbfaad3dc2f5ad" target="_blank">20867961</a>
<div> <div>
<img src="https://jenly1314.github.io/image/jenly666.png"> <img src="https://jenly1314.github.io/image/jenly666.png">
<img src="https://jenly1314.github.io/image/qqgourp.png"> <img src="https://jenly1314.github.io/image/qqgourp.png">
</div> </div>

Binary file not shown.

View File

@@ -1 +1 @@
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":18,"versionName":"1.1.5-androidx","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}] [{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":20,"versionName":"1.1.6-androidx","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]

View File

@@ -64,6 +64,7 @@ public class CustomActivity extends AppCompatActivity implements OnCaptureCallba
mCaptureHelper.vibrate(true) mCaptureHelper.vibrate(true)
.fullScreenScan(true)//全屏扫码 .fullScreenScan(true)//全屏扫码
.supportVerticalCode(true)//支持扫垂直条码,建议有此需求时才使用。 .supportVerticalCode(true)//支持扫垂直条码,建议有此需求时才使用。
.supportLuminanceInvert(true)//是否支持识别反色码(黑白反色的码),增加识别率
.continuousScan(isContinuousScan); .continuousScan(isContinuousScan);
} }
@@ -115,4 +116,4 @@ public class CustomActivity extends AppCompatActivity implements OnCaptureCallba
break; break;
} }
} }
} }

View File

@@ -59,7 +59,8 @@ public class CustomCaptureActivity extends CaptureActivity {
.frontLightMode(FrontLightMode.AUTO)//设置闪光灯模式 .frontLightMode(FrontLightMode.AUTO)//设置闪光灯模式
.tooDarkLux(45f)//设置光线太暗时,自动触发开启闪光灯的照度值 .tooDarkLux(45f)//设置光线太暗时,自动触发开启闪光灯的照度值
.brightEnoughLux(100f)//设置光线足够明亮时,自动触发关闭闪光灯的照度值 .brightEnoughLux(100f)//设置光线足够明亮时,自动触发关闭闪光灯的照度值
.continuousScan(isContinuousScan);//是否连扫 .continuousScan(isContinuousScan)//是否连扫
.supportLuminanceInvert(true);//是否支持识别反色码(黑白反色的码),增加识别率
} }

View File

@@ -15,7 +15,6 @@
*/ */
package com.king.zxing; package com.king.zxing;
import android.app.Activity;
import android.os.Bundle; import android.os.Bundle;
import android.view.MotionEvent; import android.view.MotionEvent;
import android.view.SurfaceView; import android.view.SurfaceView;

View File

@@ -1,7 +1,7 @@
//App //App
def app_version = [:] def app_version = [:]
app_version.versionCode = 18 app_version.versionCode = 20
app_version.versionName = "1.1.5-androidx" app_version.versionName = "1.1.6-androidx"
ext.app_version = app_version ext.app_version = app_version
//build version //build version