Skip to content

[android] 20250414 net10.0 ecosystem updates #29871

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

Merged
merged 2 commits into from
Jun 10, 2025

Conversation

jonathanpeppers
Copy link
Member

Based on: #28997

We shipped new dotnet/android-libraries components that multi-target net8.0-android;net10.0-android.

.NET MAUI should start using them in .NET 10.

I also took the time to remove duplicate Android version numbers, like:

--<PackageReference Include="Xamarin.AndroidX.Activity" Version="1.9.3.2" />
--<PackageReference Include="Xamarin.AndroidX.Browser" Version="1.8.0.9" />
--<PackageReference Include="Xamarin.AndroidX.Security.SecurityCrypto" Version="1.1.0.2-alpha06" />
--<PackageReference Include="Xamarin.Google.Crypto.Tink.Android" Version="1.17.0.1" />
++<PackageReference Include="Xamarin.AndroidX.Activity" />
++<PackageReference Include="Xamarin.AndroidX.Browser" />
++<PackageReference Include="Xamarin.AndroidX.Security.SecurityCrypto" />
++<PackageReference Include="Xamarin.Google.Crypto.Tink.Android" />

These numbers should be tracked in a single location, AndroidX.targets, so we don't have to touch as many files in the future.

I sorted AndroidX.targets to make it easier to read, so here is a diff of the changes:

++<PackageReference Update="Xamarin.AndroidX.Activity" Version="1.10.1.2" />
--<PackageReference Update="Xamarin.AndroidX.AppCompat.AppCompatResources" Version="1.7.0.6" />
++<PackageReference Update="Xamarin.AndroidX.AppCompat.AppCompatResources" Version="1.7.0.7" />
--<PackageReference Update="Xamarin.AndroidX.Browser" Version="1.8.0.9" />
++<PackageReference Update="Xamarin.AndroidX.Browser" Version="1.8.0.10" />
++<PackageReference Update="Xamarin.AndroidX.DynamicAnimation" Version="1.1.0.2" />
--<PackageReference Update="Xamarin.AndroidX.Lifecycle.LiveData" Version="2.8.7.3" />
++<PackageReference Update="Xamarin.AndroidX.Lifecycle.LiveData" Version="2.8.7.4" />
--<PackageReference Update="Xamarin.AndroidX.MediaRouter" Version="1.7.0.9" />
++<PackageReference Update="Xamarin.AndroidX.MediaRouter" Version="1.7.0.10" />
--<PackageReference Update="Xamarin.AndroidX.Navigation.Common" Version="2.8.9.1" />
++<PackageReference Update="Xamarin.AndroidX.Navigation.Common" Version="2.8.9.2" />
--<PackageReference Update="Xamarin.AndroidX.Navigation.Fragment" Version="2.8.9.1" />
++<PackageReference Update="Xamarin.AndroidX.Navigation.Fragment" Version="2.8.9.2" />
--<PackageReference Update="Xamarin.AndroidX.Navigation.Runtime" Version="2.8.9.1" />
++<PackageReference Update="Xamarin.AndroidX.Navigation.Runtime" Version="2.8.9.2" />
--<PackageReference Update="Xamarin.AndroidX.Navigation.UI" Version="2.8.9.1" />
++<PackageReference Update="Xamarin.AndroidX.Navigation.UI" Version="2.8.9.2" />
--<PackageReference Update="Xamarin.AndroidX.Palette" Version="1.0.0.32" />
++<PackageReference Update="Xamarin.AndroidX.Palette" Version="1.0.0.33" />
--<PackageReference Update="Xamarin.AndroidX.RecyclerView" Version="1.4.0.1" />
++<PackageReference Update="Xamarin.AndroidX.RecyclerView" Version="1.4.0.2" />
++<PackageReference Update="Xamarin.AndroidX.Security.SecurityCrypto" Version="1.1.0.4-alpha07" />
--<PackageReference Update="Xamarin.AndroidX.SwipeRefreshLayout" Version="1.1.0.27" />
++<PackageReference Update="Xamarin.AndroidX.SwipeRefreshLayout" Version="1.1.0.28" />
++<PackageReference Update="Xamarin.AndroidX.Transition" Version="1.5.1.6" />
--<PackageReference Update="Xamarin.AndroidX.Window.WindowJava" Version="1.3.0.6" />
++<PackageReference Update="Xamarin.AndroidX.Window.WindowJava" Version="1.3.0.7" />
++<PackageReference Update="Xamarin.Firebase.AppIndexing" Version="120.0.0.25" />
--<PackageReference Update="Xamarin.Google.Android.Material" Version="1.12.0.3" />
++<PackageReference Update="Xamarin.Google.Android.Material" Version="1.12.0.4" />
++<PackageReference Update="Xamarin.Google.Crypto.Tink.Android" Version="1.17.0.2" />

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Based on: #28997

