[android] disable leak canary during instrumentation tests

This commit is contained in:
Łukasz Paczos
2019-04-02 16:20:08 +02:00
parent dabbe4f92e
commit a75a78242f
4 changed files with 23 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ public class MapboxApplication extends Application {
initializeMapbox();
}
private boolean initializeLeakCanary() {
protected boolean initializeLeakCanary() {
if (LeakCanary.isInAnalyzerProcess(this)) {
// This process is dedicated to LeakCanary for heap analysis.
// You should not init your app in this process.