Is it possible to obfuscate a library without depending on minifyEnabled on
end-point? I have a library that I need to obfuscate all private methods,
parameters etc. I've used the example proguard rules in the sdk
(sdk/tools/proguard/examples/library..) and also added
consumerProguardFiles 'proguard-rules-lib.txt'
in my gradle without the minifyEnabled. I've read Eric Lafortune's posts
about the topic and I realise that this overrides your end-point proguard
rules so that in either way, your library gets obfuscated. But the problem
is that I need to distribute the library as a standalone product without
depending on client obfuscation. Is there a way that I can achieve that?
A good example is the play service ad framework. Here's the decompiled by
Android Studio BaseAdView class in com.google.android.gms.adspackage.
public BaseAdView(Context var1, int var2) {
super(var1);
this.zzaih = new zzae(this, zzg(var2));
}
public BaseAdView(Context var1, AttributeSet var2, int var3) {
super(var1, var2);
this.zzaih = new zzae(this, var2, false, zzg(var3));
}
public BaseAdView(Context var1, AttributeSet var2, int var3, int var4) {
super(var1, var2, var3);
this.zzaih = new zzae(this, var2, false, zzg(var4));
}
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/c109da84-b2d9-4369-adc6-94256b4e71ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.