-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ repositories { | |
} | ||
|
||
dependencies { | ||
compile project(':leakcanary-watcher') | ||
} | ||
|
||
android { | ||
|
19 changes: 19 additions & 0 deletions
19
library/leakcanary-android-no-op/src/main/java/com/squareup/leakcanary/RefWatcher.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,19 @@ | ||
package com.squareup.leakcanary; | ||
|
||
/** | ||
* No-op implementation of {@link RefWatcher} for release builds. Please use {@link | ||
* RefWatcher#DISABLED}. | ||
*/ | ||
public final class RefWatcher { | ||
|
||
public static final RefWatcher DISABLED = new RefWatcher(); | ||
|
||
private RefWatcher() { | ||
} | ||
|
||
public void watch(Object watchedReference) { | ||
} | ||
|
||
public void watch(Object watchedReference, String referenceName) { | ||
} | ||
} |