xamarin / AndroidX

AndroidX bindings for .NET for Android
MIT License
173 stars 42 forks source link

ViewPager2 & RecyclerView compatibility #781

Closed xpfr closed 9 months ago

xpfr commented 10 months ago

Android application type

Android for .NET (net6.0-android, etc.)

Affected platform version

VS 17.7.3

Description

Following Google's warning here: https://developer.android.com/jetpack/androidx/releases/recyclerview#version_131_3 Users of ViewPager2 must update to at least 1.1.0-beta02 when updating to this version of RecyclerView to avoid crashes.

There is a need to deliver ViewPager2 1.1.0-beta02 as AndroidX RecyclerView 1.3.1 is being delivered by Xamarin.

Using RecyclerView 1.3.1 with ViewPager2 1.0.0 results in issue being tracked here: https://issuetracker.google.com/issues/265347515

Steps to Reproduce

Update to latest package available for ViewPager2 (1.0.0.21)

Did you find any workaround?

No workaround except rolling back to RecyclerView 1.3.0

Relevant log output

No response

jpobst commented 10 months ago

We do not produce bindings for preview packages, only stable packages.

I would suggest not upgrading until Google has released their fix(es) in a stable package.

xpfr commented 10 months ago

I fully understand the point but it would be better then not to publish RecyclerView 1.3.1 to keep a pair of packages that is working.

moljac commented 9 months ago

@xprf You re right, but currently we have no means to detect previews in transitive maven dependencies. So prior to publishing (and updating 1st) I had no clue there is preview in dependency chain/tree...

closing this one