LeakCanary is a memory leak detection library for Android and Java. LeakCanary
My project is based on android make file system, which relies on some android internal
This answer is probably too late for you, but it might help others. It is possible to add more projects exposed through gradle in a regular project as jar files.
Gradle is just a build tool. These java libraries that you need a still bunch of jar files at the end of the day. So what I do is the following ...
I have done this to import the whole or sometimes parts of the Google Play library, and many other libraries. In fact, it's a common practice for me.
Now, as Deepscorn mentionned it, I notice that LeakCanary has some res/ folders obviously containing Android resources ... and I badly need to include LeakCanary in Titanium SDK right now. So I am going to proceed the same way, but this time, I will add the resources in the titanium project's resources folder and see what happens.
Resources all end up being included and being available in the entire project. I am not away of scoping in android resources. You just to R... or ...getIdentifier(...) to get them.
You will also need to make sure that AndroidManifest entries are copied to an AndroidManifest file that will be compiled.
I will post my results here if I have time. In the mean time, anyone can give this a try and post some feedback.