We shipped new dotnet/android-libraries components that multi-target
`net8.0-android;net10.0-android`.

.NET MAUI should start using them in .NET 10.

I also took the time to remove duplicate Android version numbers, like:

```diff
--<PackageReference Include="Xamarin.AndroidX.Activity" Version="1.9.3.2" />
--<PackageReference Include="Xamarin.AndroidX.Browser" Version="1.8.0.9" />
--<PackageReference Include="Xamarin.AndroidX.Security.SecurityCrypto" Version="1.1.0.2-alpha06" />
--<PackageReference Include="Xamarin.Google.Crypto.Tink.Android" Version="1.17.0.1" />
++<PackageReference Include="Xamarin.AndroidX.Activity" />
++<PackageReference Include="Xamarin.AndroidX.Browser" />
++<PackageReference Include="Xamarin.AndroidX.Security.SecurityCrypto" />
++<PackageReference Include="Xamarin.Google.Crypto.Tink.Android" />
```

These numbers should be tracked in a single location,
`AndroidX.targets`, so we don't have to touch as many files in the
future.

I sorted `AndroidX.targets` to make it easier to read, so here is a
diff of the changes:

```diff
++<PackageReference Update="Xamarin.AndroidX.Activity" Version="1.10.1.2" />
--<PackageReference Update="Xamarin.AndroidX.AppCompat.AppCompatResources" Version="1.7.0.6" />
++<PackageReference Update="Xamarin.AndroidX.AppCompat.AppCompatResources" Version="1.7.0.7" />
--<PackageReference Update="Xamarin.AndroidX.Browser" Version="1.8.0.9" />
++<PackageReference Update="Xamarin.AndroidX.Browser" Version="1.8.0.10" />
++<PackageReference Update="Xamarin.AndroidX.DynamicAnimation" Version="1.1.0.2" />
--<PackageReference Update="Xamarin.AndroidX.Lifecycle.LiveData" Version="2.8.7.3" />
++<PackageReference Update="Xamarin.AndroidX.Lifecycle.LiveData" Version="2.8.7.4" />
--<PackageReference Update="Xamarin.AndroidX.MediaRouter" Version="1.7.0.9" />
++<PackageReference Update="Xamarin.AndroidX.MediaRouter" Version="1.7.0.10" />
--<PackageReference Update="Xamarin.AndroidX.Navigation.Common" Version="2.8.9.1" />
++<PackageReference Update="Xamarin.AndroidX.Navigation.Common" Version="2.8.9.2" />
--<PackageReference Update="Xamarin.AndroidX.Navigation.Fragment" Version="2.8.9.1" />
++<PackageReference Update="Xamarin.AndroidX.Navigation.Fragment" Version="2.8.9.2" />
--<PackageReference Update="Xamarin.AndroidX.Navigation.Runtime" Version="2.8.9.1" />
++<PackageReference Update="Xamarin.AndroidX.Navigation.Runtime" Version="2.8.9.2" />
--<PackageReference Update="Xamarin.AndroidX.Navigation.UI" Version="2.8.9.1" />
++<PackageReference Update="Xamarin.AndroidX.Navigation.UI" Version="2.8.9.2" />
--<PackageReference Update="Xamarin.AndroidX.Palette" Version="1.0.0.32" />
++<PackageReference Update="Xamarin.AndroidX.Palette" Version="1.0.0.33" />
--<PackageReference Update="Xamarin.AndroidX.RecyclerView" Version="1.4.0.1" />
++<PackageReference Update="Xamarin.AndroidX.RecyclerView" Version="1.4.0.2" />
++<PackageReference Update="Xamarin.AndroidX.Security.SecurityCrypto" Version="1.1.0.4-alpha07" />
--<PackageReference Update="Xamarin.AndroidX.SwipeRefreshLayout" Version="1.1.0.27" />
++<PackageReference Update="Xamarin.AndroidX.SwipeRefreshLayout" Version="1.1.0.28" />
++<PackageReference Update="Xamarin.AndroidX.Transition" Version="1.5.1.6" />
--<PackageReference Update="Xamarin.AndroidX.Window.WindowJava" Version="1.3.0.6" />
++<PackageReference Update="Xamarin.AndroidX.Window.WindowJava" Version="1.3.0.7" />
++<PackageReference Update="Xamarin.Firebase.AppIndexing" Version="120.0.0.25" />
--<PackageReference Update="Xamarin.Google.Android.Material" Version="1.12.0.3" />
++<PackageReference Update="Xamarin.Google.Android.Material" Version="1.12.0.4" />
++<PackageReference Update="Xamarin.Google.Crypto.Tink.Android" Version="1.17.0.2" />
```

