Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHubSync update #653

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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