-
-
Notifications
You must be signed in to change notification settings - Fork 815
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added debug-libraries: leakcanary and blockcanary
Up version to 468
- Loading branch information
1 parent
594ad22
commit a4d0b20
Showing
3 changed files
with
61 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
xabber/src/main/java/com/xabber/android/utils/AppBlockCanaryContext.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.xabber.android.utils; | ||
|
||
import com.github.moduth.blockcanary.BlockCanaryContext; | ||
import com.xabber.android.BuildConfig; | ||
|
||
|
||
/** | ||
* Configuration class. Used in Block Canary - ui-block detection library for Android | ||
*/ | ||
|
||
public class AppBlockCanaryContext extends BlockCanaryContext { | ||
|
||
public String provideQualifier() { | ||
return BuildConfig.VERSION_NAME; | ||
} | ||
|
||
public int provideBlockThreshold() { | ||
return 1000; | ||
} | ||
} |