Redeeming Android library source code with ProGuard

I am developing an Android library project with Eclipse that I want to unravel. So that my clients cannot easily redesign and read my code, I want to confuse the source code of my library. From the research that I did, I found that ProGuard seems to be considered the best for my use.

I saw a message from Eric Lafortune (creator of ProGuard) saying that ProGuard doesn’t work in library projects, and this is confusing to me. Why would it work with Android app projects, and not with Android Library Project? Maybe I'm just misunderstanding something ...

I read several posts and blogs (see this one ) on how to create a ProGuard configuration file with Ant to build a configuration. But it will certainly take me several hours to get it working if I manage to get it to work ... Not to mention that these posts and blogs may be outdated.

So, I would like to know if what I want is possible, and if I go in the right direction.

+2
source share
1 answer

You can obfuscate your library, but you need to add all your public APIs as exceptions so that Proguard does not touch it. This is a lot of work. Be prepared to experience a lot.

, , , . , , .

, , , .

0

Source: https://habr.com/ru/post/1614033/


All Articles