Skip to content

Commit

Permalink
GitHubSync update
Browse files Browse the repository at this point in the history
  • Loading branch information
GeertvanHorrik committed Oct 11, 2023
1 parent 12cda65 commit 63cd872
Show file tree
Hide file tree
Showing 48 changed files with 9,607 additions and 9,620 deletions.
418 changes: 209 additions & 209 deletions deployment/cake/apps-uwp-tasks.cake

Large diffs are not rendered by default.

114 changes: 57 additions & 57 deletions deployment/cake/apps-uwp-variables.cake
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
#l "./buildserver.cake"

//-------------------------------------------------------------

public class UwpContext : BuildContextWithItemsBase
{
public UwpContext(IBuildContext parentBuildContext)
: base(parentBuildContext)
{
}

public string WindowsStoreAppId { get; set; }
public string WindowsStoreClientId { get; set; }
public string WindowsStoreClientSecret { get; set; }
public string WindowsStoreTenantId { get; set; }

protected override void ValidateContext()
{
}

protected override void LogStateInfoForContext()
{
CakeContext.Information($"Found '{Items.Count}' uwp projects");
}
}

//-------------------------------------------------------------

private UwpContext InitializeUwpContext(BuildContext buildContext, IBuildContext parentBuildContext)
{
var data = new UwpContext(parentBuildContext)
{
Items = UwpApps ?? new List<string>(),
WindowsStoreAppId = buildContext.BuildServer.GetVariable("WindowsStoreAppId", showValue: true),
WindowsStoreClientId = buildContext.BuildServer.GetVariable("WindowsStoreClientId", showValue: false),
WindowsStoreClientSecret = buildContext.BuildServer.GetVariable("WindowsStoreClientSecret", showValue: false),
WindowsStoreTenantId = buildContext.BuildServer.GetVariable("WindowsStoreTenantId", showValue: false)
};

return data;
}

//-------------------------------------------------------------

List<string> _uwpApps;

public List<string> UwpApps
{
get
{
if (_uwpApps is null)
{
_uwpApps = new List<string>();
}

return _uwpApps;
}
#l "./buildserver.cake"

//-------------------------------------------------------------

public class UwpContext : BuildContextWithItemsBase
{
public UwpContext(IBuildContext parentBuildContext)
: base(parentBuildContext)
{
}

public string WindowsStoreAppId { get; set; }
public string WindowsStoreClientId { get; set; }
public string WindowsStoreClientSecret { get; set; }
public string WindowsStoreTenantId { get; set; }

protected override void ValidateContext()
{
}

protected override void LogStateInfoForContext()
{
CakeContext.Information($"Found '{Items.Count}' uwp projects");
}
}

//-------------------------------------------------------------

private UwpContext InitializeUwpContext(BuildContext buildContext, IBuildContext parentBuildContext)
{
var data = new UwpContext(parentBuildContext)
{
Items = UwpApps ?? new List<string>(),
WindowsStoreAppId = buildContext.BuildServer.GetVariable("WindowsStoreAppId", showValue: true),
WindowsStoreClientId = buildContext.BuildServer.GetVariable("WindowsStoreClientId", showValue: false),
WindowsStoreClientSecret = buildContext.BuildServer.GetVariable("WindowsStoreClientSecret", showValue: false),
WindowsStoreTenantId = buildContext.BuildServer.GetVariable("WindowsStoreTenantId", showValue: false)
};

return data;
}

//-------------------------------------------------------------

List<string> _uwpApps;

public List<string> UwpApps
{
get
{
if (_uwpApps is null)
{
_uwpApps = new List<string>();
}

return _uwpApps;
}
}
Loading

0 comments on commit 63cd872

Please sign in to comment.