Skip to content

Commit b3fd1c2

Browse files
breaking: remove deprecated Android.Preferences APIs and modernize to AndroidX (#4119)
Co-authored-by: Glenn Watson <5834289+glennawatson@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 939cd4e commit b3fd1c2

File tree

98 files changed

+38
-2744
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+38
-2744
lines changed

README.md

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,7 @@ Install the following packages to start building your own ReactiveUI app. <b>Not
3232
| WinUI | [ReactiveUI.WinUI][WinUiDoc] | [![WinUiBadge]][WinUi] |
3333
| MAUI | [ReactiveUI.Maui][MauiDoc] | [![MauiBadge]][Maui] |
3434
| Windows Forms | [ReactiveUI.WinForms][WinDoc] | [![WinBadge]][Win] |
35-
| Xamarin.Forms | [ReactiveUI.XamForms][XamDoc] | [![XamBadge]][Xam] |
36-
| Xamarin.Essentials| [ReactiveUI][XamDoc] | [![CoreBadge]][Core] |
37-
| AndroidX (Xamarin)| [ReactiveUI.AndroidX][DroDoc] | [![DroXBadge]][DroX] |
38-
| Xamarin.Android | [ReactiveUI.AndroidSupport][DroDoc] | [![DroBadge]][Dro] |
39-
| Xamarin.iOS | [ReactiveUI][IosDoc] | [![CoreBadge]][Core] |
40-
| Xamarin.Mac | [ReactiveUI][MacDoc] | [![CoreBadge]][Core] |
35+
| AndroidX | [ReactiveUI.AndroidX][DroDoc] | [![DroXBadge]][DroX] |
4136
| Tizen | [ReactiveUI][CoreDoc] | [![CoreBadge]][Core] |
4237
| Blazor | [ReactiveUI.Blazor][BlazDoc] | [![BlazBadge]][Blaz] |
4338
| Platform Uno | [ReactiveUI.Uno][UnoDoc] | [![UnoBadge]][Uno] |
@@ -78,19 +73,11 @@ Install the following packages to start building your own ReactiveUI app. <b>Not
7873
[WinBadge]: https://img.shields.io/nuget/v/ReactiveUI.WinForms.svg
7974
[WinDoc]: https://reactiveui.net/docs/getting-started/installation/windows-forms
8075

81-
[Xam]: https://www.nuget.org/packages/ReactiveUI.XamForms/
82-
[XamEvents]: https://www.nuget.org/packages/ReactiveUI.Events.XamForms/
83-
[XamBadge]: https://img.shields.io/nuget/v/ReactiveUI.XamForms.svg
84-
[XamDoc]: https://reactiveui.net/docs/getting-started/installation/xamarin-forms
85-
[Dro]: https://www.nuget.org/packages/ReactiveUI.AndroidSupport/
86-
[DroBadge]: https://img.shields.io/nuget/v/ReactiveUI.AndroidSupport.svg
87-
[DroDoc]: https://reactiveui.net/docs/getting-started/installation/xamarin-android
76+
8877

8978
[DroX]: https://www.nuget.org/packages/ReactiveUI.AndroidX/
9079
[DroXBadge]: https://img.shields.io/nuget/v/ReactiveUI.AndroidX.svg
91-
92-
[MacDoc]: https://reactiveui.net/docs/getting-started/installation/xamarin-mac
93-
[IosDoc]: https://reactiveui.net/docs/getting-started/installation/xamarin-ios
80+
[DroDoc]: https://reactiveui.net/docs/getting-started/installation/
9481

9582
[Uno]: https://www.nuget.org/packages/ReactiveUI.Uno/
9683
[UnoBadge]: https://img.shields.io/nuget/v/ReactiveUI.Uno.svg
@@ -118,6 +105,26 @@ The core team members, ReactiveUI contributors and contributors in the ecosystem
118105

119106
[Become a sponsor](https://github.com/sponsors/reactivemarbles).
120107

108+
## Migration from Xamarin and .NET 8 MAUI
109+
110+
### Xamarin Users
111+
As of May 2024, Microsoft ended support for Xamarin per their [support policy](https://docs.microsoft.com/dotnet/maui/what-is-maui#xamarin-retirement). ReactiveUI has removed support for legacy Xamarin platforms in favor of modern .NET MAUI. For Xamarin projects:
112+
113+
- **Xamarin.Forms** → Migrate to **MAUI** and use `ReactiveUI.Maui`
114+
- **Xamarin.Android** → Migrate to **MAUI Android** or use `ReactiveUI.AndroidX` for native Android
115+
- **Xamarin.iOS/Mac** → Migrate to **MAUI iOS/Mac Catalyst**
116+
117+
For guidance on migrating from Xamarin to MAUI, see the [official migration documentation](https://docs.microsoft.com/dotnet/maui/migration/).
118+
119+
### MAUI .NET 8 Users
120+
ReactiveUI now requires .NET 9 for MAUI platforms. Update your projects to:
121+
- `net9.0-android` (was `net8.0-android`)
122+
- `net9.0-ios` (was `net8.0-ios`)
123+
- `net9.0-maccatalyst` (was `net8.0-maccatalyst`)
124+
- `net9.0-windows` (was `net8.0-windows`)
125+
126+
Note: Non-MAUI `net8.0` library targets remain fully supported.
127+
121128
This is how we use the donations:
122129

123130
* Allow the core team to work on ReactiveUI
@@ -236,4 +243,4 @@ The following have been core team members in the past.
236243

237244
## .NET Foundation
238245

239-
ReactiveUI is part of the [.NET Foundation](https://www.dotnetfoundation.org/). Other projects that are associated with the foundation include the Microsoft .NET Compiler Platform ("Roslyn") as well as the Microsoft ASP.NET family of projects, Microsoft .NET Core & Xamarin Forms.
246+
ReactiveUI is part of the [.NET Foundation](https://www.dotnetfoundation.org/). Other projects that are associated with the foundation include the Microsoft .NET Compiler Platform ("Roslyn") as well as the Microsoft ASP.NET family of projects, and Microsoft .NET Core.

integrationtests/IntegrationTests.All.sln

Lines changed: 2 additions & 323 deletions
Large diffs are not rendered by default.

integrationtests/IntegrationTests.XamarinForms.Android/Assets/AboutAssets.txt

Lines changed: 0 additions & 19 deletions
This file was deleted.

integrationtests/IntegrationTests.XamarinForms.Android/IntegrationTests.XamarinForms.Android.csproj

Lines changed: 0 additions & 106 deletions
This file was deleted.

integrationtests/IntegrationTests.XamarinForms.Android/MainActivity.cs

Lines changed: 0 additions & 33 deletions
This file was deleted.

integrationtests/IntegrationTests.XamarinForms.Android/Properties/AndroidManifest.xml

Lines changed: 0 additions & 5 deletions
This file was deleted.

integrationtests/IntegrationTests.XamarinForms.Android/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 26 deletions
This file was deleted.

integrationtests/IntegrationTests.XamarinForms.Android/Resources/AboutResources.txt

Lines changed: 0 additions & 50 deletions
This file was deleted.

integrationtests/IntegrationTests.XamarinForms.Android/Resources/layout/Tabbar.axml

Lines changed: 0 additions & 11 deletions
This file was deleted.

integrationtests/IntegrationTests.XamarinForms.Android/Resources/layout/Toolbar.axml

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)