Saturday, July 20, 2013

[android-developers] Re: Obfuscating Android Library Project

I haven't tried to obfuscate a jar file after it is made, but you can definitely obfuscate it when you build the library project. Just remember to put up rules as to not obfuscate all the public methods you'd like to use as the API for the library (which i guess you forgot).

On Friday, July 19, 2013 6:11:04 PM UTC+3, Felix Garcia Lainez wrote:
Hi,

The case is that we have an Android Library Project that generates a jar files, being included this jar file as input library of other Android Library project that we distribute to several clients. The case is that I would like to obfuscate the code of the first Library Project before sending to the clients, of course without breaking the behavior of the code. I have read that ProGuard obfuscation is done on the process of building .apk on Android applications, but didn't found a way to do the same on Android Library projects.

I have tried the idea shown in the following links, achieving the obfuscate the .jar generated by the first library, but after that it doesn't link correctly with a test Android app.


My question is if it possible to do what I want, what would be the best way, and how to do this.

Thanks!

--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment