Preserving entire libraries with the link.xml on Unity 5.1.2f1

(705860) - iOS/IL2CPP: The preserve attribute can now be used with the assembly element in a link.xml file to preserve all of the code in an assembly.

Based on this release note it appears it is possible to prevent stripping of entire assemblies without having to enumerate the individual types or namespaces.

While it does seem to work for iOS it does not seem to work for Android. Based on the release note above I’m guessing that Android doesn’t yet respect this new attribute? If that’s the case when will it be available?

Here is a sample of what I think the line should look like just in case my syntax is off.

As far as I can tell, this only works on IL2CPP. So unless you’re building on IL2CPP for Android, this won’t work for you, unfortunately. We’re working towards unifying the stripping pipelines so they’re similar, but it’s still a ways off.