Skip to content

Commit

Permalink
Merge pull request #74 from square/py/no-op-light
Browse files Browse the repository at this point in the history
Lighter no-op dependency
  • Loading branch information
swankjesse committed May 13, 2015
2 parents c779a42 + e2a60bd commit 439ec53
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
1 change: 0 additions & 1 deletion library/leakcanary-android-no-op/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ repositories {
}

dependencies {
compile project(':leakcanary-watcher')
}

android {
Expand Down
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) {
}
}

0 comments on commit 439ec53

Please sign in to comment.