-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[DO NOT MERGE][net10.0] 20250414 net10.0 ecosytem updates #28997
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
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Copilot wasn't able to review any files in this pull request.
Files not reviewed (10)
- NuGet.config: Language not supported
- eng/AndroidX.targets: Language not supported
- eng/Versions.props: Language not supported
- eng/common/internal/NuGet.config: Language not supported
- eng/common/sdl/NuGet.config: Language not supported
- src/Compatibility/Android.AppLinks/src/Compatibility.Android.AppLinks.csproj: Language not supported
- src/Compatibility/Maps/src/Android/Compatibility.Maps.Android.csproj: Language not supported
- src/Controls/Foldable/src/Controls.Foldable.csproj: Language not supported
- src/Core/src/Core.csproj: Language not supported
- src/Essentials/src/Essentials.csproj: Language not supported
…//github.com/dotnet/maui into dev/moljac/20250414-net10.0-ecosytem-updates
/rebase |
Error to be fixed in metadata:
|
src/Controls/src/Core/Compatibility/Handlers/Shell/Android/ShellFlyoutTemplatedContentRenderer.cs(583,15): error RS0036: Symbol 'OnOffsetChanged' is missing nullability annotations in the declared API (https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md)
src/Controls/src/Core/PublicAPI/net-android/PublicAPI.Unshipped.txt(75,1): error RS0025: The symbol '~Microsoft.Maui.Controls.Platform.Compatibility.ShellFlyoutTemplatedContentRenderer.OnOffsetChanged(Google.Android.Material.AppBar.AppBarLayout? appBarLayout, int verticalOffset) -> void' appears more than once in the public API files (https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md)
src/Controls/tests/DeviceTests/Elements/Button/ButtonTests.Android.cs(100,20): error CS8602: Dereference of a possibly null reference.
jonathanpeppers
added a commit
to dotnet/android-libraries
that referenced
this pull request
May 23, 2025
Context: dotnet/maui#28997 Context: #1148 .NET 10 binding assemblies have changes to generate better code to support trimming and NativeAOT scenarios. We want to ship a copy of .NET 10 assemblies alongside their `net8.0-android` counterparts. To verify API compatibility between the `net8.0-android` and `net10.0-android` assemblies you can run: dotnet tool install --global Microsoft.DotNet.ApiCompat.Tool Get-Item *.nupkg | ForEach-Object { Write-Output "apicompat package $_" ; & apicompat package $_.Name 2>&1 | ForEach-Object { "$_" } } > apidiff.txt At first, we saw ~452 errors, but all appear to be due to changes toward "hiding" internal Kotlin members in .NET 9: * dotnet/java-interop@06214ff General list of changes: * Update `_PackageLevelCustomizations.cshtml` * metadata + Additions cleanup for net10.0 * `nuget.config` from dotnet/android added * <CheckEolWorkloads>false</CheckEolWorkloads> needed to work around some warnings and errors * Create nuget-install.cake * Provision `platforms/android-34` * `Update Metadata.xml` obj/Controls.DeviceTests/Debug/net10.0-android/android/src/mono/androidx/recyclerview/widget/RecyclerView_ItemAnimator_ItemAnimatorListenerImplementor.java(8,57): javac error JAVAC0000: error: ItemAnimatorListener is not public in ItemAnimator; cannot be accessed from outside package * [build] remove `Install extra Android SDK packages` * `$(AndroidManifestType)=GoogleV2` Warning : Dependency `platforms;android-36` should have been installed but could not be resolved. You can attempt to install it with... * Restore BaseOnOffsetChangedListener metadata.xml javac.exe error JAVAC0000: error: BaseOnOffsetChangedListener cannot be inherited with different arguments: <com.google.android.material.appbar.AppBarLayout> and <> * Fix javac error for `ActivityChooserModel` Xamarin.Android.Javac.targets(161,5): error XAJVC0000: C:\a\_work\1\s\artifacts\obj\Benchmarks.Droid\Release\net10.0-android\android-arm64\android\src\mono\androidx\appcompat\widget\ActivityChooserModel_OnChooseActivityListenerImplementor.java:8: error: package androidx.appcompat.widget.ActivityChooserModel does not exist Xamarin.Android.Javac.targets(161,5): error XAJVC0000: androidx.appcompat.widget.ActivityChooserModel.OnChooseActivityListener Xamarin.Android.Javac.targets(161,5): error XAJVC0000: ^ Co-authored-by: Peter Collins <[email protected]> Co-authored-by: Jonathan Peppers <[email protected]>
jonathanpeppers
added a commit
that referenced
this pull request
Jun 6, 2025
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
added a commit
that referenced
this pull request
Jun 10, 2025
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]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Change
Android Ecosystem updates
Test of new packages for
net10.0
andnet8.0
from:https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=11405413&view=results
Nuget feed is needed to replace:
or:
in:
https://github.com/dotnet/maui/pull/28997/files#diff-9c5952957709545aad811b400e7e516eebade1e44fc4fbc23203403ffeb92c34R12
https://github.com/dotnet/maui/pull/28997/files#diff-9043b7cbd46d4c166caa882ee5dcd4df93afa7ae708084e4b87dfd69a8a18332R5
https://github.com/dotnet/maui/pull/28997/files#diff-a3fe4195a9d68f36997476b59feb7397e4fcc8fe0993b7174b2fddad7fd96a8eR8