com.squareup.leakcanary.AndroidExcludedRefs Java Examples

The following examples show how to use com.squareup.leakcanary.AndroidExcludedRefs. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LeakLoggerService.java    From Alarmio with Apache License 2.0 5 votes vote down vote up
public static void setupLeakCanary(Application application) {
    if (LeakCanary.isInAnalyzerProcess(application)) {
        // This process is dedicated to LeakCanary for heap analysis.
        // You should not init your app in this process.
        return;
    }

    LeakCanary.refWatcher(application)
            .listenerServiceClass(LeakLoggerService.class)
            .excludedRefs(AndroidExcludedRefs.createAppDefaults().build())
            .buildAndInstall();

}
 
Example #2
Source File: LeakLoggerService.java    From braintree-android-drop-in with MIT License 4 votes vote down vote up
public static void setupLeakCanary(Application application) {
    LeakCanary.install(application, LeakLoggerService.class,
            AndroidExcludedRefs.createAppDefaults().build());
}
 
Example #3
Source File: LeakLoggerService.java    From braintree_android with MIT License 4 votes vote down vote up
public static void setupLeakCanary(Application application) {
    LeakCanary.install(application, LeakLoggerService.class,
            AndroidExcludedRefs.createAppDefaults().build());
}