square/leakcanary ? reverse-engineered prompt

Reverse engineered prompt

Build me an Android library that helps developers find memory leaks in their app. I want it to watch app objects, detect when something is being kept in memory too long, and give a clear report that shows what is leaking and what is holding on to it.

Please make it feel polished and easy to use in a real Android project, with a simple setup flow and a small sample app or example integration so I can see how it works. If you need to check current Android or Kotlin docs online while implementing, go ahead.

I also want the project organized so the core leak detection logic is separate from any UI or app facing pieces, and the code should be ready for a production Android library. Include useful tests and clear documentation so someone can understand how to plug it into their app and read the leak results.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab