Skip to content

Commit

Permalink
Fix out of date migration doc
Browse files Browse the repository at this point in the history
Fixes #2409
  • Loading branch information
pyricau committed Nov 9, 2022
1 parent 0467ecb commit 624da68
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions docs/upgrading-to-leakcanary-2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,24 +192,8 @@ public class InstrumentationTestExampleApplication extends DebugExampleApplicati

### Now

In your `build.gradle` file:

```groovy
dependencies {
androidTestImplementation "com.squareup.leakcanary:leakcanary-android-instrumentation:${leakCanaryVersion}"
}
android {
defaultConfig {
// ...
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArgument "listener", "leakcanary.FailTestOnLeakRunListener"
}
}
```

No code is necessary.
Remove all the previous test related leak detection code then follow
[Leak detection in UI tests](ui-tests.md).

## Analysis listener / uploading to a server

Expand Down

0 comments on commit 624da68

Please sign in to comment.