diff --git a/README.md b/README.md index 773f403e..4dfc90eb 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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); diff --git a/czxing/build.gradle b/czxing/build.gradle index 6876bd00..a54115ae 100644 --- a/czxing/build.gradle +++ b/czxing/build.gradle @@ -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 { diff --git a/sample/build.gradle b/sample/build.gradle index 74b34198..fb6ad450 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -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