The official stable NuGet packages for AndroidX have been released.
Could you please upgrade the msal lib to use AndroidX?
More information from xamarin here:
https://devblogs.microsoft.com/xamarin/xamarin-forms-xamarin-essentials-go-androidx/
@jennyf19 has kindly listed some scenarios that we should test:
This seems to be the official recommendation from the Xamarin team. All Xamarin libraries should support this.
It is not clear to me if the upgrade won't break backwards compatibility and also how keeping this version (i.e. not upgrading to AndroidX) affects applications. @tranb3r - what is your opinion on this?
My opinion is that:
Anyway, I'd rather ask @redth and @jamesmontemagno for their opinion !
Our recommendation is to use AndroidX when compile mode is set to Android 10. All AndroidX packages use the migration so they can work side-by-side existing libraries that haven't updated. Mostly this will help when developers are using Xamarin.Forms and Xamarin.Essentials so eventually over time Support Libs will fade away.
Any progress ?
So this involves providing support for android10 framework. We are currently on android9. There are 2 ways of doing this:
PROS: backwards compatibility
CONS: difficult to maintain 2 different android versions (we'd need to run 2 sets of tests etc.)
PROS: easier to maintain
CONS: not backwards compatible
I don't think this is will be done in the next 3 months as we're locking down which new features we commit to.
CC @henrik-me @jmprieur
I have put in the PR for this for Option 1. It will need some test heads to be generated for Android 10, which is think wouldn't be too hard as they are just shim head projects.
Look at the SDK I think an issue will arise if a developer targets Android 10 today using the AndroidX migration package. It will upgrade your library automatically at build time to use AndroidX, however there is a hardcoded string for the CustomTabsService. This will cause a failure point as there isn't a possible way for the migrator to auto update it.
@redth and @mattleibow to validate my work here
@neha-bhargava tested this and it looks like the system browser does not execute. We need to investigate and fix this. It is not ready to merge.
Is it that Chrome Custom Tabs doesn't open? or an embedded browser?
Should be fixed up, basically ADAL does a check to see if anything can open a custom tab and if not then don't do anything. We have to use the older check.
Chrome Custom tabs doesn't open.
Try my latest PR updates.
I merged the PR and added @jennyf19's tests to the issue description.
Resolved in 4.15
Most helpful comment
I have put in the PR for this for Option 1. It will need some test heads to be generated for Android 10, which is think wouldn't be too hard as they are just shim head projects.
Look at the SDK I think an issue will arise if a developer targets Android 10 today using the AndroidX migration package. It will upgrade your library automatically at build time to use AndroidX, however there is a hardcoded string for the CustomTabsService. This will cause a failure point as there isn't a possible way for the migrator to auto update it.
@redth and @mattleibow to validate my work here