支持AndroidX对应版本

This commit is contained in:
jenly1314
2019-06-27 14:08:41 +08:00
parent 809930183a
commit 5b4c15db1f
3 changed files with 11 additions and 7 deletions

Binary file not shown.

View File

@@ -51,6 +51,9 @@ ZXingLite for Android 是ZXing的精简版基于ZXing库优化扫码和生成
```
### Gradle:
```gradle
//AndroidX 版本
implementation 'com.king.zxing:zxing-lite:1.1.2-androidx'
//Android 版本
implementation 'com.king.zxing:zxing-lite:1.1.2'
```
### Lvy:
@@ -71,6 +74,11 @@ allprojects {
## 引入的库:
```gradle
//AndroidX
compileOnly 'androidx.appcompat:appcompat:1.0.0+'
api 'com.google.zxing:core:3.3.3'
//Android
compileOnly 'com.android.support:appcompat-v7:28.0.0'
api 'com.google.zxing:core:3.3.3'
```
@@ -130,6 +138,7 @@ api 'com.google.zxing:core:3.3.3'
#### v1.1.22019-6-27
* 优化部分细节为迁移至AndroidX做准备
* 支持AndroidX对应版本
#### v1.1.12019-5-20
* 支持扫二维码过小时,自动缩放

View File

@@ -3,10 +3,7 @@
buildscript {
apply from: 'versions.gradle'
repositories {
google()
jcenter()
}
addRepos(repositories)
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.novoda:bintray-release:0.9'
@@ -17,10 +14,8 @@ buildscript {
}
allprojects {
repositories {
addRepos(repositories)
}
}
task clean(type: Delete) {
delete rootProject.buildDir