Co-authored-by: moljac <[email protected]>
@jonathanpeppers jonathanpeppers changed the title [android] 20250414 net10.0 ecosytem updates [android] 20250414 net10.0 ecosystem updates Jun 6, 2025
@jonathanpeppers jonathanpeppers marked this pull request as ready for review June 9, 2025 16:20
@Copilot Copilot AI review requested due to automatic review settings June 9, 2025 16:20
@jonathanpeppers jonathanpeppers requested a review from a team as a code owner June 9, 2025 16:20
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR centralizes Android library version management by removing explicit version attributes from individual project files and consolidating them in AndroidX.targets, while also updating to the latest net10.0-android multi-targeted libraries.

  • Removed hard-coded version numbers from multiple .csproj files to rely on AndroidX.targets.
  • Bumped AndroidX, Glide, SecurityCrypto, Tink, and GooglePlayServicesMaps versions in eng/Versions.props and AndroidX.targets.
  • Added new AndroidX package references (DynamicAnimation, Transition) where needed.

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/Essentials/src/Essentials.csproj Removed explicit version attributes for AndroidX and Tink packages
src/Core/src/Core.csproj Dropped version attributes for various AndroidX and Material libs
src/Core/maps/src/Maps.csproj Added Xamarin.AndroidX.Transition reference
src/Controls/src/Core/Controls.Core.csproj Added Xamarin.AndroidX.DynamicAnimation reference
src/Controls/Foldable/src/Controls.Foldable.csproj Removed version attributes for AndroidX and Material libs
src/Compatibility/Maps/src/Android/Compatibility.Maps.Android.csproj Consolidated Maps and AndroidX versioning via props
src/Compatibility/Android.AppLinks/src/Compatibility.Android.AppLinks.csproj Removed explicit version attributes for Firebase and LiveData
eng/Versions.props Bumped versions for Glide, SecurityCrypto, Tink, GooglePlayServicesMaps
eng/AndroidX.targets Sorted and updated AndroidX package versions

@jonathanpeppers jonathanpeppers merged commit adfe0ec into net10.0 Jun 10, 2025
129 checks passed
@jonathanpeppers jonathanpeppers deleted the dev/peppers/android-libraries-june-2025 branch June 10, 2025 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants