Skip to content

Commit

Permalink
Merge pull request #577 from WildGums/GitHubSync/20231011-143056
Browse files Browse the repository at this point in the history
GitHubSync update
  • Loading branch information
GeertvanHorrik authored Oct 11, 2023
2 parents 72a8d00 + 2833691 commit f2c7275
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 f2c7275

Please sign in to comment.