Removed migrations. New onboarding screen and wizard like steps.

This commit is contained in:
Burak Kaan Köse
2026-03-06 03:42:08 +01:00
parent db5ecd60e4
commit aaa6e8a2c9
56 changed files with 1843 additions and 554 deletions
@@ -1,15 +0,0 @@
using System.Threading.Tasks;
namespace Wino.Core.Domain.Interfaces;
/// <summary>
/// Represents a one-time app or data migration that runs when a user updates to a new version.
/// </summary>
public interface IAppMigration
{
/// <summary>Gets the unique identifier for this migration, used to track completion in local settings.</summary>
string MigrationId { get; }
/// <summary>Executes the migration logic.</summary>
Task ExecuteAsync();
}
@@ -40,10 +40,4 @@ public interface INotificationBuilder
/// Creates a calendar reminder toast for the specified calendar item.
/// </summary>
Task CreateCalendarReminderNotificationAsync(CalendarItem calendarItem, long reminderDurationInSeconds);
/// <summary>
/// Shows a notification that a migration is required for the new app version.
/// Synchronization is stopped and the user is prompted to open the app.
/// </summary>
void CreateMigrationRequiredNotification();
}
@@ -1,6 +1,6 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Wino.Core.Domain.Models.Updates;
using System.Collections.Generic;
namespace Wino.Core.Domain.Interfaces;
@@ -18,12 +18,4 @@ public interface IUpdateManager
/// <summary>Stores a flag in local settings indicating the update notes for the current version have been seen.</summary>
void MarkUpdateNotesAsSeen();
/// <summary>Returns true if any registered migration has not yet been completed.</summary>
bool HasPendingMigrations();
/// <summary>Runs all pending migrations in order and marks each as completed in local settings.</summary>
Task RunPendingMigrationsAsync();
/// <summary>Registers migrations to be tracked and executed by this manager.</summary>
void RegisterMigrations(IEnumerable<IAppMigration> migrations);
}