mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-15 04:17:43 +01:00
feat: make testing opt-in per plugin
This commit is contained in:
parent
ce8b4702b6
commit
505e37fd28
6 changed files with 109 additions and 32 deletions
|
|
@ -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>
|
||||
|
|
|
|||
24
Dalamud/Configuration/Internal/PluginTestingOptIn.cs
Normal file
24
Dalamud/Configuration/Internal/PluginTestingOptIn.cs
Normal 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; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue