Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving LeakDirectoryProvider to LeakCanaryInternals #1001

Merged
merged 1 commit into from
Jun 16, 2018

Conversation

pyricau
Copy link
Member

@pyricau pyricau commented Jun 16, 2018

On top of the AndroidHeapDumper, we also need to access LeakDirectoryProvider from DisplayLeakActivity. We'll soon need to also access it from the UI test run listener. We can't keep the instance as a field of the RefWatcher singleton because DisplayLeakActivity lives in a different process.

This change renames LeakCanary.setDisplayLeakActivityDirectoryProvider to LeakCanary.setLeakDirectoryProvider and makes sure we use that global LeakDirectoryProvider everywhere.

On top of the AndroidHeapDumper, we also need to access LeakDirectoryProvider from DisplayLeakActivity. We'll soon need to also access it from the UI test run listener. We can't keep the instance as a field of the RefWatcher singleton because DisplayLeakActivity lives in a different process.

This change renames LeakCanary.setDisplayLeakActivityDirectoryProvider to LeakCanary.setLeakDirectoryProvider and makes sure we use that global LeakDirectoryProvider everywhere.
@pyricau pyricau merged commit 330ffc6 into master Jun 16, 2018
@pyricau pyricau deleted the py/leak_directory_provider branch June 16, 2018 18:20
@pyricau pyricau added this to the 1.6 milestone Jun 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants