Clean-up old Mobile prototype
|
@ -11,8 +11,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MongoAuth", "Authentication
|
||||||
EndProject
|
EndProject
|
||||||
Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "BuildFeedApp-Westminster", "Mobile\BuildFeedApp-Westminster\BuildFeedApp-Westminster.jsproj", "{5CAADB66-1FC2-4492-B766-36354687120D}"
|
Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "BuildFeedApp-Westminster", "Mobile\BuildFeedApp-Westminster\BuildFeedApp-Westminster.jsproj", "{5CAADB66-1FC2-4492-B766-36354687120D}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BuildFeedApp-Full", "Mobile\BuildFeedApp-Full\BuildFeedApp-Full.csproj", "{5370D7B3-CF04-47D4-B7D3-402B35ABF8E8}"
|
|
||||||
EndProject
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RedisMongoMigration", "Tools\RedisMongoMigration\RedisMongoMigration.csproj", "{CD3C08CC-45BF-484B-A878-69614A4EA098}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RedisMongoMigration", "Tools\RedisMongoMigration\RedisMongoMigration.csproj", "{CD3C08CC-45BF-484B-A878-69614A4EA098}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MongoTimeFix", "Tools\MongoTimeFix\MongoTimeFix.csproj", "{B7EC3C45-E5CE-4AD5-B303-65D865F12454}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MongoTimeFix", "Tools\MongoTimeFix\MongoTimeFix.csproj", "{B7EC3C45-E5CE-4AD5-B303-65D865F12454}"
|
||||||
|
@ -111,26 +109,6 @@ Global
|
||||||
{5CAADB66-1FC2-4492-B766-36354687120D}.Release|x86.ActiveCfg = Release|x86
|
{5CAADB66-1FC2-4492-B766-36354687120D}.Release|x86.ActiveCfg = Release|x86
|
||||||
{5CAADB66-1FC2-4492-B766-36354687120D}.Release|x86.Build.0 = Release|x86
|
{5CAADB66-1FC2-4492-B766-36354687120D}.Release|x86.Build.0 = Release|x86
|
||||||
{5CAADB66-1FC2-4492-B766-36354687120D}.Release|x86.Deploy.0 = Release|x86
|
{5CAADB66-1FC2-4492-B766-36354687120D}.Release|x86.Deploy.0 = Release|x86
|
||||||
{5370D7B3-CF04-47D4-B7D3-402B35ABF8E8}.Debug|Any CPU.ActiveCfg = Debug|x86
|
|
||||||
{5370D7B3-CF04-47D4-B7D3-402B35ABF8E8}.Debug|ARM.ActiveCfg = Debug|ARM
|
|
||||||
{5370D7B3-CF04-47D4-B7D3-402B35ABF8E8}.Debug|ARM.Build.0 = Debug|ARM
|
|
||||||
{5370D7B3-CF04-47D4-B7D3-402B35ABF8E8}.Debug|ARM.Deploy.0 = Debug|ARM
|
|
||||||
{5370D7B3-CF04-47D4-B7D3-402B35ABF8E8}.Debug|x64.ActiveCfg = Debug|x64
|
|
||||||
{5370D7B3-CF04-47D4-B7D3-402B35ABF8E8}.Debug|x64.Build.0 = Debug|x64
|
|
||||||
{5370D7B3-CF04-47D4-B7D3-402B35ABF8E8}.Debug|x64.Deploy.0 = Debug|x64
|
|
||||||
{5370D7B3-CF04-47D4-B7D3-402B35ABF8E8}.Debug|x86.ActiveCfg = Debug|x86
|
|
||||||
{5370D7B3-CF04-47D4-B7D3-402B35ABF8E8}.Debug|x86.Build.0 = Debug|x86
|
|
||||||
{5370D7B3-CF04-47D4-B7D3-402B35ABF8E8}.Debug|x86.Deploy.0 = Debug|x86
|
|
||||||
{5370D7B3-CF04-47D4-B7D3-402B35ABF8E8}.Release|Any CPU.ActiveCfg = Release|x86
|
|
||||||
{5370D7B3-CF04-47D4-B7D3-402B35ABF8E8}.Release|ARM.ActiveCfg = Release|ARM
|
|
||||||
{5370D7B3-CF04-47D4-B7D3-402B35ABF8E8}.Release|ARM.Build.0 = Release|ARM
|
|
||||||
{5370D7B3-CF04-47D4-B7D3-402B35ABF8E8}.Release|ARM.Deploy.0 = Release|ARM
|
|
||||||
{5370D7B3-CF04-47D4-B7D3-402B35ABF8E8}.Release|x64.ActiveCfg = Release|x64
|
|
||||||
{5370D7B3-CF04-47D4-B7D3-402B35ABF8E8}.Release|x64.Build.0 = Release|x64
|
|
||||||
{5370D7B3-CF04-47D4-B7D3-402B35ABF8E8}.Release|x64.Deploy.0 = Release|x64
|
|
||||||
{5370D7B3-CF04-47D4-B7D3-402B35ABF8E8}.Release|x86.ActiveCfg = Release|x86
|
|
||||||
{5370D7B3-CF04-47D4-B7D3-402B35ABF8E8}.Release|x86.Build.0 = Release|x86
|
|
||||||
{5370D7B3-CF04-47D4-B7D3-402B35ABF8E8}.Release|x86.Deploy.0 = Release|x86
|
|
||||||
{CD3C08CC-45BF-484B-A878-69614A4EA098}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{CD3C08CC-45BF-484B-A878-69614A4EA098}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{CD3C08CC-45BF-484B-A878-69614A4EA098}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{CD3C08CC-45BF-484B-A878-69614A4EA098}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{CD3C08CC-45BF-484B-A878-69614A4EA098}.Debug|ARM.ActiveCfg = Debug|Any CPU
|
{CD3C08CC-45BF-484B-A878-69614A4EA098}.Debug|ARM.ActiveCfg = Debug|Any CPU
|
||||||
|
@ -203,7 +181,6 @@ Global
|
||||||
{C6A16CF0-41DA-4B90-918A-CB84A8C3F1E2} = {53344C34-3493-4D0E-8425-FB18C0CC59D0}
|
{C6A16CF0-41DA-4B90-918A-CB84A8C3F1E2} = {53344C34-3493-4D0E-8425-FB18C0CC59D0}
|
||||||
{7C67BFB9-1B3B-4676-A58D-10573DA82CFE} = {53344C34-3493-4D0E-8425-FB18C0CC59D0}
|
{7C67BFB9-1B3B-4676-A58D-10573DA82CFE} = {53344C34-3493-4D0E-8425-FB18C0CC59D0}
|
||||||
{5CAADB66-1FC2-4492-B766-36354687120D} = {2B646675-44D1-4722-8A86-8C64876C8FB7}
|
{5CAADB66-1FC2-4492-B766-36354687120D} = {2B646675-44D1-4722-8A86-8C64876C8FB7}
|
||||||
{5370D7B3-CF04-47D4-B7D3-402B35ABF8E8} = {2B646675-44D1-4722-8A86-8C64876C8FB7}
|
|
||||||
{CD3C08CC-45BF-484B-A878-69614A4EA098} = {938956E0-6FA0-4432-A238-DAE704686F26}
|
{CD3C08CC-45BF-484B-A878-69614A4EA098} = {938956E0-6FA0-4432-A238-DAE704686F26}
|
||||||
{B7EC3C45-E5CE-4AD5-B303-65D865F12454} = {938956E0-6FA0-4432-A238-DAE704686F26}
|
{B7EC3C45-E5CE-4AD5-B303-65D865F12454} = {938956E0-6FA0-4432-A238-DAE704686F26}
|
||||||
{B68C450F-1475-4B9C-B513-43C79CBAA338} = {938956E0-6FA0-4432-A238-DAE704686F26}
|
{B68C450F-1475-4B9C-B513-43C79CBAA338} = {938956E0-6FA0-4432-A238-DAE704686F26}
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
<Application
|
|
||||||
x:Class="BuildFeedApp.App"
|
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
||||||
xmlns:local="using:BuildFeedApp"
|
|
||||||
RequestedTheme="Dark">
|
|
||||||
|
|
||||||
</Application>
|
|
|
@ -1,105 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Runtime.InteropServices.WindowsRuntime;
|
|
||||||
using Windows.ApplicationModel;
|
|
||||||
using Windows.ApplicationModel.Activation;
|
|
||||||
using Windows.Foundation;
|
|
||||||
using Windows.Foundation.Collections;
|
|
||||||
using Windows.UI.Xaml;
|
|
||||||
using Windows.UI.Xaml.Controls;
|
|
||||||
using Windows.UI.Xaml.Controls.Primitives;
|
|
||||||
using Windows.UI.Xaml.Data;
|
|
||||||
using Windows.UI.Xaml.Input;
|
|
||||||
using Windows.UI.Xaml.Media;
|
|
||||||
using Windows.UI.Xaml.Navigation;
|
|
||||||
|
|
||||||
namespace BuildFeedApp
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Provides application-specific behavior to supplement the default Application class.
|
|
||||||
/// </summary>
|
|
||||||
sealed partial class App : Application
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Initializes the singleton application object. This is the first line of authored code
|
|
||||||
/// executed, and as such is the logical equivalent of main() or WinMain().
|
|
||||||
/// </summary>
|
|
||||||
public App()
|
|
||||||
{
|
|
||||||
this.InitializeComponent();
|
|
||||||
this.Suspending += OnSuspending;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Invoked when the application is launched normally by the end user. Other entry points
|
|
||||||
/// will be used such as when the application is launched to open a specific file.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="e">Details about the launch request and process.</param>
|
|
||||||
protected override void OnLaunched(LaunchActivatedEventArgs e)
|
|
||||||
{
|
|
||||||
|
|
||||||
#if DEBUG
|
|
||||||
if (System.Diagnostics.Debugger.IsAttached)
|
|
||||||
{
|
|
||||||
this.DebugSettings.EnableFrameRateCounter = true;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
Frame rootFrame = Window.Current.Content as Frame;
|
|
||||||
|
|
||||||
// Do not repeat app initialization when the Window already has content,
|
|
||||||
// just ensure that the window is active
|
|
||||||
if (rootFrame == null)
|
|
||||||
{
|
|
||||||
// Create a Frame to act as the navigation context and navigate to the first page
|
|
||||||
rootFrame = new Frame();
|
|
||||||
|
|
||||||
rootFrame.NavigationFailed += OnNavigationFailed;
|
|
||||||
|
|
||||||
if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
|
|
||||||
{
|
|
||||||
//TODO: Load state from previously suspended application
|
|
||||||
}
|
|
||||||
|
|
||||||
// Place the frame in the current Window
|
|
||||||
Window.Current.Content = rootFrame;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (rootFrame.Content == null)
|
|
||||||
{
|
|
||||||
// When the navigation stack isn't restored navigate to the first page,
|
|
||||||
// configuring the new page by passing required information as a navigation
|
|
||||||
// parameter
|
|
||||||
rootFrame.Navigate(typeof(MainPage), e.Arguments);
|
|
||||||
}
|
|
||||||
// Ensure the current window is active
|
|
||||||
Window.Current.Activate();
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Invoked when Navigation to a certain page fails
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="sender">The Frame which failed navigation</param>
|
|
||||||
/// <param name="e">Details about the navigation failure</param>
|
|
||||||
void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
|
|
||||||
{
|
|
||||||
throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Invoked when application execution is being suspended. Application state is saved
|
|
||||||
/// without knowing whether the application will be terminated or resumed with the contents
|
|
||||||
/// of memory still intact.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="sender">The source of the suspend request.</param>
|
|
||||||
/// <param name="e">Details about the suspend request.</param>
|
|
||||||
private void OnSuspending(object sender, SuspendingEventArgs e)
|
|
||||||
{
|
|
||||||
var deferral = e.SuspendingOperation.GetDeferral();
|
|
||||||
//TODO: Save application state and stop any background activity
|
|
||||||
deferral.Complete();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 7.5 KiB |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 3.1 KiB |
|
@ -1,154 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
||||||
<PropertyGroup>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
|
||||||
<ProjectGuid>{5370D7B3-CF04-47D4-B7D3-402B35ABF8E8}</ProjectGuid>
|
|
||||||
<OutputType>AppContainerExe</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>BuildFeedApp</RootNamespace>
|
|
||||||
<AssemblyName>BuildFeedApp</AssemblyName>
|
|
||||||
<DefaultLanguage>en-US</DefaultLanguage>
|
|
||||||
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
|
|
||||||
<TargetPlatformVersion>10.0.10240.0</TargetPlatformVersion>
|
|
||||||
<TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>
|
|
||||||
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
|
|
||||||
<EnableDotNetNativeCompatibleProfile>true</EnableDotNetNativeCompatibleProfile>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
|
||||||
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
|
||||||
<PackageCertificateKeyFile>BuildFeedApp-Full_TemporaryKey.pfx</PackageCertificateKeyFile>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<OutputPath>bin\ARM\Debug\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
||||||
<NoWarn>;2008</NoWarn>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<PlatformTarget>ARM</PlatformTarget>
|
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<Prefer32Bit>true</Prefer32Bit>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
|
|
||||||
<OutputPath>bin\ARM\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<NoWarn>;2008</NoWarn>
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<PlatformTarget>ARM</PlatformTarget>
|
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<Prefer32Bit>true</Prefer32Bit>
|
|
||||||
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<OutputPath>bin\x64\Debug\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
||||||
<NoWarn>;2008</NoWarn>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<PlatformTarget>x64</PlatformTarget>
|
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<Prefer32Bit>true</Prefer32Bit>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
|
||||||
<OutputPath>bin\x64\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<NoWarn>;2008</NoWarn>
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<PlatformTarget>x64</PlatformTarget>
|
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<Prefer32Bit>true</Prefer32Bit>
|
|
||||||
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
||||||
<NoWarn>;2008</NoWarn>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<Prefer32Bit>true</Prefer32Bit>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
|
||||||
<OutputPath>bin\x86\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<NoWarn>;2008</NoWarn>
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<Prefer32Bit>true</Prefer32Bit>
|
|
||||||
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
|
|
||||||
<None Include="BuildFeedApp_StoreKey.pfx" />
|
|
||||||
<None Include="BuildFeedApp_TemporaryKey.pfx" />
|
|
||||||
<None Include="project.json" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="App.xaml.cs">
|
|
||||||
<DependentUpon>App.xaml</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="DetailsRow.xaml.cs">
|
|
||||||
<DependentUpon>DetailsRow.xaml</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="MainPage.xaml.cs">
|
|
||||||
<DependentUpon>MainPage.xaml</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
<Compile Include="Service\ApiCache.cs" />
|
|
||||||
<Compile Include="Service\Build.cs" />
|
|
||||||
<Compile Include="Service\IncrementalBuildGroups.cs" />
|
|
||||||
<Compile Include="Service\IncrementalBuilds.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<AppxManifest Include="Package.appxmanifest">
|
|
||||||
<SubType>Designer</SubType>
|
|
||||||
</AppxManifest>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="Package.StoreAssociation.xml" />
|
|
||||||
<Content Include="Properties\Default.rd.xml" />
|
|
||||||
<Content Include="Assets\LockScreenLogo.scale-200.png" />
|
|
||||||
<Content Include="Assets\SplashScreen.scale-200.png" />
|
|
||||||
<Content Include="Assets\Square150x150Logo.scale-200.png" />
|
|
||||||
<Content Include="Assets\Square44x44Logo.scale-200.png" />
|
|
||||||
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
|
|
||||||
<Content Include="Assets\StoreLogo.png" />
|
|
||||||
<Content Include="Assets\Wide310x150Logo.scale-200.png" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ApplicationDefinition Include="App.xaml">
|
|
||||||
<Generator>MSBuild:Compile</Generator>
|
|
||||||
<SubType>Designer</SubType>
|
|
||||||
</ApplicationDefinition>
|
|
||||||
<Page Include="DetailsRow.xaml">
|
|
||||||
<SubType>Designer</SubType>
|
|
||||||
<Generator>MSBuild:Compile</Generator>
|
|
||||||
</Page>
|
|
||||||
<Page Include="MainPage.xaml">
|
|
||||||
<Generator>MSBuild:Compile</Generator>
|
|
||||||
<SubType>Designer</SubType>
|
|
||||||
</Page>
|
|
||||||
</ItemGroup>
|
|
||||||
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' ">
|
|
||||||
<VisualStudioVersion>14.0</VisualStudioVersion>
|
|
||||||
</PropertyGroup>
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
|
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
|
||||||
<Target Name="BeforeBuild">
|
|
||||||
</Target>
|
|
||||||
<Target Name="AfterBuild">
|
|
||||||
</Target>
|
|
||||||
-->
|
|
||||||
</Project>
|
|
|
@ -1,19 +0,0 @@
|
||||||
<UserControl
|
|
||||||
x:Class="BuildFeedApp.DetailsRow"
|
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
||||||
xmlns:local="using:BuildFeedApp"
|
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
||||||
mc:Ignorable="d" x:Name="detailsRow">
|
|
||||||
|
|
||||||
<Grid Margin="40,20">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="2*" />
|
|
||||||
<ColumnDefinition Width="12" />
|
|
||||||
<ColumnDefinition Width="3*" />
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<TextBlock Grid.Column="0" TextAlignment="Right" Text="{Binding Label, ElementName=detailsRow}" />
|
|
||||||
<TextBlock Grid.Column="2" Text="{Binding Value, ElementName=detailsRow}" />
|
|
||||||
</Grid>
|
|
||||||
</UserControl>
|
|
|
@ -1,42 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Runtime.InteropServices.WindowsRuntime;
|
|
||||||
using Windows.Foundation;
|
|
||||||
using Windows.Foundation.Collections;
|
|
||||||
using Windows.UI.Xaml;
|
|
||||||
using Windows.UI.Xaml.Controls;
|
|
||||||
using Windows.UI.Xaml.Controls.Primitives;
|
|
||||||
using Windows.UI.Xaml.Data;
|
|
||||||
using Windows.UI.Xaml.Input;
|
|
||||||
using Windows.UI.Xaml.Media;
|
|
||||||
using Windows.UI.Xaml.Navigation;
|
|
||||||
|
|
||||||
// The User Control item template is documented at http://go.microsoft.com/fwlink/?LinkId=234236
|
|
||||||
|
|
||||||
namespace BuildFeedApp
|
|
||||||
{
|
|
||||||
public sealed partial class DetailsRow : UserControl
|
|
||||||
{
|
|
||||||
public DetailsRow()
|
|
||||||
{
|
|
||||||
this.InitializeComponent();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static readonly DependencyProperty LabelProperty = DependencyProperty.Register("Label", typeof(string), typeof(DetailsRow), new PropertyMetadata("TEST:"));
|
|
||||||
public static readonly DependencyProperty ValueProperty = DependencyProperty.Register("Value", typeof(string), typeof(DetailsRow), new PropertyMetadata(""));
|
|
||||||
|
|
||||||
public string Label
|
|
||||||
{
|
|
||||||
get { return (string)GetValue(LabelProperty); }
|
|
||||||
set { SetValue(LabelProperty, value); }
|
|
||||||
}
|
|
||||||
|
|
||||||
public string Value
|
|
||||||
{
|
|
||||||
get { return (string)GetValue(ValueProperty); }
|
|
||||||
set { SetValue(ValueProperty, value); }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,54 +0,0 @@
|
||||||
<Page
|
|
||||||
x:Class="BuildFeedApp.MainPage"
|
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
||||||
xmlns:local="using:BuildFeedApp"
|
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
||||||
mc:Ignorable="d" Loaded="Page_Loaded">
|
|
||||||
<Page.Resources>
|
|
||||||
<SolidColorBrush x:Key="BuildFeedBaseColour" Color="#272b30" Opacity="1" />
|
|
||||||
</Page.Resources>
|
|
||||||
|
|
||||||
<Grid Background="{StaticResource BuildFeedBaseColour}">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="2*" />
|
|
||||||
<ColumnDefinition Width="3*" />
|
|
||||||
<ColumnDefinition Width="7*" />
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<ListView x:Name="lvGroups" Grid.Column="0" IncrementalLoadingTrigger="Edge" IncrementalLoadingThreshold="0" DataFetchSize="0.4" Background="Black" SelectionChanged="lvGroups_SelectionChanged" ScrollViewer.VerticalScrollBarVisibility="Hidden">
|
|
||||||
<ListView.ItemTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<TextBlock Text="{Binding Key}" />
|
|
||||||
</DataTemplate>
|
|
||||||
</ListView.ItemTemplate>
|
|
||||||
<ListView.ItemsPanel>
|
|
||||||
<ItemsPanelTemplate>
|
|
||||||
<ItemsStackPanel Orientation="Vertical" />
|
|
||||||
</ItemsPanelTemplate>
|
|
||||||
</ListView.ItemsPanel>
|
|
||||||
</ListView>
|
|
||||||
<ListView x:Name="lvBuilds" Grid.Column="1" Background="{StaticResource BuildFeedBaseColour}" SelectionChanged="lvBuilds_SelectionChanged">
|
|
||||||
<ListView.ItemTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<TextBlock TextTrimming="CharacterEllipsis">
|
|
||||||
<Run Text="{Binding Lab}" />.<Run Text="{Binding DateString}" />
|
|
||||||
</TextBlock>
|
|
||||||
</DataTemplate>
|
|
||||||
</ListView.ItemTemplate>
|
|
||||||
<ListView.ItemsPanel>
|
|
||||||
<ItemsPanelTemplate>
|
|
||||||
<ItemsStackPanel Orientation="Vertical" />
|
|
||||||
</ItemsPanelTemplate>
|
|
||||||
</ListView.ItemsPanel>
|
|
||||||
</ListView>
|
|
||||||
<StackPanel x:Name="spDetails" Grid.Column="2" Background="Black" HorizontalAlignment="Stretch">
|
|
||||||
<local:DetailsRow Label="Major Version:" Value="{Binding MajorVersion}" />
|
|
||||||
<local:DetailsRow Label="Minor Version:" Value="{Binding MinorVersion}" />
|
|
||||||
<local:DetailsRow Label="Build Number:" Value="{Binding Number}" />
|
|
||||||
<local:DetailsRow Label="Revision:" Value="{Binding MajorVersion}" />
|
|
||||||
<local:DetailsRow Label="Lab:" Value="{Binding Lab}" />
|
|
||||||
<local:DetailsRow Label="Compile Date:" Value="{Binding BuildTime}" />
|
|
||||||
</StackPanel>
|
|
||||||
</Grid>
|
|
||||||
</Page>
|
|
|
@ -1,52 +0,0 @@
|
||||||
using BuildFeedApp.Service;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Runtime.InteropServices.WindowsRuntime;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Windows.Foundation;
|
|
||||||
using Windows.Foundation.Collections;
|
|
||||||
using Windows.UI.Xaml;
|
|
||||||
using Windows.UI.Xaml.Controls;
|
|
||||||
using Windows.UI.Xaml.Controls.Primitives;
|
|
||||||
using Windows.UI.Xaml.Data;
|
|
||||||
using Windows.UI.Xaml.Input;
|
|
||||||
using Windows.UI.Xaml.Media;
|
|
||||||
using Windows.UI.Xaml.Navigation;
|
|
||||||
|
|
||||||
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409
|
|
||||||
|
|
||||||
namespace BuildFeedApp
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// An empty page that can be used on its own or navigated to within a Frame.
|
|
||||||
/// </summary>
|
|
||||||
public sealed partial class MainPage : Page
|
|
||||||
{
|
|
||||||
public int BuildModel { get; private set; }
|
|
||||||
|
|
||||||
public MainPage()
|
|
||||||
{
|
|
||||||
this.InitializeComponent();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Page_Loaded(object sender, RoutedEventArgs e)
|
|
||||||
{
|
|
||||||
var item = new IncrementalBuildGroups();
|
|
||||||
lvGroups.ItemsSource = item;
|
|
||||||
}
|
|
||||||
|
|
||||||
private async void lvGroups_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
|
||||||
{
|
|
||||||
FrontBuildGroup fbg = lvGroups.SelectedValue as FrontBuildGroup;
|
|
||||||
lvBuilds.ItemsSource = await ApiCache.GetApi<Build[]>($"https://buildfeed.net/api/GetBuildsForBuildGroup?major={fbg.Key.Major}&minor={fbg.Key.Minor}&number={fbg.Key.Build}&revision={fbg.Key.Revision}");
|
|
||||||
}
|
|
||||||
|
|
||||||
private void lvBuilds_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
|
||||||
{
|
|
||||||
Build b = lvBuilds.SelectedValue as Build;
|
|
||||||
spDetails.DataContext = b;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,28 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp">
|
|
||||||
<Identity Name="730047a3-db94-4eba-9604-3092d344f2b9" Publisher="CN=Thomas" Version="1.0.0.0" />
|
|
||||||
<mp:PhoneIdentity PhoneProductId="730047a3-db94-4eba-9604-3092d344f2b9" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
|
|
||||||
<Properties>
|
|
||||||
<DisplayName>BuildFeedApp-Full</DisplayName>
|
|
||||||
<PublisherDisplayName>Thomas</PublisherDisplayName>
|
|
||||||
<Logo>Assets\StoreLogo.png</Logo>
|
|
||||||
</Properties>
|
|
||||||
<Dependencies>
|
|
||||||
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
|
|
||||||
</Dependencies>
|
|
||||||
<Resources>
|
|
||||||
<Resource Language="x-generate" />
|
|
||||||
</Resources>
|
|
||||||
<Applications>
|
|
||||||
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="BuildFeedApp.App">
|
|
||||||
<uap:VisualElements DisplayName="BuildFeed" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="BuildFeed is a service which tracks known builds of Microsoft Windows." BackgroundColor="transparent">
|
|
||||||
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png">
|
|
||||||
</uap:DefaultTile>
|
|
||||||
<uap:SplashScreen Image="Assets\SplashScreen.png" />
|
|
||||||
</uap:VisualElements>
|
|
||||||
</Application>
|
|
||||||
</Applications>
|
|
||||||
<Capabilities>
|
|
||||||
<Capability Name="internetClient" />
|
|
||||||
</Capabilities>
|
|
||||||
</Package>
|
|
|
@ -1,29 +0,0 @@
|
||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
// General Information about an assembly is controlled through the following
|
|
||||||
// set of attributes. Change these attribute values to modify the information
|
|
||||||
// associated with an assembly.
|
|
||||||
[assembly: AssemblyTitle("BuildFeedApp-Full")]
|
|
||||||
[assembly: AssemblyDescription("")]
|
|
||||||
[assembly: AssemblyConfiguration("")]
|
|
||||||
[assembly: AssemblyCompany("")]
|
|
||||||
[assembly: AssemblyProduct("BuildFeedApp-Full")]
|
|
||||||
[assembly: AssemblyCopyright("Copyright © 2015")]
|
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// Version information for an assembly consists of the following four values:
|
|
||||||
//
|
|
||||||
// Major Version
|
|
||||||
// Minor Version
|
|
||||||
// Build Number
|
|
||||||
// Revision
|
|
||||||
//
|
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
|
||||||
// by using the '*' as shown below:
|
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
||||||
[assembly: ComVisible(false)]
|
|
|
@ -1,31 +0,0 @@
|
||||||
<!--
|
|
||||||
This file contains Runtime Directives used by .NET Native. The defaults here are suitable for most
|
|
||||||
developers. However, you can modify these parameters to modify the behavior of the .NET Native
|
|
||||||
optimizer.
|
|
||||||
|
|
||||||
Runtime Directives are documented at http://go.microsoft.com/fwlink/?LinkID=391919
|
|
||||||
|
|
||||||
To fully enable reflection for App1.MyClass and all of its public/private members
|
|
||||||
<Type Name="App1.MyClass" Dynamic="Required All"/>
|
|
||||||
|
|
||||||
To enable dynamic creation of the specific instantiation of AppClass<T> over System.Int32
|
|
||||||
<TypeInstantiation Name="App1.AppClass" Arguments="System.Int32" Activate="Required Public" />
|
|
||||||
|
|
||||||
Using the Namespace directive to apply reflection policy to all the types in a particular namespace
|
|
||||||
<Namespace Name="DataClasses.ViewModels" Seralize="All" />
|
|
||||||
-->
|
|
||||||
|
|
||||||
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
|
|
||||||
<Application>
|
|
||||||
<!--
|
|
||||||
An Assembly element with Name="*Application*" applies to all assemblies in
|
|
||||||
the application package. The asterisks are not wildcards.
|
|
||||||
-->
|
|
||||||
<Assembly Name="*Application*" Dynamic="Required All" />
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Add your application specific runtime directives here. -->
|
|
||||||
|
|
||||||
|
|
||||||
</Application>
|
|
||||||
</Directives>
|
|
|
@ -1,97 +0,0 @@
|
||||||
using Newtonsoft.Json;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Net;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace BuildFeedApp.Service
|
|
||||||
{
|
|
||||||
public static class ApiCache
|
|
||||||
{
|
|
||||||
public static int SecondsBeforeStale { get; set; }
|
|
||||||
|
|
||||||
private static Dictionary<string, ApiCacheEntry> _cache = new Dictionary<string, ApiCacheEntry>();
|
|
||||||
|
|
||||||
static ApiCache()
|
|
||||||
{
|
|
||||||
//ServicePointManager.DefaultConnectionLimit = 20;
|
|
||||||
SecondsBeforeStale = 15;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Download and parse a JSON document into the specified type
|
|
||||||
/// </summary>
|
|
||||||
/// <typeparam name="T">Object that JSON Reperesents</typeparam>
|
|
||||||
/// <param name="url">The URL that the JSON can be retreived from</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
public async static Task<T> GetApi<T>(string url)
|
|
||||||
{
|
|
||||||
if (_cache.ContainsKey(url)
|
|
||||||
&& (_cache[url].ExpiryTime > DateTime.Now || !await IsAPIStale(url, _cache[url].LastModified)))
|
|
||||||
{
|
|
||||||
return (T)(_cache[url].Value);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
var cat = await FetchAPI<T>(url);
|
|
||||||
_cache[url] = cat;
|
|
||||||
return (T)(cat.Value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private async static Task<ApiCacheEntry> FetchAPI<T>(string url)
|
|
||||||
{
|
|
||||||
HttpWebRequest wreq = HttpWebRequest.CreateHttp(url);
|
|
||||||
ApiCacheEntry ret = new ApiCacheEntry();
|
|
||||||
|
|
||||||
using (HttpWebResponse wres = await wreq.GetResponseAsync() as HttpWebResponse)
|
|
||||||
{
|
|
||||||
ret.ExpiryTime = DateTime.Now.AddSeconds(SecondsBeforeStale);
|
|
||||||
//ret.LastModified = wres.LastModified;
|
|
||||||
|
|
||||||
using (Stream s = wres.GetResponseStream())
|
|
||||||
using (StreamReader sr = new StreamReader(s))
|
|
||||||
using (JsonReader jr = new JsonTextReader(sr))
|
|
||||||
{
|
|
||||||
|
|
||||||
JsonSerializer jsz = new JsonSerializer();
|
|
||||||
|
|
||||||
ret.Value = jsz.Deserialize<T>(jr);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private async static Task<bool> IsAPIStale(string url, DateTime lastChecked)
|
|
||||||
{
|
|
||||||
HttpWebRequest wreq = HttpWebRequest.CreateHttp(url);
|
|
||||||
//wreq.IfModifiedSince = lastChecked;
|
|
||||||
wreq.Method = "HEAD";
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
HttpWebResponse wres = await wreq.GetResponseAsync() as HttpWebResponse;
|
|
||||||
}
|
|
||||||
catch (WebException wex)
|
|
||||||
{
|
|
||||||
HttpWebResponse wres = wex.Response as HttpWebResponse;
|
|
||||||
if (wres.StatusCode == HttpStatusCode.NotModified || wres.StatusCode == HttpStatusCode.NotFound)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
internal struct ApiCacheEntry
|
|
||||||
{
|
|
||||||
public DateTime ExpiryTime { get; set; }
|
|
||||||
public DateTime LastModified { get; set; }
|
|
||||||
public object Value { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,116 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace BuildFeedApp.Service
|
|
||||||
{
|
|
||||||
public class Build
|
|
||||||
{
|
|
||||||
public Guid Id { get; set; }
|
|
||||||
public long? LegacyId { get; set; }
|
|
||||||
public byte MajorVersion { get; set; }
|
|
||||||
public byte MinorVersion { get; set; }
|
|
||||||
public ushort Number { get; set; }
|
|
||||||
public ushort? Revision { get; set; }
|
|
||||||
public string Lab { get; set; }
|
|
||||||
public DateTime? BuildTime { get; set; }
|
|
||||||
|
|
||||||
public DateTime Added { get; set; }
|
|
||||||
public DateTime Modified { get; set; }
|
|
||||||
public TypeOfSource SourceType { get; set; }
|
|
||||||
public string SourceDetails { get; set; }
|
|
||||||
public DateTime? LeakDate { get; set; }
|
|
||||||
public LevelOfFlight FlightLevel { get; set; }
|
|
||||||
|
|
||||||
public string LabUrl { get; set; }
|
|
||||||
|
|
||||||
public bool IsLeaked
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
switch (SourceType)
|
|
||||||
{
|
|
||||||
case TypeOfSource.PublicRelease:
|
|
||||||
case TypeOfSource.InternalLeak:
|
|
||||||
case TypeOfSource.UpdateGDR:
|
|
||||||
case TypeOfSource.UpdateLDR:
|
|
||||||
return true;
|
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public string DateString => BuildTime.HasValue ? BuildTime.Value.ToString("yyMMdd-HHmm") : "";
|
|
||||||
|
|
||||||
public string FullBuildString
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.AppendFormat("{0}.{1}.{2}", MajorVersion, MinorVersion, Number);
|
|
||||||
|
|
||||||
if (Revision.HasValue)
|
|
||||||
{
|
|
||||||
sb.AppendFormat(".{0}", Revision);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(Lab))
|
|
||||||
{
|
|
||||||
sb.AppendFormat(".{0}", Lab);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (BuildTime.HasValue)
|
|
||||||
{
|
|
||||||
sb.AppendFormat(".{0:yyMMdd-HHmm}", BuildTime);
|
|
||||||
}
|
|
||||||
|
|
||||||
return sb.ToString();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public class FrontBuildGroup
|
|
||||||
{
|
|
||||||
public BuildGroup Key { get; set; }
|
|
||||||
public DateTime? LastBuild { get; set; }
|
|
||||||
public int BuildCount { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class BuildGroup
|
|
||||||
{
|
|
||||||
public byte Major { get; set; }
|
|
||||||
public byte Minor { get; set; }
|
|
||||||
public ushort Build { get; set; }
|
|
||||||
public ushort? Revision { get; set; }
|
|
||||||
|
|
||||||
public override string ToString() => Revision.HasValue ?
|
|
||||||
$"{Major}.{Minor}.{Build}.{Revision.Value}" :
|
|
||||||
$"{Major}.{Minor}.{Build}";
|
|
||||||
}
|
|
||||||
|
|
||||||
public enum TypeOfSource
|
|
||||||
{
|
|
||||||
PublicRelease,
|
|
||||||
InternalLeak,
|
|
||||||
UpdateGDR,
|
|
||||||
UpdateLDR,
|
|
||||||
AppPackage,
|
|
||||||
BuildTools,
|
|
||||||
Documentation,
|
|
||||||
Logging,
|
|
||||||
PrivateLeak
|
|
||||||
}
|
|
||||||
|
|
||||||
public enum LevelOfFlight
|
|
||||||
{
|
|
||||||
None = 0,
|
|
||||||
WIS = 1,
|
|
||||||
WIF = 2,
|
|
||||||
OSG = 3,
|
|
||||||
MSIT = 4,
|
|
||||||
Canary = 5
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,73 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Collections.ObjectModel;
|
|
||||||
using System.Collections.Specialized;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Runtime.InteropServices.WindowsRuntime;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Windows.Foundation;
|
|
||||||
using Windows.UI.Xaml.Data;
|
|
||||||
|
|
||||||
namespace BuildFeedApp.Service
|
|
||||||
{
|
|
||||||
public class IncrementalBuildGroups : List<FrontBuildGroup>, ISupportIncrementalLoading, INotifyCollectionChanged
|
|
||||||
{
|
|
||||||
private bool _hasMoreItems;
|
|
||||||
private bool _busy;
|
|
||||||
|
|
||||||
public bool HasMoreItems => _hasMoreItems;
|
|
||||||
|
|
||||||
public event NotifyCollectionChangedEventHandler CollectionChanged;
|
|
||||||
|
|
||||||
public IncrementalBuildGroups() : base()
|
|
||||||
{
|
|
||||||
_hasMoreItems = true;
|
|
||||||
_busy = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void NotifyOfInsertedItems(FrontBuildGroup[] newItems)
|
|
||||||
{
|
|
||||||
if (CollectionChanged == null) return;
|
|
||||||
|
|
||||||
foreach(var item in newItems)
|
|
||||||
{
|
|
||||||
var args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, IndexOf(item));
|
|
||||||
CollectionChanged(this, args);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private async Task<LoadMoreItemsResult> _loadMoreItemsAsync(CancellationToken c, uint count)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
FrontBuildGroup[] getBuilds = await ApiCache.GetApi<FrontBuildGroup[]>($"https://buildfeed.net/api/GetBuildGroups?skip={this.Count}&limit={count}");
|
|
||||||
AddRange(getBuilds);
|
|
||||||
NotifyOfInsertedItems(getBuilds);
|
|
||||||
|
|
||||||
_hasMoreItems = getBuilds.Length == count;
|
|
||||||
return new LoadMoreItemsResult()
|
|
||||||
{
|
|
||||||
Count = (uint)getBuilds.Length
|
|
||||||
};
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
_busy = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public IAsyncOperation<LoadMoreItemsResult> LoadMoreItemsAsync(uint count)
|
|
||||||
{
|
|
||||||
if (_busy)
|
|
||||||
{
|
|
||||||
throw new InvalidOperationException("Only one operation in flight at a time");
|
|
||||||
}
|
|
||||||
|
|
||||||
_busy = true;
|
|
||||||
|
|
||||||
return AsyncInfo.Run((c) => _loadMoreItemsAsync(c, count));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,73 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Collections.ObjectModel;
|
|
||||||
using System.Collections.Specialized;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Runtime.InteropServices.WindowsRuntime;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Windows.Foundation;
|
|
||||||
using Windows.UI.Xaml.Data;
|
|
||||||
|
|
||||||
namespace BuildFeedApp.Service
|
|
||||||
{
|
|
||||||
public class IncrementalBuilds : List<Build>, ISupportIncrementalLoading, INotifyCollectionChanged
|
|
||||||
{
|
|
||||||
private bool _hasMoreItems;
|
|
||||||
private bool _busy;
|
|
||||||
|
|
||||||
public bool HasMoreItems => _hasMoreItems;
|
|
||||||
|
|
||||||
public event NotifyCollectionChangedEventHandler CollectionChanged;
|
|
||||||
|
|
||||||
public IncrementalBuilds() : base()
|
|
||||||
{
|
|
||||||
_hasMoreItems = true;
|
|
||||||
_busy = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void NotifyOfInsertedItems(Build[] newItems)
|
|
||||||
{
|
|
||||||
if (CollectionChanged == null) return;
|
|
||||||
|
|
||||||
foreach(var item in newItems)
|
|
||||||
{
|
|
||||||
var args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, IndexOf(item));
|
|
||||||
CollectionChanged(this, args);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private async Task<LoadMoreItemsResult> _loadMoreItemsAsync(CancellationToken c, uint count)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
Build[] getBuilds = await ApiCache.GetApi<Build[]>($"https://buildfeed.net/api/?skip={this.Count}&limit={count}");
|
|
||||||
AddRange(getBuilds);
|
|
||||||
NotifyOfInsertedItems(getBuilds);
|
|
||||||
|
|
||||||
_hasMoreItems = getBuilds.Length == count;
|
|
||||||
return new LoadMoreItemsResult()
|
|
||||||
{
|
|
||||||
Count = (uint)getBuilds.Length
|
|
||||||
};
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
_busy = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public IAsyncOperation<LoadMoreItemsResult> LoadMoreItemsAsync(uint count)
|
|
||||||
{
|
|
||||||
if (_busy)
|
|
||||||
{
|
|
||||||
throw new InvalidOperationException("Only one operation in flight at a time");
|
|
||||||
}
|
|
||||||
|
|
||||||
_busy = true;
|
|
||||||
|
|
||||||
return AsyncInfo.Run((c) => _loadMoreItemsAsync(c, count));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,17 +0,0 @@
|
||||||
{
|
|
||||||
"dependencies": {
|
|
||||||
"Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0",
|
|
||||||
"Newtonsoft.Json": "7.0.1"
|
|
||||||
},
|
|
||||||
"frameworks": {
|
|
||||||
"uap10.0": {}
|
|
||||||
},
|
|
||||||
"runtimes": {
|
|
||||||
"win10-arm": {},
|
|
||||||
"win10-arm-aot": {},
|
|
||||||
"win10-x86": {},
|
|
||||||
"win10-x86-aot": {},
|
|
||||||
"win10-x64": {},
|
|
||||||
"win10-x64-aot": {}
|
|
||||||
}
|
|
||||||
}
|
|