Skip to content

Commit

Permalink
修复内存泄漏的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
devilsen committed Sep 18, 2019
1 parent ab2e663 commit 5ac3246
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ C++ port of ZXing for Android
### 使用
在gradle中:
``` groovy
implementation 'me.devilsen:CZXing:0.9.1'
implementation 'me.devilsen:CZXing:0.9.2'
```
建议加入abiFilters
```gradle
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 16
versionName "0.9.1"
versionCode 17
versionName "0.9.2"

externalNativeBuild {
cmake {
Expand Down
2 changes: 2 additions & 0 deletions czxing/src/main/java/me/devilsen/czxing/ScanActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ protected void onDestroy() {
mScanView.onDestroy(); // 销毁二维码扫描控件
mSoundPoolUtil.release();
super.onDestroy();
ScanActivityDelegate.getInstance().setScanResultDelegate(null);
ScanActivityDelegate.getInstance().setOnClickAlbumDelegate(null);
}

@Override
Expand Down
4 changes: 2 additions & 2 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ android {

dependencies {

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

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

0 comments on commit 5ac3246

Please sign in to comment.