-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 the latest AndroidX packages #5588
Conversation
Context: dotnet#5305 Fixes: dotnet/android-libraries#509 Update to the latest AndroidX packages, so we also use the latest Xamarin.Google.Guava.ListenableFuture This currently has build failures: src\Core\src\Platform\Android\Navigation\StackNavigationManager.cs(145,41): error CS1061: 'NavController' does not contain a definition for 'BackStack' and no accessible extension method 'BackStack' accepting a first argument of type 'NavController' could be found (are you missing a using directive or an assembly reference?) src\Core\src\Platform\Android\Navigation\StackNavigationManager.cs(188,48): error CS1061: 'NavController' does not contain a definition for 'BackStack' and no accessible extension method 'BackStack' accepting a first argument of type 'NavController' could be found (are you missing a using directive or an assembly reference?) src\Core\src\Platform\Android\Navigation\StackNavigationManager.cs(245,51): error CS1061: 'NavController' does not contain a definition for 'BackStack' and no accessible extension method 'BackStack' accepting a first argument of type 'NavController' could be found (are you missing a using directive or an assembly reference?) Looking at: ~\.nuget\packages\xamarin.androidx.navigation.runtime\2.4.1\lib\net6.0-android31.0\Xamarin.AndroidX.Navigation.Runtime.dll I can't find: [Register("androidx/navigation/NavController", DoNotGenerateAcw = true)] public class NavController : Object { public unsafe virtual IDeque BackStack { [Register("getBackStack", "()Ljava/util/Deque;", "GetGetBackStackHandler")] get; But it's not documented here either: https://developer.android.com/reference/androidx/navigation/NavController
It does appear that it has been removed in 2.4+. I think their:
essentially means "this is not public API".
We likely should not be binding stuff marked this way, but it's not something our tools have support for. |
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.
version bumps - LGTM
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
var iterator = NavHost.NavController.BackStack.Iterator(); | ||
var iterator = NavHost.NavController.BackQueue.Iterator(); |
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.
LOL!
|
I'm having trouble reproducing this problem locally... I get no warnings or errors with Trying |
Ok, I see the same test failures on other PRs. I had retried them a few times. |
Context: #5305
Fixes: dotnet/android-libraries#509
Update to the latest AndroidX packages, so we also use the latest
Xamarin.Google.Guava.ListenableFuture
This currently has build failures:
Looking at:
I can't find:
But it's not documented here either:
https://developer.android.com/reference/androidx/navigation/NavController