Skip to content
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

[android] Update to latest AndroidX packages with better Trimmable support. #5889

Merged
merged 1 commit into from
Apr 12, 2022

Conversation

jpobst
Copy link
Contributor

@jpobst jpobst commented Apr 7, 2022

Context: dotnet/android-libraries#519
Context: dotnet/android-libraries#520

The AndroidX packages that MAUI currently uses all support trimming, however some of their new dependencies did not, such as Xamarin.Kotlin.StdLib. This caused a size regression on Android because these new libraries were not being trimmed.

AndroidX dependencies have been updated with trimming support, and new packages have been released that update the dependency tree.

This PR updates MAUI to use these new AndroidX versions.

@Redth
Copy link
Member

Redth commented Apr 7, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@jpobst
Copy link
Contributor Author

jpobst commented Apr 7, 2022

@eerhardt This should fix most (?) of the MAUI Android size regression. If you are seeing any other untrimmed assemblies, please let me know!

@Eilon Eilon added the area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions label Apr 7, 2022
@rmarinho
Copy link
Member

rmarinho commented Apr 8, 2022

Does AndroidX pushes to maestro? couldn't we do this bumps via maestro?

@jpobst
Copy link
Contributor Author

jpobst commented Apr 8, 2022

I don't know what maestro is, so I guess not. 😁

@moljac
Copy link
Contributor

moljac commented Apr 11, 2022

@jonathanpeppers
Copy link
Member

AndroidX is always coming from NuGet.org, so the release pipeline that pushes those would need to send those builds to Maestro.

@rmarinho is dependabot setup for dotnet/maui? That might actually be simpler for this case.

@jonathanpeppers
Copy link
Member

Can we merge this? It fixes a ~1.5MB app size regression.

@rmarinho rmarinho merged commit 9b890e2 into dotnet:main Apr 12, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2023
@samhouts samhouts added the fixed-in-6.0.300-rc.2 Look for this fix in 6.0.300-rc.2! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions fixed-in-6.0.300-rc.2 Look for this fix in 6.0.300-rc.2!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants