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

LeakCanary requires ProGuard settings #132

Closed
gfx opened this issue May 20, 2015 · 5 comments · Fixed by #134
Closed

LeakCanary requires ProGuard settings #132

gfx opened this issue May 20, 2015 · 5 comments · Fixed by #134

Comments

@gfx
Copy link

gfx commented May 20, 2015

LeakCanary crashes if it is working on minified APK, although it is not useful because stacktraces are not readable.

Anyway, I found the following settings seems to fix this problem, which should be mentioned in README:

-keep class org.eclipse.mat.** { *; }
-keep class com.squareup.leakcanary.** { *; }
chalup added a commit to chalup/leakcanary that referenced this issue May 20, 2015
chalup added a commit to chalup/leakcanary that referenced this issue May 20, 2015
@pyricau
Copy link
Member

pyricau commented May 20, 2015

@gfx
Copy link
Author

gfx commented May 21, 2015

Thanks! I'm looking forward to a new release 👍

@snowdream
Copy link

Good Job.:+1:

Yky pushed a commit to Yky/leakcanary that referenced this issue Feb 21, 2016
Pengchengxiang pushed a commit to XLibrarys/leakcanary that referenced this issue Jan 2, 2017
@Shipaaaa
Copy link

What about the rules for version 2.0?

@pyricau
Copy link
Member

pyricau commented May 20, 2019

@Shipaaaa Good point, I just filed #1354

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 a pull request may close this issue.

4 participants