feat: make testing opt-in per plugin

This commit is contained in:
goat 2022-10-29 14:45:52 +02:00
parent ce8b4702b6
commit 505e37fd28
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
6 changed files with 109 additions and 32 deletions

View file

@ -337,6 +337,11 @@ namespace Dalamud.Configuration.Internal
/// </summary>
public string LastFeedbackContactDetails { get; set; } = string.Empty;
/// <summary>
/// Gets or sets a list of plugins that testing builds should be downloaded for.
/// </summary>
public List<PluginTestingOptIn>? PluginTestingOptIns { get; set; }
/// <summary>
/// Load a configuration from the provided path.
/// </summary>

View file

@ -0,0 +1,24 @@
namespace Dalamud.Configuration.Internal;
public record PluginTestingOptIn
{
/// <summary>
/// Initializes a new instance of the <see cref="PluginTestingOptIn"/> class.
/// </summary>
/// <param name="internalName">The internal name of the plugin.</param>
public PluginTestingOptIn(string internalName)
{
this.InternalName = internalName;
this.Branch = "testing-live"; // TODO: make these do something, needs work in plogon
}
/// <summary>
/// Gets the internal name of the plugin to test.
/// </summary>
public string InternalName { get; private set; }
/// <summary>
/// Gets the testing branch to use.
/// </summary>
public string Branch { get; private set; }
}