Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/SharedMauiCoreLibrary.Licensing/LicenseManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,8 @@ async Task<EnvatoVerifyPurchaseCodeRespone> QueryEnvatoAsync(ILicenseInfo licens
}
#endregion

#endregion
#endregion

#endregion
#endregion
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static IShellNavigator Instance
}
}
}
#endregion
#endregion

#region Properties

Expand Down Expand Up @@ -158,7 +158,7 @@ async Task<bool> navigationAction()
return false;
}
}

/// <summary>
/// Navigates back one route from the current navigation stack.
/// </summary>
Expand Down
7 changes: 4 additions & 3 deletions src/SharedMauiCoreLibrary/Models/ViewModelBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ public partial class ViewModelBase : ViewModelCoreBase, IViewModelBase
#endregion

#region Ctor
public ViewModelBase() : base() {

public ViewModelBase() : base()
{

Dispatcher = DispatcherProvider.Current.GetForCurrentThread();
}
public ViewModelBase(IDispatcher? dispatcher) : base()
Expand All @@ -25,7 +26,7 @@ public ViewModelBase(IDispatcher? dispatcher, IServiceProvider? provider) : base
Dispatcher = dispatcher;
Provider = provider;
}

#endregion

#region Methods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static Task SaveUserSettingsAsync(this UserCredential user, FirebaseClien
.Child(user.User.Uid)
.Child(child)
.PutAsync(settings);

public static async Task<Dictionary<string, Tuple<object, Type>>> GetAppSettingsAsync(this UserCredential user, FirebaseClient client, string child = "settings")
{
Dictionary<string, Tuple<object, Type>> result = [];
Expand All @@ -25,7 +25,7 @@ public static async Task<Dictionary<string, Tuple<object, Type>>> GetAppSettings
.Child(child)
;
string listJson = await t.OnceAsJsonAsync();
result = JsonConvertHelper.ToObject<Dictionary<string, Tuple<object, Type>>>(listJson) ?? [];
result = JsonConvertHelper.ToObject<Dictionary<string, Tuple<object, Type>>>(listJson) ?? [];
return result;
}
#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public partial class CurrentUserChangedEventArgs : EventArgs

#region Overrides
public override string ToString() => JsonConvert.SerializeObject(this, Formatting.Indented);

#endregion
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public partial class UserDataChangedEventArgs : EventArgs

#region Overrides
public override string ToString() => JsonConvert.SerializeObject(this, Formatting.Indented);

#endregion
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace AndreasReitberger.Shared.Firebase
{
public partial class FirebaseHandler : ObservableObject
{
{
#region Settings Sync
public async Task<T?> GetDataAsync<T>(string child)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace AndreasReitberger.Shared.Firebase
{
public partial class FirebaseHandler : ObservableObject
{
{
#region Properties
[ObservableProperty]
public partial bool EnableEncryption { get; set; } = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public FirebaseHandler(string domain, string uri) : base()
public FirebaseHandler(string domain, string uri, string api) : base()
{
apiKey = api;
baseUri = uri;
baseUri = uri;
authDomain = domain;

UseDefaultConfig();
Expand Down