Can I obfuscate SDK using proguard

I was try to obfuscate SDKs in Proguard but the only option to build was in apk how do I obfuscate an sdk using proguard

Dear @Shivam,

First of all, thanks for asking the question and welcome to the Guardsquare Community!

It definitely is possible to use ProGuard in an SDK project. We have an example configuration file in our manual for a typical library project:

You will see that the first two lines contain:

-injars       in.jar
-outjars      out.jar

Just like most of the other lines, you will have to change these to for example:

-injars yourSDK.aar
-outjars youroutputSDK.aar

Hope this helps.

Kind regards,