diff --git a/common.props b/common.props index 8f335df..f38de64 100644 --- a/common.props +++ b/common.props @@ -1,7 +1,13 @@ - - 1.0.10 + + net8.0-android;net8.0-ios;net8.0-maccatalyst + $(TargetFrameworks);net8.0-windows10.0.19041.0 + + + 10.0.19041.41 + + 1.0.9 ar_128.png en https://github.com/AndreasReitberger/MauiSettings diff --git a/src/MauiSettings.Example/MauiSettings.Example.csproj b/src/MauiSettings.Example/MauiSettings.Example.csproj index 68e56b3..e249731 100644 --- a/src/MauiSettings.Example/MauiSettings.Example.csproj +++ b/src/MauiSettings.Example/MauiSettings.Example.csproj @@ -1,11 +1,10 @@  - net8.0-android;net8.0-ios;net8.0-maccatalyst $(TargetFrameworks);net8.0-windows10.0.19041.0 - + 10.0.19041.41 - true true enable @@ -33,10 +29,10 @@ - - + + - + diff --git a/src/MauiSettings/MauiSettingsGeneric.cs b/src/MauiSettings/MauiSettingsGeneric.cs index e5f892f..ab18b36 100644 --- a/src/MauiSettings/MauiSettingsGeneric.cs +++ b/src/MauiSettings/MauiSettingsGeneric.cs @@ -140,7 +140,7 @@ public static Task LoadSettingsAsync(Dictionary> dic public static Task TryLoadSettingsAsync(Dictionary> dictionary, string? key = null, bool justTryLoading = true) => Task.Run(async delegate { - return await TryLoadSettingsAsync(settings: SettingsObject, dictionary: dictionary, key: key); + return await TryLoadSettingsAsync(settings: SettingsObject, dictionary: dictionary, key: key, justTryLoading: justTryLoading); }); public static Task LoadSettingsAsync(string settingsKey, Tuple data, bool save = true, string? key = null) diff --git a/src/MauiSettings/Platforms/iOS/Cloud/ICloudStoreManager.cs b/src/MauiSettings/Platforms/iOS/Cloud/ICloudStoreManager.cs index a25f2aa..d840033 100644 --- a/src/MauiSettings/Platforms/iOS/Cloud/ICloudStoreManager.cs +++ b/src/MauiSettings/Platforms/iOS/Cloud/ICloudStoreManager.cs @@ -15,11 +15,9 @@ public partial class ICloudStoreManager #endregion #region Methods - public static object? GetValue(string key) - { - return Store?.GetString(key); - } + public static object? GetValue(string key) => Store?.GetString(key); + public static void SetValue(string key, T value, bool synchronize = true) { // Maximum key size - Key names cannot be longer than 64 bytes.