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
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Firebase.Database;
using System.Collections.Concurrent;
using System.Diagnostics;
using System.Text.Json.Serialization;

namespace AndreasReitberger.Shared.Firebase
{
Expand All @@ -17,15 +18,15 @@ public partial class FirebaseHandler : ObservableObject

#region Properties

[ObservableProperty]
[ObservableProperty, JsonIgnore]
public partial FirebaseAuthConfig? Config { get; set; }
partial void OnConfigChanged(FirebaseAuthConfig? value)
{
if (value is not null)
authClient = new(value);
}

[ObservableProperty]
[ObservableProperty, JsonIgnore]
public partial UserCredential? CurrentUser { get; set; }
partial void OnCurrentUserChanged(UserCredential? value)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ namespace AndreasReitberger.Shared.Core.Licensing.SourceGeneration
[JsonSerializable(typeof(FirebaseHandler))]
[JsonSerializable(typeof(CurrentUserChangedEventArgs))]
[JsonSerializable(typeof(UserDataChangedEventArgs))]
[JsonSourceGenerationOptions(WriteIndented = true)]
public partial class FirebaseSourceGenerationContext : CoreSourceGenerationContext { }
[JsonSourceGenerationOptions(WriteIndented = true, GenerationMode = JsonSourceGenerationMode.Metadata)]
public partial class FirebaseSourceGenerationContext : JsonSerializerContext // CoreSourceGenerationContext
{ }

}
Loading