Skip to content
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

[Spec] Remove Application.Properties #22

Closed
Tracked by #22
hartez opened this issue May 18, 2020 · 1 comment
Closed
Tracked by #22

[Spec] Remove Application.Properties #22

hartez opened this issue May 18, 2020 · 1 comment

Comments

@hartez
Copy link
Contributor

hartez commented May 18, 2020

Description

Remove the Application.Properties key/value store from Forms in favor of the Essentials Preferences key/value store.

Forms currently provides a rudimentary key/value store using Application.Properties.

Essentials provides a similar but more robust option with Preferences. Additionally, Essentials includes a Secure Storage option.

We should remove the Forms Application.Properties feature in favor of the Essentials version. See also #19.

API

Remove:

System.Collections.Generic.IDictionary<string,object> Xamarin.Forms.Application.Properties { get; }

Xamarin.Forms.Internals.IDeserializer

Xamarin.Forms.Platform.UWP.WindowsSerializer

Xamarin.Forms.Platform.iOS.Deserializer

Xamarin.Forms.Platform.Android.Deserializer

Backward Compatibility

Users of the Properties feature will need to modify their code to use the Preferences feature.

Difficulty : Low

Mostly just deleting code - the Properties code, and also the various IDeserializer implementations.

@jamesmontemagno
Copy link
Member

I give this a big 👍

Additionally, devs can always write files to disk and serialize and deserialize for complex data structures.

rookiejava referenced this issue in rookiejava/maui Jun 28, 2021
@jsuarezruiz jsuarezruiz added this to Ready for implementation in Enhancements Oct 22, 2021
@Redth Redth closed this as completed Nov 2, 2021
@dotnet dotnet locked as resolved and limited conversation to collaborators Feb 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Enhancements
Ready for implementation
Development

No branches or pull requests

5 participants