Skip to content

Commit

Permalink
Enable Leakcanary to track memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelekol committed Jun 5, 2024
1 parent 34aeb03 commit 0734269
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ dependencies {
// WorkManager RxJava2 support
implementation "androidx.work:work-rxjava2:$work_version"

def leakCanary = 'com.squareup.leakcanary:leakcanary-android:2.10'
def leakCanary = 'com.squareup.leakcanary:leakcanary-android:2.14'
appcenterdebugImplementation leakCanary
debugImplementation leakCanary

Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,7 @@
<!-- New themed gradient colors -->
<attr name="ColorGradientWhite" format="reference" />
<attr name="ColorWindowBackground" format="reference" />

<!-- Customise the class that is used to determine that the app is running in a test environment for LeakCanary -->
<string name="leak_canary_test_class_name">org.mockito.Mockito</string>
</resources>

0 comments on commit 0734269

Please sign in to comment.