Skip to content

Commit

Permalink
release: 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
devilsen committed Mar 5, 2020
1 parent fbc76be commit be51044
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ C++ port of ZXing for Android
### 使用
在gradle中:
``` groovy
implementation 'me.devilsen:CZXing:0.9.16'
// 改为小写了,这样显得更整齐一些
implementation 'me.devilsen:czxing:1.0.1'
```
建议加入abiFilters
```gradle
Expand Down Expand Up @@ -71,7 +72,7 @@ Scanner.with(this)
})
.setOnScanResultDelegate(new ScanActivityDelegate.OnScanDelegate() { // 接管扫码成功的数据
@Override
public void onScanResult(String result, BarcodeFormat format) {
public void onScanResult(Activity activity, String result, BarcodeFormat format) {
Intent intent = new Intent(MainActivity.this, DelegateActivity.class);
intent.putExtra("result", result);
startActivity(intent);
Expand Down
4 changes: 2 additions & 2 deletions czxing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 26
versionName "0.9.16"
versionCode 27
versionName "1.0.1"

externalNativeBuild {
cmake {
Expand Down
4 changes: 2 additions & 2 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ android {
dependencies {

debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.0-beta-3'
implementation project(':czxing')
// implementation 'me.devilsen:CZXing:0.9.16'
// implementation project(':czxing')
implementation 'me.devilsen:czxing:1.0.1'

implementation rootProject.ext.appcompat
testImplementation rootProject.ext.junit
Expand Down

0 comments on commit be51044

Please sign in to comment.