Obfuscate the third part of libs inside an aar file

We have an Android project that we want to distribute as a .aar file (commercial sdk). We have a dependency on a paid third part library, the jar file, which is located inside the libs folder of our Android Library project. When we build aar, we can open it up and we can see that it has a libs folder with this third part dependency container, just like we imported.

I want to know how we can obfuscate this library so that other people cannot just grab it from our aar and use it. I've seen a plugin called shadow for gradle https://github.com/johnrengelman/shadow but it only seems to work for jars.

Any ideas?

+3


source to share





All Articles