-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Xamarin.Android.Build.Tasks] remove %(TrimMode)=link
metadata
#8624
Conversation
To keep app sizes down in the .NET 6 timeframe, we special-cased existing AndroidX and GPS packages so they were always trimmed. Modern packages mark themselves trimmable with `$(IsTrimmable)` or the assembly-level attribute. For nearly 2 years, we've applied the appropriate trimming setting in these packages: * dotnet/android-libraries#520 * xamarin/GooglePlayServicesComponents#597 We should be able to remove this now in .NET 9.
As anticipated:
Going to update various tests to latest Xamarin.Forms 5.0.0.2622. |
"Size": 3502580 | ||
"Size": 5908848 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Xamarin.Forms 5 has a lot newer AndroidX libraries... Which is apparently a lot more Java code.
"res/animator/linear_indeterminate_line2_tail_interpolator.xml": { | ||
"Size": 400 | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lots of new resources.
"assemblies/Xamarin.AndroidX.RecyclerView.dll": { | ||
"Size": 89997 | ||
"Size": 93990 | ||
}, | ||
"assemblies/Xamarin.AndroidX.SavedState.dll": { | ||
"Size": 4909 | ||
"Size": 4969 | ||
}, | ||
"assemblies/Xamarin.AndroidX.SwipeRefreshLayout.dll": { | ||
"Size": 10575 | ||
"Size": 13974 | ||
}, | ||
"assemblies/Xamarin.AndroidX.ViewPager.dll": { | ||
"Size": 18594 | ||
"Size": 19073 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall not seeing any Xamarin.AndroidX.*.dll
files grow, which is good. 👍
"resources.arsc": { | ||
"Size": 325240 | ||
"Size": 777972 | ||
} | ||
}, | ||
"PackageSize": 7941134 | ||
"PackageSize": 9593384 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The app grew quite a bit going from Xamarin.Forms 4.7 -> Xamarin.Forms 5.
* main: [Xamarin.Android.Build.Tasks] remove `%(TrimMode)=link` metadata (#8624)
To keep app sizes down in the .NET 6 timeframe, we special-cased existing AndroidX and GPS packages so they were always trimmed.
Modern packages mark themselves trimmable with
$(IsTrimmable)
or the assembly-level attribute.For nearly 2 years, we've applied the appropriate trimming setting in these packages:
We should be able to remove this now in .NET 9.