[mono-android] proguard
Atsushi Eno
atsushieno at veritas-vos-liberabit.com
Sat Dec 22 19:57:10 UTC 2012
Not now, but actually it is one of my wishlist item to do. Jonp is right
on that it is not realistic to let the tool to eliminate unnecessary
classes automatically. But it might be still possible to have proguard
intercept the build and reduce whatever you specified (at your risk :-) .
Actually, I once actually tried to get it working but never successfully
done with it. I haven't really spent a lot of time, so it is not really
determined as impossible, but we still need to investigate what it could
be like.
Atsushi Eno
Jonathan Pryor wrote:
> On Dec 19, 2012, at 8:52 AM, Jeremy A. Kolb - ARA/NED <jkolb at ara.com> wrote:
>> Is there a way to use proguard to shrink jars that’s compatible with Xamarin?
> I'm not sure this will ever be possible. Proguard is conceptually similar to our linker, and as such it requires a "global" view of all Java bytecode so that it knows which types and members to preserve. The problem is that it can't have such a global view, because the actual use is in C# code, which Proguard can't investigate.
>
> This might be possible if we altered the build system so that the generated ACWs contained type+method references that mirrored the C# code, but any C# method can reference a Java type, not just ACWs, so even this idea would be incomplete. A "complete" solution would be a major undertaking, and we have many higher priority tasks to work on before even considering this...
>
> - Jon
>
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
>
>
More information about the Monodroid
mailing list