├── .github └── FUNDING.yml ├── Store ├── Assets │ ├── LockScreenLogo.png │ ├── Badge.scale-100.png │ ├── Badge.scale-125.png │ ├── Badge.scale-150.png │ ├── Badge.scale-200.png │ ├── Badge.scale-400.png │ ├── StoreLogo.backup.png │ ├── LargeTile.scale-100.png │ ├── LargeTile.scale-125.png │ ├── LargeTile.scale-150.png │ ├── LargeTile.scale-200.png │ ├── LargeTile.scale-400.png │ ├── PlaceholderAppIcon.png │ ├── SmallTile.scale-100.png │ ├── SmallTile.scale-125.png │ ├── SmallTile.scale-150.png │ ├── SmallTile.scale-200.png │ ├── SmallTile.scale-400.png │ ├── StoreLogo.scale-100.png │ ├── StoreLogo.scale-125.png │ ├── StoreLogo.scale-150.png │ ├── StoreLogo.scale-200.png │ ├── StoreLogo.scale-400.png │ ├── LockScreenLogo.scale-200.png │ ├── SplashScreen.scale-100.png │ ├── SplashScreen.scale-125.png │ ├── SplashScreen.scale-150.png │ ├── SplashScreen.scale-200.png │ ├── SplashScreen.scale-400.png │ ├── Square44x44Logo.scale-100.png │ ├── Square44x44Logo.scale-125.png │ ├── Square44x44Logo.scale-150.png │ ├── Square44x44Logo.scale-200.png │ ├── Square44x44Logo.scale-400.png │ ├── Wide310x150Logo.scale-100.png │ ├── Wide310x150Logo.scale-125.png │ ├── Wide310x150Logo.scale-150.png │ ├── Wide310x150Logo.scale-200.png │ ├── Wide310x150Logo.scale-400.png │ ├── Square150x150Logo.scale-100.png │ ├── Square150x150Logo.scale-125.png │ ├── Square150x150Logo.scale-150.png │ ├── Square150x150Logo.scale-200.png │ ├── Square150x150Logo.scale-400.png │ ├── Square44x44Logo.targetsize-16.png │ ├── Square44x44Logo.targetsize-24.png │ ├── Square44x44Logo.targetsize-32.png │ ├── Square44x44Logo.targetsize-48.png │ ├── Square44x44Logo.targetsize-256.png │ ├── SmallTile.scale-400_altform-unplated.png │ ├── Square44x44Logo.altform-unplated_targetsize-16.png │ ├── Square44x44Logo.altform-unplated_targetsize-32.png │ ├── Square44x44Logo.altform-unplated_targetsize-48.png │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ └── Square44x44Logo.altform-unplated_targetsize-256.png ├── App.xaml ├── MainPage.xaml ├── Properties │ ├── AssemblyInfo.cs │ └── Default.rd.xml ├── Pages │ ├── InstallerPage.xaml.cs │ ├── ErrorPage.xaml │ ├── ErrorPage.xaml.cs │ ├── PackagesPage.xaml.cs │ ├── AppPage.xaml.cs │ ├── InstallerPage.xaml │ ├── SettingsPage.xaml.cs │ ├── SettingsPage.xaml │ ├── PackagesPage.xaml │ └── AppPage.xaml ├── MainPage.xaml.cs ├── Package.appxmanifest ├── App.xaml.cs ├── .editorconfig └── Store.csproj ├── StoreManager ├── Models │ ├── ConfigModel.cs │ ├── RepositoryModel.cs │ └── AppModel.cs ├── Controllers │ ├── InstallController.cs │ ├── DownloadController.cs │ ├── SettingsController.cs │ └── StoreController.cs ├── Properties │ ├── AssemblyInfo.cs │ └── StoreManager.rd.xml └── StoreManager.csproj ├── LICENSE.md ├── PackagesBackgroundTask ├── Properties │ └── AssemblyInfo.cs ├── PackagesBackgroundTask.cs └── PackagesBackgroundTask.csproj ├── .gitattributes ├── .gitignore ├── Store.sln └── .editorconfig /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: [filiphsandstrom, HerryYT] 2 | -------------------------------------------------------------------------------- /Store/Assets/LockScreenLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/LockScreenLogo.png -------------------------------------------------------------------------------- /Store/Assets/Badge.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Badge.scale-100.png -------------------------------------------------------------------------------- /Store/Assets/Badge.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Badge.scale-125.png -------------------------------------------------------------------------------- /Store/Assets/Badge.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Badge.scale-150.png -------------------------------------------------------------------------------- /Store/Assets/Badge.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Badge.scale-200.png -------------------------------------------------------------------------------- /Store/Assets/Badge.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Badge.scale-400.png -------------------------------------------------------------------------------- /Store/Assets/StoreLogo.backup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/StoreLogo.backup.png -------------------------------------------------------------------------------- /Store/Assets/LargeTile.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/LargeTile.scale-100.png -------------------------------------------------------------------------------- /Store/Assets/LargeTile.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/LargeTile.scale-125.png -------------------------------------------------------------------------------- /Store/Assets/LargeTile.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/LargeTile.scale-150.png -------------------------------------------------------------------------------- /Store/Assets/LargeTile.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/LargeTile.scale-200.png -------------------------------------------------------------------------------- /Store/Assets/LargeTile.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/LargeTile.scale-400.png -------------------------------------------------------------------------------- /Store/Assets/PlaceholderAppIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/PlaceholderAppIcon.png -------------------------------------------------------------------------------- /Store/Assets/SmallTile.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/SmallTile.scale-100.png -------------------------------------------------------------------------------- /Store/Assets/SmallTile.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/SmallTile.scale-125.png -------------------------------------------------------------------------------- /Store/Assets/SmallTile.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/SmallTile.scale-150.png -------------------------------------------------------------------------------- /Store/Assets/SmallTile.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/SmallTile.scale-200.png -------------------------------------------------------------------------------- /Store/Assets/SmallTile.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/SmallTile.scale-400.png -------------------------------------------------------------------------------- /Store/Assets/StoreLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/StoreLogo.scale-100.png -------------------------------------------------------------------------------- /Store/Assets/StoreLogo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/StoreLogo.scale-125.png -------------------------------------------------------------------------------- /Store/Assets/StoreLogo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/StoreLogo.scale-150.png -------------------------------------------------------------------------------- /Store/Assets/StoreLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/StoreLogo.scale-200.png -------------------------------------------------------------------------------- /Store/Assets/StoreLogo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/StoreLogo.scale-400.png -------------------------------------------------------------------------------- /Store/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /Store/Assets/SplashScreen.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/SplashScreen.scale-100.png -------------------------------------------------------------------------------- /Store/Assets/SplashScreen.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/SplashScreen.scale-125.png -------------------------------------------------------------------------------- /Store/Assets/SplashScreen.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/SplashScreen.scale-150.png -------------------------------------------------------------------------------- /Store/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /Store/Assets/SplashScreen.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/SplashScreen.scale-400.png -------------------------------------------------------------------------------- /Store/Assets/Square44x44Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Square44x44Logo.scale-100.png -------------------------------------------------------------------------------- /Store/Assets/Square44x44Logo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Square44x44Logo.scale-125.png -------------------------------------------------------------------------------- /Store/Assets/Square44x44Logo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Square44x44Logo.scale-150.png -------------------------------------------------------------------------------- /Store/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /Store/Assets/Square44x44Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Square44x44Logo.scale-400.png -------------------------------------------------------------------------------- /Store/Assets/Wide310x150Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Wide310x150Logo.scale-100.png -------------------------------------------------------------------------------- /Store/Assets/Wide310x150Logo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Wide310x150Logo.scale-125.png -------------------------------------------------------------------------------- /Store/Assets/Wide310x150Logo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Wide310x150Logo.scale-150.png -------------------------------------------------------------------------------- /Store/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /Store/Assets/Wide310x150Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Wide310x150Logo.scale-400.png -------------------------------------------------------------------------------- /Store/Assets/Square150x150Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Square150x150Logo.scale-100.png -------------------------------------------------------------------------------- /Store/Assets/Square150x150Logo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Square150x150Logo.scale-125.png -------------------------------------------------------------------------------- /Store/Assets/Square150x150Logo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Square150x150Logo.scale-150.png -------------------------------------------------------------------------------- /Store/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /Store/Assets/Square150x150Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Square150x150Logo.scale-400.png -------------------------------------------------------------------------------- /Store/Assets/Square44x44Logo.targetsize-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Square44x44Logo.targetsize-16.png -------------------------------------------------------------------------------- /Store/Assets/Square44x44Logo.targetsize-24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Square44x44Logo.targetsize-24.png -------------------------------------------------------------------------------- /Store/Assets/Square44x44Logo.targetsize-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Square44x44Logo.targetsize-32.png -------------------------------------------------------------------------------- /Store/Assets/Square44x44Logo.targetsize-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Square44x44Logo.targetsize-48.png -------------------------------------------------------------------------------- /Store/Assets/Square44x44Logo.targetsize-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Square44x44Logo.targetsize-256.png -------------------------------------------------------------------------------- /Store/Assets/SmallTile.scale-400_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/SmallTile.scale-400_altform-unplated.png -------------------------------------------------------------------------------- /Store/Assets/Square44x44Logo.altform-unplated_targetsize-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Square44x44Logo.altform-unplated_targetsize-16.png -------------------------------------------------------------------------------- /Store/Assets/Square44x44Logo.altform-unplated_targetsize-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Square44x44Logo.altform-unplated_targetsize-32.png -------------------------------------------------------------------------------- /Store/Assets/Square44x44Logo.altform-unplated_targetsize-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Square44x44Logo.altform-unplated_targetsize-48.png -------------------------------------------------------------------------------- /Store/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /Store/Assets/Square44x44Logo.altform-unplated_targetsize-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filiphsps/w10m-store/HEAD/Store/Assets/Square44x44Logo.altform-unplated_targetsize-256.png -------------------------------------------------------------------------------- /StoreManager/Models/ConfigModel.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace StoreManager.Models { 4 | public class ConfigModel { 5 | public List Repositories; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Store/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | -------------------------------------------------------------------------------- /StoreManager/Controllers/InstallController.cs: -------------------------------------------------------------------------------- 1 | using StoreManager.Models; 2 | using System.Threading.Tasks; 3 | 4 | namespace StoreManager.Controllers { 5 | public class InstallController { 6 | public async Task Initialize() { 7 | 8 | } 9 | 10 | public async Task Install(AppModel app) { 11 | await Task.Delay(1500); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /StoreManager/Controllers/DownloadController.cs: -------------------------------------------------------------------------------- 1 | using StoreManager.Models; 2 | using System.Threading.Tasks; 3 | 4 | namespace StoreManager.Controllers { 5 | public class DownloadController { 6 | private async Task extractArchive() { } 7 | 8 | public async Task Initialize() { 9 | // TODO: Create "downloads", "dependencies" & "packages" folders if they don't already exist. 10 | // TODO: Populate hashmap with the files already downloaded. 11 | } 12 | 13 | public async Task Download(AppModel app) { 14 | await Task.Delay(1000); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Store/MainPage.xaml: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Store/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | // General Information about an assembly is controlled through the following 5 | // set of attributes. Change these attribute values to modify the information 6 | // associated with an assembly. 7 | [assembly: AssemblyTitle("Store")] 8 | [assembly: AssemblyDescription("")] 9 | [assembly: AssemblyConfiguration("")] 10 | [assembly: AssemblyCompany("")] 11 | [assembly: AssemblyProduct("Store")] 12 | [assembly: AssemblyCopyright("Copyright © 2021")] 13 | [assembly: AssemblyTrademark("")] 14 | [assembly: AssemblyCulture("")] 15 | 16 | // Version information for an assembly consists of the following four values: 17 | // 18 | // Major Version 19 | // Minor Version 20 | // Build Number 21 | // Revision 22 | // 23 | // You can specify all the values or you can default the Build and Revision Numbers 24 | // by using the '*' as shown below: 25 | // [assembly: AssemblyVersion("1.0.*")] 26 | [assembly: AssemblyVersion("1.0.0.0")] 27 | [assembly: AssemblyFileVersion("1.0.0.0")] 28 | [assembly: ComVisible(false)] -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Filiph Sandström 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /StoreManager/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("StoreManager")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("StoreManager")] 13 | [assembly: AssemblyCopyright("Copyright © 2021")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | // You can specify all the values or you can default the Build and Revision Numbers 25 | // by using the '*' as shown below: 26 | // [assembly: AssemblyVersion("1.0.*")] 27 | [assembly: AssemblyVersion("1.0.0.0")] 28 | [assembly: AssemblyFileVersion("1.0.0.0")] 29 | [assembly: ComVisible(false)] -------------------------------------------------------------------------------- /PackagesBackgroundTask/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("PackagesBackgroundTask")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("PackagesBackgroundTask")] 13 | [assembly: AssemblyCopyright("Copyright © 2021")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | // You can specify all the values or you can default the Build and Revision Numbers 25 | // by using the '*' as shown below: 26 | // [assembly: AssemblyVersion("1.0.*")] 27 | [assembly: AssemblyVersion("1.0.0.0")] 28 | [assembly: AssemblyFileVersion("1.0.0.0")] 29 | [assembly: ComVisible(false)] -------------------------------------------------------------------------------- /Store/Properties/Default.rd.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /StoreManager/Controllers/SettingsController.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | using StoreManager.Models; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Threading.Tasks; 6 | using Windows.Storage; 7 | 8 | namespace StoreManager.Controllers { 9 | public class SettingsController { 10 | // TODO: implementation cache 11 | 12 | public async Task Initialize() { 13 | ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings; 14 | 15 | if (!localSettings.Values.ContainsKey("config")) { 16 | this.Config = new Models.ConfigModel { 17 | Repositories = new List { 18 | new RepositoryModel("https://w10m-research.github.io/StoreRepository") 19 | } 20 | }; 21 | return; 22 | } 23 | 24 | this.Config = JsonConvert.DeserializeObject((String)localSettings.Values["config"]); 25 | } 26 | 27 | public async Task Save() { 28 | ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings; 29 | localSettings.Values["config"] = JsonConvert.SerializeObject(this.Config); 30 | } 31 | 32 | public Models.ConfigModel Config { get; private set; } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Store/Pages/InstallerPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Windows.UI.Xaml; 3 | using Windows.UI.Xaml.Controls; 4 | using Windows.UI.Xaml.Navigation; 5 | using StoreManager.Models; 6 | using Windows.UI.Xaml.Media.Imaging; 7 | 8 | namespace Store.Pages 9 | { 10 | /// 11 | /// The "Install App" view 12 | /// 13 | public sealed partial class InstallerPage : Page 14 | { 15 | private AppModel _app; 16 | 17 | public InstallerPage() 18 | { 19 | this.InitializeComponent(); 20 | } 21 | 22 | protected override void OnNavigatedTo(NavigationEventArgs e) 23 | { 24 | base.OnNavigatedTo(e); 25 | 26 | this._app = (AppModel)e.Parameter; 27 | 28 | this.AppNameStr.Text = this._app.Title; 29 | this.AppAuthorStr.Text = this._app.Author; 30 | this.AppImg.Source = new BitmapImage(new Uri(this._app.LogoUrl)); 31 | this.ProgressStr.Text = ""; 32 | } 33 | 34 | private async void ActionBtn_Click(Object sender, RoutedEventArgs e) 35 | { 36 | this.CancelBtn.Visibility = Visibility.Collapsed; 37 | this.ActionBtn.Visibility = Visibility.Collapsed; 38 | 39 | throw new NotImplementedException(); 40 | 41 | this.CancelBtn.Visibility = Visibility.Visible; 42 | } 43 | 44 | private void CancelBtn_Click(Object sender, RoutedEventArgs e) 45 | { 46 | this.Frame.GoBack(); 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Store/Pages/ErrorPage.xaml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | :-( 14 | It looks like something went wrong. 15 | ErrorMessage 16 | 17 | ErrorStack 18 | 19 | 20 | 21 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Store/Pages/ErrorPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using StoreManager.Models; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.IO; 5 | using System.Linq; 6 | using System.Runtime.InteropServices.WindowsRuntime; 7 | using Windows.Foundation; 8 | using Windows.Foundation.Collections; 9 | using Windows.UI.Xaml; 10 | using Windows.UI.Xaml.Controls; 11 | using Windows.UI.Xaml.Controls.Primitives; 12 | using Windows.UI.Xaml.Data; 13 | using Windows.UI.Xaml.Input; 14 | using Windows.UI.Xaml.Media; 15 | using Windows.UI.Xaml.Media.Animation; 16 | using Windows.UI.Xaml.Navigation; 17 | 18 | // The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238 19 | 20 | namespace Store.Pages { 21 | /// 22 | /// An empty page that can be used on its own or navigated to within a Frame. 23 | /// 24 | public sealed partial class ErrorPage : Page { 25 | public ErrorPage() { 26 | this.InitializeComponent(); 27 | } 28 | 29 | protected override void OnNavigatedTo(NavigationEventArgs e) { 30 | base.OnNavigatedTo(e); 31 | var ex = (Exception)e.Parameter; 32 | 33 | this.ErrorMsgStr.Text = ex.Message; 34 | this.ErrorStackStr.Text = ex.StackTrace; 35 | 36 | #if DEBUG 37 | this.ErrorStackStr.Visibility = Visibility.Visible; 38 | #endif 39 | } 40 | 41 | private void RetryBtn_OnClick(Object sender, RoutedEventArgs e) { 42 | this.Frame.GoBack(); 43 | } 44 | 45 | private void CloseBtn_OnClick(Object sender, RoutedEventArgs e) { 46 | Application.Current.Exit(); 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /StoreManager/Properties/StoreManager.rd.xml: -------------------------------------------------------------------------------- 1 | 2 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /StoreManager/Models/RepositoryModel.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json.Linq; 2 | using System; 3 | using System.Diagnostics; 4 | using System.Net.Http; 5 | using System.Threading.Tasks; 6 | 7 | namespace StoreManager.Models { 8 | public class RepositoryModel { 9 | public enum RepositoryStatus { 10 | UnLoaded, 11 | Loaded, 12 | Error 13 | } 14 | 15 | public RepositoryModel(String url) { 16 | this.Url = url; 17 | 18 | // Make sure we end with a "/" 19 | if (!this.Url.EndsWith("/")) this.Url = String.Concat(this.Url, '/'); 20 | } 21 | 22 | public async Task Initialize() { 23 | try { 24 | var client = new HttpClient { 25 | Timeout = TimeSpan.FromSeconds(15) 26 | }; 27 | 28 | // TODO: handle without index.json too 29 | HttpResponseMessage response = await client.GetAsync(new Uri(String.Concat(this.Url, "index.json"))); 30 | var info = JObject.Parse(await response.Content.ReadAsStringAsync()); 31 | 32 | this.Name = (String)info["name"]; 33 | this.Description = (String)info["description"]; 34 | this.Author = (String)info["author"]; 35 | 36 | this.Status = RepositoryStatus.Loaded; 37 | } catch (Exception ex) { 38 | Debug.WriteLine(ex); 39 | this.Status = RepositoryStatus.Error; 40 | // TODO: log error somewhere 41 | } 42 | 43 | // TODO: paths 44 | } 45 | 46 | public RepositoryStatus Status { get; private set; } = RepositoryStatus.UnLoaded; 47 | public String Name { get; private set; } 48 | public String Description { get; private set; } 49 | public String Author { get; private set; } 50 | public String Url { get; } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /StoreManager/Models/AppModel.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json.Linq; 2 | using System; 3 | using System.Collections.Generic; 4 | 5 | namespace StoreManager.Models { 6 | public class AppAuthor { 7 | public AppAuthor(String name, String role = "Contributor") { 8 | this.Name = name; 9 | this.Role = role; 10 | } 11 | 12 | public String Name { get; } 13 | public String Role { get; } 14 | } 15 | 16 | public class AppDependency { 17 | public AppDependency(String title, String ns, Version version) { 18 | this.Title = title; 19 | this.Namespace = ns; 20 | this.Version = version; 21 | } 22 | 23 | public String Title { get; } 24 | public String Namespace { get; } 25 | public Version Version { get; } 26 | } 27 | 28 | public class AppModel { 29 | public AppModel(JObject data) { 30 | this.Id = (String)data["id"]; 31 | // TODO: string can't be empty... sanity checks 32 | this.Version = new Version((String)data["version"] ?? String.Empty); 33 | 34 | if (data.ContainsKey("date")) { 35 | try { 36 | this.Timestamp = DateTime.Parse((String)data["date"]); 37 | } catch { } 38 | } 39 | 40 | this.Title = (String)data["title"]; 41 | this.Author = (String)data["author"]; 42 | this.Description = (String)data["description"]; 43 | this.LogoUrl = (String)data["logo_url"]; 44 | this.Size = (Double)data["size"]; 45 | this.Contributors = data["contributors"].ToObject>(); 46 | this.Dependencies = data["dependencies"].ToObject>(); 47 | } 48 | 49 | public String Id { get; } 50 | public Version Version { get; } 51 | public DateTime? Timestamp { get; } 52 | public String Title { get; } 53 | public String Author { get; } 54 | public List Contributors { get; } 55 | public String Description { get; } 56 | public String LogoUrl { get; } 57 | public Double Size { get; } 58 | public List Dependencies { get; } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /Store/MainPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Diagnostics; 4 | using System.Linq; 5 | using Windows.ApplicationModel.Background; 6 | using Windows.Data.Xml.Dom; 7 | using Windows.UI.Notifications; 8 | using Windows.UI.Xaml; 9 | using Windows.UI.Xaml.Controls; 10 | using Windows.UI.Xaml.Media.Animation; 11 | using Windows.UI.Xaml.Media.Imaging; 12 | using Windows.UI.Xaml.Navigation; 13 | 14 | namespace Store { 15 | public sealed partial class MainPage : Page { 16 | public MainPage() { 17 | this.InitializeComponent(); 18 | } 19 | 20 | protected override void OnNavigatedTo(NavigationEventArgs e) { 21 | this.RegisterBackgroundTask(); 22 | } 23 | 24 | private async void Page_Loaded(Object sender, RoutedEventArgs e) { 25 | await App.StoreManager.Initialize(); 26 | await App.StoreManager.Settings.Save(); 27 | 28 | // Update tile 29 | PackagesBackgroundTask.PackagesBackgroundTask.UpdateTile(App.StoreManager.Packages.Values.ToList()); 30 | 31 | this.Frame.Navigate(typeof(Pages.PackagesPage), null, new DrillInNavigationTransitionInfo()); 32 | this.Frame.BackStack.Remove(this.Frame.BackStack.Last()); 33 | } 34 | 35 | private async void RegisterBackgroundTask() { 36 | BackgroundAccessStatus backgroundAccessStatus = await BackgroundExecutionManager.RequestAccessAsync(); 37 | // ReSharper disable once InvertIf 38 | if (backgroundAccessStatus == BackgroundAccessStatus.AllowedSubjectToSystemPolicy || 39 | backgroundAccessStatus == BackgroundAccessStatus.AlwaysAllowed) { 40 | foreach (KeyValuePair task in BackgroundTaskRegistration.AllTasks) { 41 | if (task.Value.Name == "PackagesBackgroundTask") { 42 | task.Value.Unregister(true); 43 | } 44 | } 45 | 46 | // ReSharper disable Once 47 | var taskBuilder = new BackgroundTaskBuilder { 48 | TaskEntryPoint = typeof(PackagesBackgroundTask.PackagesBackgroundTask).FullName, 49 | Name = "PackagesBackgroundTask" 50 | }; 51 | taskBuilder.SetTrigger(new TimeTrigger(15, false)); 52 | BackgroundTaskRegistration registration = taskBuilder.Register(); 53 | } 54 | } 55 | } 56 | } 57 | 58 | -------------------------------------------------------------------------------- /Store/Pages/PackagesPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Threading.Tasks; 3 | using Windows.UI.Xaml; 4 | using Windows.UI.Xaml.Controls; 5 | using Windows.UI.Xaml.Navigation; 6 | using Windows.UI.Xaml.Media.Animation; 7 | using StoreManager.Models; 8 | 9 | // The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238 10 | 11 | namespace Store.Pages { 12 | /// 13 | /// An empty page that can be used on its own or navigated to within a Frame. 14 | /// 15 | internal sealed partial class PackagesPage { 16 | //private Models.AppModel _lastItem; 17 | 18 | public PackagesPage() { 19 | this.InitializeComponent(); 20 | this.AllPkgsList.ItemsSource = App.StoreManager.Packages.Values; 21 | } 22 | 23 | private async Task Reload() { 24 | await App.StoreManager.Initialize(); 25 | this.AllPkgsList.ItemsSource = App.StoreManager.Packages.Values; 26 | } 27 | 28 | protected override void OnNavigatedTo(NavigationEventArgs e) { 29 | base.OnNavigatedTo(e); 30 | 31 | // Remove selection (hacky) 32 | this.AllPkgsList.SelectedItem = null; 33 | 34 | /* ConnectedAnimation animation = ConnectedAnimationService.GetForCurrentView().GetAnimation("appLogoOut"); 35 | if (animation != null) 36 | { 37 | await this.AllPkgsList.TryStartConnectedAnimationAsync(animation, this._lastItem, "LogoImgWrapper"); 38 | } */ 39 | } 40 | 41 | private void SettingsBtn_Click(Object sender, RoutedEventArgs e) { 42 | this.Frame.Navigate(typeof(SettingsPage), null, new EntranceNavigationTransitionInfo()); 43 | } 44 | 45 | private void AllPkgsList_ItemClick(Object sender, ItemClickEventArgs e) { 46 | //this.lastItem = (Models.AppModel)e.ClickedItem; 47 | this.AllPkgsList.PrepareConnectedAnimation("appLogoIn", e.ClickedItem, "AppWrapper"); 48 | this.Frame.Navigate(typeof(AppPage), (AppModel)e.ClickedItem, new SuppressNavigationTransitionInfo()); 49 | } 50 | 51 | private async void DonateBtn_OnClick(Object sender, RoutedEventArgs e) { 52 | await Windows.System.Launcher.LaunchUriAsync(new Uri("https://github.com/sponsors/filiphsandstrom")); 53 | } 54 | 55 | private async void ReloadBtn_OnClick(Object sender, RoutedEventArgs e) { 56 | await this.Reload(); 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /Store/Package.appxmanifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Store 7 | Filiph Sandström 8 | Assets\StoreLogo.png 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | Assets\Badge.png 37 | Store 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /Store/Pages/AppPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Windows.UI.Xaml; 3 | using Windows.UI.Xaml.Input; 4 | using Windows.UI.Xaml.Navigation; 5 | using Windows.UI.Xaml.Media.Imaging; 6 | using StoreManager.Models; 7 | using System.Globalization; 8 | using Windows.ApplicationModel.DataTransfer; 9 | using Windows.UI.Xaml.Media.Animation; 10 | 11 | namespace Store.Pages { 12 | /// 13 | /// The App/Package view 14 | /// 15 | internal sealed partial class AppPage { 16 | private AppModel _app; 17 | 18 | public AppPage() { 19 | this.InitializeComponent(); 20 | } 21 | 22 | protected override void OnNavigatedTo(NavigationEventArgs e) { 23 | base.OnNavigatedTo(e); 24 | 25 | ConnectedAnimation animation = ConnectedAnimationService.GetForCurrentView().GetAnimation("appLogoIn"); 26 | animation?.TryStart(this.DetailsWrapper); 27 | 28 | this._app = (AppModel)e.Parameter; 29 | 30 | if (this._app == null) { 31 | // TODO: include details 32 | throw new Exception("Invalid Application"); 33 | } 34 | 35 | this.PageTitleStr.Text = this._app.Title; 36 | this.AppNsStr.Text = this._app.Id; 37 | this.AppNameStr.Text = this._app.Title; 38 | this.AppAuthorStr.Text = this._app.Author; 39 | this.AppVersionStr.Text = this._app.Version.ToString(); 40 | this.AppDescStr.Text = this._app.Description; 41 | this.AppImg.Source = new BitmapImage(new Uri(this._app.LogoUrl)); 42 | if (this._app.Timestamp != null) { 43 | this.AppTimestampStr.Text = this._app.Timestamp?.ToLocalTime().ToString("dd MMMM yyyy"); 44 | } 45 | 46 | this.AppSizeStr.Text = this._app.Size.ToString(CultureInfo.CurrentCulture); 47 | this.ContributorsList.ItemsSource = this._app.Contributors; 48 | this.DependencyList.ItemsSource = this._app.Dependencies; 49 | 50 | if (this._app.Timestamp == null) { 51 | this.AppTimestamp.Visibility = Visibility.Collapsed; 52 | } 53 | 54 | if (this._app.Contributors.Count <= 0) { 55 | this.ContributorsList.Visibility = Visibility.Collapsed; 56 | this.ContributorsListTitle.Visibility = Visibility.Collapsed; 57 | } 58 | 59 | if (this._app.Dependencies.Count <= 0) { 60 | this.DependencyList.Visibility = Visibility.Collapsed; 61 | this.DependencyListTitle.Visibility = Visibility.Collapsed; 62 | } 63 | } 64 | 65 | /* 66 | * protected override void OnNavigatedFrom(NavigationEventArgs e) { 67 | base.OnNavigatedFrom(e); 68 | // ConnectedAnimationService.GetForCurrentView().PrepareToAnimate("appLogoOut", this.AppImgWrapper); 69 | } 70 | */ 71 | 72 | private void InstallBtn_Click(Object sender, RoutedEventArgs e) { 73 | this.Frame.Navigate(typeof(InstallerPage), this._app); 74 | } 75 | 76 | private void AppAuthorStr_Tapped(Object sender, TappedRoutedEventArgs e) { 77 | // TODO: Navigate to AuthorView 78 | } 79 | 80 | private void ShareBtn_OnClick(Object sender, RoutedEventArgs e) { 81 | DataTransferManager.GetForCurrentView().DataRequested += (DataTransferManager s, DataRequestedEventArgs args) => { 82 | args.Request.Data.SetWebLink(new Uri($"store://{this._app.Id}")); 83 | args.Request.Data.Properties.ContentSourceApplicationLink = new Uri($"store://{this._app.Id}"); 84 | args.Request.Data.Properties.Title = $"Share {this._app.Title}"; 85 | //args.Request.Data.Properties.Description = "description"; 86 | }; 87 | 88 | DataTransferManager.ShowShareUI(); 89 | } 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /StoreManager/Controllers/StoreController.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json.Linq; 2 | using StoreManager.Models; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Net.Http; 7 | using System.Threading.Tasks; 8 | 9 | namespace StoreManager.Controllers { 10 | public class StoreController { 11 | public StoreController() { 12 | this.Settings = new SettingsController(); 13 | this.Downloader = new DownloadController(); 14 | this.Installer = new InstallController(); 15 | } 16 | 17 | private async Task UpdatePackages() { 18 | this.Packages.Clear(); 19 | 20 | foreach (RepositoryModel repo in this.Repositories) { 21 | if (repo.Status != RepositoryModel.RepositoryStatus.Loaded) continue; 22 | 23 | var client = new HttpClient(); 24 | HttpResponseMessage response = await client.GetAsync(new Uri(String.Concat(repo.Url, "packages.json"))); 25 | var packages = JArray.Parse(await response.Content.ReadAsStringAsync()); 26 | foreach (JObject obj in packages.Select(package => JObject.Parse(package.ToString()))) { 27 | if (!obj.ContainsKey("id")) 28 | continue; // TODO: log the error somewhere 29 | 30 | String id = (String)obj["id"] ?? String.Empty; 31 | 32 | if (!this.Packages.ContainsKey(id)) 33 | this.Packages.Add(id, new AppModel(obj)); 34 | else 35 | this.Packages[id] = new AppModel(obj); 36 | } 37 | } 38 | } 39 | 40 | private async Task UpdateDependencies() { 41 | this.Dependencies.Clear(); 42 | 43 | foreach (RepositoryModel repo in this.Repositories) { 44 | if (repo.Status != RepositoryModel.RepositoryStatus.Loaded) continue; 45 | 46 | var client = new HttpClient(); 47 | HttpResponseMessage response = await client.GetAsync(new Uri(String.Concat(repo.Url, "dependencies.json"))); 48 | var dependencies = JArray.Parse(await response.Content.ReadAsStringAsync()); 49 | foreach (JObject obj in dependencies.Select(dependency => JObject.Parse(dependency.ToString()))) { 50 | if (!obj.ContainsKey("id")) 51 | continue; // TODO: log the error somewhere 52 | 53 | String id = (String)obj["id"] ?? String.Empty; 54 | 55 | if (!this.Dependencies.ContainsKey(id)) 56 | this.Dependencies.Add(id, obj.ToObject()); 57 | else 58 | this.Dependencies[id] = obj.ToObject(); 59 | } 60 | } 61 | } 62 | 63 | public async Task Initialize() { 64 | await this.Settings.Initialize(); 65 | await this.Downloader.Initialize(); 66 | await this.Installer.Initialize(); 67 | 68 | this.Repositories = this.Settings.Config.Repositories; 69 | foreach (RepositoryModel repo in this.Repositories) { 70 | await repo.Initialize(); 71 | } 72 | 73 | // Fetch packages. 74 | await this.UpdatePackages(); 75 | 76 | // TODO: Fetch dependencies. 77 | await this.UpdateDependencies(); 78 | 79 | // Sort packages based on title. 80 | // TODO: do this properly. Perhaps even in the view(s)? 81 | this.Packages = this.Packages.OrderBy(i => i.Value.Title).ToDictionary(x => x.Key, x => x.Value); 82 | } 83 | 84 | public SettingsController Settings { get; } 85 | public DownloadController Downloader { get; } 86 | public InstallController Installer { get; } 87 | public List Repositories { get; set; } // TODO: this should only be get. 88 | public Dictionary Packages { get; set; } = new Dictionary(); 89 | public Dictionary Dependencies { get; set; } = new Dictionary(); 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /Store/Pages/InstallerPage.xaml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 16 | 17 | 18 | 21 | 22 | INSTALLER 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | AppName 54 | AppAuthor 55 | 56 | 57 | 62 | 63 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 90 | 98 | 99 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /Store/Pages/SettingsPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using StoreManager.Models; 2 | using StoreManager.Controllers; 3 | using System; 4 | using System.Collections.ObjectModel; 5 | using System.Threading.Tasks; 6 | using Windows.ApplicationModel; 7 | using Windows.UI.Popups; 8 | using Windows.UI.Xaml; 9 | using Windows.UI.Xaml.Controls; 10 | 11 | // The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238 12 | 13 | namespace Store.Pages { 14 | /// 15 | /// An empty page that can be used on its own or navigated to within a Frame. 16 | /// 17 | internal sealed partial class SettingsPage { 18 | public SettingsPage() { 19 | this.InitializeComponent(); 20 | 21 | PackageVersion version = Package.Current.Id.Version; 22 | this.AppVersionStr.Text = String.Format($"{version.Major}.{version.Minor}.{version.Build}.{version.Revision}"); 23 | 24 | this.AppPkgsStr.Text = App.StoreManager.Packages.Count.ToString(); 25 | this.AppDepsStr.Text = App.StoreManager.Dependencies.Count.ToString(); 26 | this.AppResCntStr.Text = App.StoreManager.Repositories.Count.ToString(); 27 | this.ReposList.ItemsSource = App.StoreManager.Repositories; 28 | } 29 | 30 | private async Task reload() { 31 | await App.StoreManager.Settings.Save(); 32 | await App.StoreManager.Initialize(); 33 | this.Frame.GoBack(); 34 | this.Frame.GoForward(); 35 | } 36 | 37 | private void ReposList_OnSelectionChanged(Object sender, SelectionChangedEventArgs e) { 38 | if (this.ReposList.SelectedItems.Count <= 0) { 39 | this.EditRepoBtn.Visibility = Visibility.Collapsed; 40 | this.AddRepoBtn.Visibility = Visibility.Visible; 41 | this.RemoveRepoBtn.Visibility = Visibility.Collapsed; 42 | this.EditRepoBtn.IsEnabled = false; 43 | this.AddRepoBtn.IsEnabled = true; 44 | this.RemoveRepoBtn.IsEnabled = true; 45 | return; 46 | } 47 | 48 | this.EditRepoBtn.Visibility = Visibility.Visible; 49 | this.AddRepoBtn.Visibility = Visibility.Collapsed; 50 | this.RemoveRepoBtn.Visibility = Visibility.Visible; 51 | this.EditRepoBtn.IsEnabled = true; 52 | this.AddRepoBtn.IsEnabled = false; 53 | this.RemoveRepoBtn.IsEnabled = true; 54 | } 55 | 56 | private async void RemoveRepoBtn_OnClick(Object sender, RoutedEventArgs e) { 57 | // ReSharper disable once InvertIf 58 | if ((this.ReposList.Items?.Count ?? 0) - this.ReposList.SelectedItems.Count <= 0) { 59 | var msg = new MessageDialog("You can't remove all repositories!"); 60 | await msg.ShowAsync(); 61 | return; 62 | } 63 | 64 | // FIXME: there's probably a better way to do this? 65 | foreach (RepositoryModel repo in this.ReposList.SelectedItems) { 66 | App.StoreManager.Settings.Config.Repositories.Remove(repo); 67 | } 68 | 69 | await this.reload(); 70 | } 71 | 72 | private void EditRepoBtn_OnClick(Object sender, RoutedEventArgs e) { 73 | throw new NotImplementedException(); 74 | } 75 | 76 | private async void AddRepoBtn_OnClick(Object sender, RoutedEventArgs e) { 77 | var input = new TextBox() { 78 | Height = (Double)App.Current.Resources["TextControlThemeMinHeight"], 79 | PlaceholderText = "https://w10m-research.github.io/StoreRepository/" 80 | }; 81 | 82 | var dialog = new ContentDialog() { 83 | Title = "Add repository", 84 | MaxWidth = this.ActualWidth, 85 | PrimaryButtonText = "Add", 86 | SecondaryButtonText = "Cancel", 87 | Content = input 88 | }; 89 | 90 | ContentDialogResult result = await dialog.ShowAsync(); 91 | if (result != ContentDialogResult.Primary) 92 | return; 93 | 94 | // FIXME: validate input. 95 | App.StoreManager.Settings.Config.Repositories.Add(new RepositoryModel(((TextBox)dialog.Content).Text)); 96 | await this.reload(); 97 | } 98 | 99 | private void RootPivot_OnSelectionChanged(Object sender, SelectionChangedEventArgs e) { 100 | // ReSharper disable once ConvertIfStatementToConditionalTernaryExpression 101 | if (this.RootPivot.SelectedIndex == 0) 102 | this.AppBar.ClosedDisplayMode = AppBarClosedDisplayMode.Compact; 103 | else 104 | this.AppBar.ClosedDisplayMode = AppBarClosedDisplayMode.Minimal; 105 | } 106 | } 107 | } 108 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | x64/ 19 | x86/ 20 | bld/ 21 | [Bb]in/ 22 | [Oo]bj/ 23 | [Ll]og/ 24 | 25 | # Visual Studio 2015 cache/options directory 26 | .vs/ 27 | # Uncomment if you have tasks that create the project's static files in wwwroot 28 | #wwwroot/ 29 | 30 | # MSTest test Results 31 | [Tt]est[Rr]esult*/ 32 | [Bb]uild[Ll]og.* 33 | 34 | # NUNIT 35 | *.VisualState.xml 36 | TestResult.xml 37 | 38 | # Build Results of an ATL Project 39 | [Dd]ebugPS/ 40 | [Rr]eleasePS/ 41 | dlldata.c 42 | 43 | # DNX 44 | project.lock.json 45 | project.fragment.lock.json 46 | artifacts/ 47 | 48 | *_i.c 49 | *_p.c 50 | *_i.h 51 | *.ilk 52 | *.meta 53 | *.obj 54 | *.pch 55 | *.pdb 56 | *.pgc 57 | *.pgd 58 | *.rsp 59 | *.sbr 60 | *.tlb 61 | *.tli 62 | *.tlh 63 | *.tmp 64 | *.tmp_proj 65 | *.log 66 | *.vspscc 67 | *.vssscc 68 | .builds 69 | *.pidb 70 | *.svclog 71 | *.scc 72 | 73 | # Chutzpah Test files 74 | _Chutzpah* 75 | 76 | # Visual C++ cache files 77 | ipch/ 78 | *.aps 79 | *.ncb 80 | *.opendb 81 | *.opensdf 82 | *.sdf 83 | *.cachefile 84 | *.VC.db 85 | *.VC.VC.opendb 86 | 87 | # Visual Studio profiler 88 | *.psess 89 | *.vsp 90 | *.vspx 91 | *.sap 92 | 93 | # TFS 2012 Local Workspace 94 | $tf/ 95 | 96 | # Guidance Automation Toolkit 97 | *.gpState 98 | 99 | # ReSharper is a .NET coding add-in 100 | _ReSharper*/ 101 | *.[Rr]e[Ss]harper 102 | *.DotSettings.user 103 | 104 | # JustCode is a .NET coding add-in 105 | .JustCode 106 | 107 | # TeamCity is a build add-in 108 | _TeamCity* 109 | 110 | # DotCover is a Code Coverage Tool 111 | *.dotCover 112 | 113 | # NCrunch 114 | _NCrunch_* 115 | .*crunch*.local.xml 116 | nCrunchTemp_* 117 | 118 | # MightyMoose 119 | *.mm.* 120 | AutoTest.Net/ 121 | 122 | # Web workbench (sass) 123 | .sass-cache/ 124 | 125 | # Installshield output folder 126 | [Ee]xpress/ 127 | 128 | # DocProject is a documentation generator add-in 129 | DocProject/buildhelp/ 130 | DocProject/Help/*.HxT 131 | DocProject/Help/*.HxC 132 | DocProject/Help/*.hhc 133 | DocProject/Help/*.hhk 134 | DocProject/Help/*.hhp 135 | DocProject/Help/Html2 136 | DocProject/Help/html 137 | 138 | # Click-Once directory 139 | publish/ 140 | 141 | # Publish Web Output 142 | *.[Pp]ublish.xml 143 | *.azurePubxml 144 | # TODO: Comment the next line if you want to checkin your web deploy settings 145 | # but database connection strings (with potential passwords) will be unencrypted 146 | #*.pubxml 147 | *.publishproj 148 | 149 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 150 | # checkin your Azure Web App publish settings, but sensitive information contained 151 | # in these scripts will be unencrypted 152 | PublishScripts/ 153 | 154 | # NuGet Packages 155 | *.nupkg 156 | # The packages folder can be ignored because of Package Restore 157 | **/packages/* 158 | # except build/, which is used as an MSBuild target. 159 | !**/packages/build/ 160 | # Uncomment if necessary however generally it will be regenerated when needed 161 | #!**/packages/repositories.config 162 | # NuGet v3's project.json files produces more ignoreable files 163 | *.nuget.props 164 | *.nuget.targets 165 | 166 | # Microsoft Azure Build Output 167 | csx/ 168 | *.build.csdef 169 | 170 | # Microsoft Azure Emulator 171 | ecf/ 172 | rcf/ 173 | 174 | # Windows Store app package directories and files 175 | AppPackages/ 176 | BundleArtifacts/ 177 | Package.StoreAssociation.xml 178 | _pkginfo.txt 179 | 180 | # Visual Studio cache files 181 | # files ending in .cache can be ignored 182 | *.[Cc]ache 183 | # but keep track of directories ending in .cache 184 | !*.[Cc]ache/ 185 | 186 | # Others 187 | ClientBin/ 188 | ~$* 189 | *~ 190 | *.dbmdl 191 | *.dbproj.schemaview 192 | *.jfm 193 | *.pfx 194 | *.publishsettings 195 | node_modules/ 196 | orleans.codegen.cs 197 | 198 | # Since there are multiple workflows, uncomment next line to ignore bower_components 199 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 200 | #bower_components/ 201 | 202 | # RIA/Silverlight projects 203 | Generated_Code/ 204 | 205 | # Backup & report files from converting an old project file 206 | # to a newer Visual Studio version. Backup files are not needed, 207 | # because we have git ;-) 208 | _UpgradeReport_Files/ 209 | Backup*/ 210 | UpgradeLog*.XML 211 | UpgradeLog*.htm 212 | 213 | # SQL Server files 214 | *.mdf 215 | *.ldf 216 | 217 | # Business Intelligence projects 218 | *.rdl.data 219 | *.bim.layout 220 | *.bim_*.settings 221 | 222 | # Microsoft Fakes 223 | FakesAssemblies/ 224 | 225 | # GhostDoc plugin setting file 226 | *.GhostDoc.xml 227 | 228 | # Node.js Tools for Visual Studio 229 | .ntvs_analysis.dat 230 | 231 | # Visual Studio 6 build log 232 | *.plg 233 | 234 | # Visual Studio 6 workspace options file 235 | *.opt 236 | 237 | # Visual Studio LightSwitch build output 238 | **/*.HTMLClient/GeneratedArtifacts 239 | **/*.DesktopClient/GeneratedArtifacts 240 | **/*.DesktopClient/ModelManifest.xml 241 | **/*.Server/GeneratedArtifacts 242 | **/*.Server/ModelManifest.xml 243 | _Pvt_Extensions 244 | 245 | # Paket dependency manager 246 | .paket/paket.exe 247 | paket-files/ 248 | 249 | # FAKE - F# Make 250 | .fake/ 251 | 252 | # JetBrains Rider 253 | .idea/ 254 | *.sln.iml 255 | 256 | # CodeRush 257 | .cr/ 258 | 259 | # Python Tools for Visual Studio (PTVS) 260 | __pycache__/ 261 | *.pyc -------------------------------------------------------------------------------- /Store/Pages/SettingsPage.xaml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 18 | 19 | 20 | 21 | 25 | 26 | 27 | 30 | 31 | Settings 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 50 | You need to restart the app for changes to take effect 51 | 52 | 53 | Statistics 54 | Packages. 55 | Dependencies. 56 | Across Repository/Repositories. 57 | 58 | Sources 59 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | About this app 84 | Store . 85 | 86 | Credits 87 | Logo by Mada Creative from the Noun Project. 88 | 89 | Developed with by Filiph Sandström (@filiphsandstrom) and Enrico Angelon (@HerryYT). 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | -------------------------------------------------------------------------------- /PackagesBackgroundTask/PackagesBackgroundTask.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Toolkit.Uwp.Notifications; 2 | using System; 3 | using System.Collections.Generic; 4 | using Windows.ApplicationModel.Background; 5 | using Windows.Data.Xml.Dom; 6 | using Windows.UI.Notifications; 7 | using StoreManager.Controllers; 8 | using StoreManager.Models; 9 | using System.Linq; 10 | 11 | namespace PackagesBackgroundTask { 12 | public sealed class PackagesBackgroundTask : IBackgroundTask { 13 | private BackgroundTaskDeferral _deferral; 14 | public async void Run(IBackgroundTaskInstance taskInstance) { 15 | // Get a deferral, to prevent the task from closing prematurely 16 | // while asynchronous code is still running. 17 | this._deferral = taskInstance.GetDeferral(); 18 | 19 | // Download packages 20 | var store = new StoreController(); 21 | await store.Initialize(); 22 | 23 | // Update the live tile with the feed items. 24 | UpdateTile(store.Packages.Values.ToList()); 25 | 26 | // Inform the system that the task is finished. 27 | this._deferral.Complete(); 28 | } 29 | 30 | public static void UpdateTile(Object packages) { 31 | // Create tile updater. 32 | TileUpdater updater = TileUpdateManager.CreateTileUpdaterForApplication(); 33 | updater.EnableNotificationQueue(true); 34 | updater.Clear(); 35 | 36 | // Keep track of the number feed items that get tile notifications. 37 | Int32 itemCount = 0; 38 | 39 | // Randomize order. 40 | var selectedPackages = (List)packages; 41 | var rnd = new Random(); 42 | selectedPackages.OrderBy(item => rnd.Next()); 43 | 44 | foreach (AppModel item in selectedPackages) { 45 | // TODO: proper xml here, so we can handle all sizes 46 | var content = new TileContent() { 47 | Visual = new TileVisual() { 48 | Branding = TileBranding.NameAndLogo, 49 | TileMedium = new TileBinding() { 50 | Content = new TileBindingContentAdaptive() { 51 | PeekImage = new TilePeekImage() { 52 | Source = item.LogoUrl 53 | }, 54 | Children = 55 | { 56 | new AdaptiveText() 57 | { 58 | Text = item.Title, 59 | HintStyle = AdaptiveTextStyle.Caption, 60 | HintWrap = true 61 | }, 62 | 63 | new AdaptiveText() 64 | { 65 | Text = item.Description.Replace("\n", " "), // TODO: do this properly. 66 | HintStyle = AdaptiveTextStyle.CaptionSubtle, 67 | HintWrap = true 68 | } 69 | } 70 | } 71 | }, 72 | TileWide = new TileBinding() { 73 | Content = new TileBindingContentAdaptive() { 74 | PeekImage = new TilePeekImage() { 75 | Source = item.LogoUrl 76 | }, 77 | Children = 78 | { 79 | new AdaptiveText() 80 | { 81 | Text = item.Title, 82 | HintStyle = AdaptiveTextStyle.Caption, 83 | HintWrap = true 84 | }, 85 | 86 | new AdaptiveText() 87 | { 88 | Text = item.Description.Replace("\n", " "), // TODO: do this properly. 89 | HintStyle = AdaptiveTextStyle.CaptionSubtle, 90 | HintWrap = true 91 | } 92 | } 93 | } 94 | } 95 | } 96 | }; 97 | 98 | // Create a new tile notification. 99 | updater.Update(new TileNotification(content.GetXml())); 100 | 101 | // Don't create more than 5 notifications. 102 | if (itemCount++ > 5) break; 103 | } 104 | 105 | // Set badge 106 | { 107 | // Get the blank badge XML payload for a badge number. 108 | XmlDocument badgeXml = 109 | BadgeUpdateManager.GetTemplateContent(BadgeTemplateType.BadgeNumber); 110 | 111 | // Set the value of the badge in the XML to our number. 112 | var badgeElement = badgeXml.SelectSingleNode("/badge") as XmlElement; 113 | badgeElement?.SetAttribute("value", "0"); // TODO: get updateable packages count 114 | 115 | // Create the badge notification. 116 | var badge = new BadgeNotification(badgeXml); 117 | 118 | // Create the badge updater for the application. 119 | BadgeUpdater badgeUpdater = 120 | BadgeUpdateManager.CreateBadgeUpdaterForApplication(); 121 | 122 | // And update the badge. 123 | badgeUpdater.Update(badge); 124 | } 125 | } 126 | } 127 | } -------------------------------------------------------------------------------- /Store.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.28307.1738 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Store", "Store\Store.csproj", "{6CABD744-893D-47A0-B580-0B95547242A8}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PackagesBackgroundTask", "PackagesBackgroundTask\PackagesBackgroundTask.csproj", "{D0032103-E526-4EEC-A413-D860253D27E6}" 9 | EndProject 10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StoreManager", "StoreManager\StoreManager.csproj", "{CE9F7D32-BFAB-41C0-A6D1-ED2378B11793}" 11 | EndProject 12 | Global 13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 14 | Debug|Any CPU = Debug|Any CPU 15 | Debug|ARM = Debug|ARM 16 | Debug|ARM64 = Debug|ARM64 17 | Debug|x64 = Debug|x64 18 | Debug|x86 = Debug|x86 19 | Release|Any CPU = Release|Any CPU 20 | Release|ARM = Release|ARM 21 | Release|ARM64 = Release|ARM64 22 | Release|x64 = Release|x64 23 | Release|x86 = Release|x86 24 | EndGlobalSection 25 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 26 | {6CABD744-893D-47A0-B580-0B95547242A8}.Debug|Any CPU.ActiveCfg = Debug|x86 27 | {6CABD744-893D-47A0-B580-0B95547242A8}.Debug|ARM.ActiveCfg = Debug|ARM 28 | {6CABD744-893D-47A0-B580-0B95547242A8}.Debug|ARM.Build.0 = Debug|ARM 29 | {6CABD744-893D-47A0-B580-0B95547242A8}.Debug|ARM.Deploy.0 = Debug|ARM 30 | {6CABD744-893D-47A0-B580-0B95547242A8}.Debug|ARM64.ActiveCfg = Debug|ARM64 31 | {6CABD744-893D-47A0-B580-0B95547242A8}.Debug|ARM64.Build.0 = Debug|ARM64 32 | {6CABD744-893D-47A0-B580-0B95547242A8}.Debug|ARM64.Deploy.0 = Debug|ARM64 33 | {6CABD744-893D-47A0-B580-0B95547242A8}.Debug|x64.ActiveCfg = Debug|x64 34 | {6CABD744-893D-47A0-B580-0B95547242A8}.Debug|x64.Build.0 = Debug|x64 35 | {6CABD744-893D-47A0-B580-0B95547242A8}.Debug|x64.Deploy.0 = Debug|x64 36 | {6CABD744-893D-47A0-B580-0B95547242A8}.Debug|x86.ActiveCfg = Debug|x86 37 | {6CABD744-893D-47A0-B580-0B95547242A8}.Debug|x86.Build.0 = Debug|x86 38 | {6CABD744-893D-47A0-B580-0B95547242A8}.Debug|x86.Deploy.0 = Debug|x86 39 | {6CABD744-893D-47A0-B580-0B95547242A8}.Release|Any CPU.ActiveCfg = Release|x86 40 | {6CABD744-893D-47A0-B580-0B95547242A8}.Release|ARM.ActiveCfg = Release|ARM 41 | {6CABD744-893D-47A0-B580-0B95547242A8}.Release|ARM.Build.0 = Release|ARM 42 | {6CABD744-893D-47A0-B580-0B95547242A8}.Release|ARM.Deploy.0 = Release|ARM 43 | {6CABD744-893D-47A0-B580-0B95547242A8}.Release|ARM64.ActiveCfg = Release|ARM64 44 | {6CABD744-893D-47A0-B580-0B95547242A8}.Release|ARM64.Build.0 = Release|ARM64 45 | {6CABD744-893D-47A0-B580-0B95547242A8}.Release|ARM64.Deploy.0 = Release|ARM64 46 | {6CABD744-893D-47A0-B580-0B95547242A8}.Release|x64.ActiveCfg = Release|x64 47 | {6CABD744-893D-47A0-B580-0B95547242A8}.Release|x64.Build.0 = Release|x64 48 | {6CABD744-893D-47A0-B580-0B95547242A8}.Release|x64.Deploy.0 = Release|x64 49 | {6CABD744-893D-47A0-B580-0B95547242A8}.Release|x86.ActiveCfg = Release|x86 50 | {6CABD744-893D-47A0-B580-0B95547242A8}.Release|x86.Build.0 = Release|x86 51 | {6CABD744-893D-47A0-B580-0B95547242A8}.Release|x86.Deploy.0 = Release|x86 52 | {D0032103-E526-4EEC-A413-D860253D27E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 53 | {D0032103-E526-4EEC-A413-D860253D27E6}.Debug|Any CPU.Build.0 = Debug|Any CPU 54 | {D0032103-E526-4EEC-A413-D860253D27E6}.Debug|ARM.ActiveCfg = Debug|ARM 55 | {D0032103-E526-4EEC-A413-D860253D27E6}.Debug|ARM.Build.0 = Debug|ARM 56 | {D0032103-E526-4EEC-A413-D860253D27E6}.Debug|ARM64.ActiveCfg = Debug|ARM64 57 | {D0032103-E526-4EEC-A413-D860253D27E6}.Debug|ARM64.Build.0 = Debug|ARM64 58 | {D0032103-E526-4EEC-A413-D860253D27E6}.Debug|x64.ActiveCfg = Debug|x64 59 | {D0032103-E526-4EEC-A413-D860253D27E6}.Debug|x64.Build.0 = Debug|x64 60 | {D0032103-E526-4EEC-A413-D860253D27E6}.Debug|x86.ActiveCfg = Debug|x86 61 | {D0032103-E526-4EEC-A413-D860253D27E6}.Debug|x86.Build.0 = Debug|x86 62 | {D0032103-E526-4EEC-A413-D860253D27E6}.Release|Any CPU.ActiveCfg = Release|Any CPU 63 | {D0032103-E526-4EEC-A413-D860253D27E6}.Release|Any CPU.Build.0 = Release|Any CPU 64 | {D0032103-E526-4EEC-A413-D860253D27E6}.Release|ARM.ActiveCfg = Release|ARM 65 | {D0032103-E526-4EEC-A413-D860253D27E6}.Release|ARM.Build.0 = Release|ARM 66 | {D0032103-E526-4EEC-A413-D860253D27E6}.Release|ARM64.ActiveCfg = Release|ARM64 67 | {D0032103-E526-4EEC-A413-D860253D27E6}.Release|ARM64.Build.0 = Release|ARM64 68 | {D0032103-E526-4EEC-A413-D860253D27E6}.Release|x64.ActiveCfg = Release|x64 69 | {D0032103-E526-4EEC-A413-D860253D27E6}.Release|x64.Build.0 = Release|x64 70 | {D0032103-E526-4EEC-A413-D860253D27E6}.Release|x86.ActiveCfg = Release|x86 71 | {D0032103-E526-4EEC-A413-D860253D27E6}.Release|x86.Build.0 = Release|x86 72 | {CE9F7D32-BFAB-41C0-A6D1-ED2378B11793}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 73 | {CE9F7D32-BFAB-41C0-A6D1-ED2378B11793}.Debug|Any CPU.Build.0 = Debug|Any CPU 74 | {CE9F7D32-BFAB-41C0-A6D1-ED2378B11793}.Debug|ARM.ActiveCfg = Debug|ARM 75 | {CE9F7D32-BFAB-41C0-A6D1-ED2378B11793}.Debug|ARM.Build.0 = Debug|ARM 76 | {CE9F7D32-BFAB-41C0-A6D1-ED2378B11793}.Debug|ARM64.ActiveCfg = Debug|ARM64 77 | {CE9F7D32-BFAB-41C0-A6D1-ED2378B11793}.Debug|ARM64.Build.0 = Debug|ARM64 78 | {CE9F7D32-BFAB-41C0-A6D1-ED2378B11793}.Debug|x64.ActiveCfg = Debug|x64 79 | {CE9F7D32-BFAB-41C0-A6D1-ED2378B11793}.Debug|x64.Build.0 = Debug|x64 80 | {CE9F7D32-BFAB-41C0-A6D1-ED2378B11793}.Debug|x86.ActiveCfg = Debug|x86 81 | {CE9F7D32-BFAB-41C0-A6D1-ED2378B11793}.Debug|x86.Build.0 = Debug|x86 82 | {CE9F7D32-BFAB-41C0-A6D1-ED2378B11793}.Release|Any CPU.ActiveCfg = Release|Any CPU 83 | {CE9F7D32-BFAB-41C0-A6D1-ED2378B11793}.Release|Any CPU.Build.0 = Release|Any CPU 84 | {CE9F7D32-BFAB-41C0-A6D1-ED2378B11793}.Release|ARM.ActiveCfg = Release|ARM 85 | {CE9F7D32-BFAB-41C0-A6D1-ED2378B11793}.Release|ARM.Build.0 = Release|ARM 86 | {CE9F7D32-BFAB-41C0-A6D1-ED2378B11793}.Release|ARM64.ActiveCfg = Release|ARM64 87 | {CE9F7D32-BFAB-41C0-A6D1-ED2378B11793}.Release|ARM64.Build.0 = Release|ARM64 88 | {CE9F7D32-BFAB-41C0-A6D1-ED2378B11793}.Release|x64.ActiveCfg = Release|x64 89 | {CE9F7D32-BFAB-41C0-A6D1-ED2378B11793}.Release|x64.Build.0 = Release|x64 90 | {CE9F7D32-BFAB-41C0-A6D1-ED2378B11793}.Release|x86.ActiveCfg = Release|x86 91 | {CE9F7D32-BFAB-41C0-A6D1-ED2378B11793}.Release|x86.Build.0 = Release|x86 92 | EndGlobalSection 93 | GlobalSection(SolutionProperties) = preSolution 94 | HideSolutionNode = FALSE 95 | EndGlobalSection 96 | GlobalSection(ExtensibilityGlobals) = postSolution 97 | SolutionGuid = {0B615920-9B82-413B-A3EF-BC4CCCA9C868} 98 | EndGlobalSection 99 | EndGlobal 100 | -------------------------------------------------------------------------------- /Store/Pages/PackagesPage.xaml: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 19 | 20 | 21 | 22 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 36 | 37 | Store 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 77 | 78 | 79 | 80 | 81 | /Assets/PlaceholderAppIcon.png 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /Store/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Windows.ApplicationModel; 3 | using Windows.ApplicationModel.Activation; 4 | using Windows.UI.Core; 5 | using Windows.UI.Xaml; 6 | using Windows.UI.Xaml.Controls; 7 | using Windows.UI.Xaml.Navigation; 8 | using StoreManager.Controllers; 9 | using System.Diagnostics; 10 | using System.Threading.Tasks; 11 | using Windows.ApplicationModel.Background; 12 | using Windows.ApplicationModel.Core; 13 | using Windows.UI.Xaml.Media.Animation; 14 | 15 | namespace Store { 16 | /// 17 | /// Provides application-specific behavior to supplement the default Application class. 18 | /// 19 | sealed partial class App { 20 | private Frame _rootFrame; 21 | internal static StoreController StoreManager { get; set; } = new StoreController(); 22 | 23 | /// 24 | /// Initializes the singleton application object. This is the first line of authored code 25 | /// executed, and as such is the logical equivalent of main() or WinMain(). 26 | /// 27 | internal App() { 28 | this.InitializeComponent(); 29 | 30 | this.Suspending += this.OnSuspending; 31 | this.UnhandledException += (sender, ex) => { 32 | ex.Handled = true; 33 | this._rootFrame.Navigate(typeof(Pages.ErrorPage), ex.Exception, new DrillInNavigationTransitionInfo()); 34 | }; 35 | TaskScheduler.UnobservedTaskException += (sender, ex) => { 36 | ex.SetObserved(); 37 | this._rootFrame.Navigate(typeof(Pages.ErrorPage), ex.Exception, new DrillInNavigationTransitionInfo()); 38 | }; 39 | } 40 | 41 | /// 42 | /// Invoked when the application is launched normally by the end user. Other entry points 43 | /// will be used such as when the application is launched to open a specific file. 44 | /// 45 | /// Details about the launch request and process. 46 | protected override void OnLaunched(LaunchActivatedEventArgs e) { 47 | // TODO: Handle titlebar. 48 | //CoreApplicationViewTitleBar coreTitleBar = CoreApplication.GetCurrentView().TitleBar; 49 | //coreTitleBar.ExtendViewIntoTitleBar = true; 50 | 51 | this._rootFrame = (Frame)Window.Current.Content; 52 | // Do not repeat app initialization when the Window already has content, 53 | // just ensure that the window is active 54 | if (this._rootFrame == null) { 55 | // Create a Frame to act as the navigation context and navigate to the first page 56 | this._rootFrame = new Frame(); 57 | 58 | this._rootFrame.NavigationFailed += this.OnNavigationFailed; 59 | 60 | if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) { 61 | //TODO: Load state from previously suspended application 62 | } 63 | 64 | // Place the frame in the current Window 65 | Window.Current.Content = this._rootFrame; 66 | } 67 | 68 | if (e.PrelaunchActivated) return; 69 | if (this._rootFrame.Content == null) { 70 | // When the navigation stack isn't restored navigate to the first page, 71 | // configuring the new page by passing required information as a navigation 72 | // parameter 73 | this._rootFrame.Navigate(typeof(MainPage), e.Arguments); 74 | } 75 | 76 | SystemNavigationManager.GetForCurrentView().BackRequested += this.OnBackRequested; 77 | SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = 78 | AppViewBackButtonVisibility.Visible; 79 | 80 | // Ensure the current window is active 81 | Window.Current.Activate(); 82 | } 83 | 84 | /// 85 | /// Invoked when Navigation to a certain page fails 86 | /// 87 | /// The Frame which failed navigation 88 | /// Details about the navigation failure 89 | void OnNavigationFailed(Object sender, NavigationFailedEventArgs e) { 90 | throw new Exception("Failed to load Page " + e.SourcePageType.FullName); 91 | } 92 | 93 | /// 94 | /// Invoked when application execution is being suspended. Application state is saved 95 | /// without knowing whether the application will be terminated or resumed with the contents 96 | /// of memory still intact. 97 | /// 98 | /// The source of the suspend request. 99 | /// Details about the suspend request. 100 | private void OnSuspending(Object sender, SuspendingEventArgs e) { 101 | SuspendingDeferral deferral = e.SuspendingOperation.GetDeferral(); 102 | //TODO: Save application state and stop any background activity 103 | deferral.Complete(); 104 | } 105 | 106 | protected override async void OnActivated(IActivatedEventArgs args) { 107 | this._rootFrame = (Frame)Window.Current.Content; 108 | if (this._rootFrame == null) { 109 | this._rootFrame = new Frame(); 110 | Window.Current.Content = this._rootFrame; 111 | } 112 | 113 | if (args.Kind == ActivationKind.Protocol) { 114 | var eventArgs = args as ProtocolActivatedEventArgs; 115 | // TODO: error if app doesnt exist 116 | // TODO: somehow handle outside repo 117 | await App.StoreManager.Initialize(); 118 | this._rootFrame.Navigate(typeof(Pages.AppPage), App.StoreManager.Packages[eventArgs.Uri.Host]); 119 | } 120 | 121 | SystemNavigationManager.GetForCurrentView().BackRequested += this.OnBackRequested; 122 | Window.Current.Activate(); 123 | } 124 | 125 | private void OnBackRequested(Object sender, BackRequestedEventArgs e) { 126 | var rootFrame = Window.Current.Content as Frame; 127 | if (!rootFrame.CanGoBack) { 128 | Application.Current.Exit(); 129 | return; 130 | } 131 | 132 | rootFrame.GoBack(new ContinuumNavigationTransitionInfo()); 133 | e.Handled = true; 134 | } 135 | 136 | public static BackgroundTaskRegistration RegisterBackgroundTask( 137 | String taskEntryPoint, 138 | String name, 139 | IBackgroundTrigger trigger, 140 | IBackgroundCondition condition) { 141 | 142 | return null; 143 | } 144 | } 145 | } -------------------------------------------------------------------------------- /PackagesBackgroundTask/PackagesBackgroundTask.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {D0032103-E526-4EEC-A413-D860253D27E6} 8 | winmdobj 9 | Properties 10 | PackagesBackgroundTask 11 | PackagesBackgroundTask 12 | en-US 13 | UAP 14 | 10.0.15063.0 15 | 10.0.15063.0 16 | 14 17 | 512 18 | {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 19 | false 20 | 21 | 22 | AnyCPU 23 | true 24 | full 25 | false 26 | bin\Debug\ 27 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 28 | prompt 29 | 4 30 | 31 | 32 | AnyCPU 33 | pdbonly 34 | true 35 | bin\Release\ 36 | TRACE;NETFX_CORE;WINDOWS_UWP 37 | prompt 38 | 4 39 | 40 | 41 | x86 42 | true 43 | bin\x86\Debug\ 44 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 45 | ;2008 46 | full 47 | false 48 | prompt 49 | 50 | 51 | x86 52 | bin\x86\Release\ 53 | TRACE;NETFX_CORE;WINDOWS_UWP 54 | true 55 | ;2008 56 | pdbonly 57 | false 58 | prompt 59 | 60 | 61 | ARM 62 | true 63 | bin\ARM\Debug\ 64 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 65 | ;2008 66 | full 67 | false 68 | prompt 69 | 70 | 71 | ARM 72 | bin\ARM\Release\ 73 | TRACE;NETFX_CORE;WINDOWS_UWP 74 | true 75 | ;2008 76 | pdbonly 77 | false 78 | prompt 79 | 80 | 81 | ARM64 82 | true 83 | bin\ARM64\Debug\ 84 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 85 | ;2008 86 | full 87 | false 88 | prompt 89 | 90 | 91 | ARM64 92 | bin\ARM64\Release\ 93 | TRACE;NETFX_CORE;WINDOWS_UWP 94 | true 95 | ;2008 96 | pdbonly 97 | false 98 | prompt 99 | 100 | 101 | x64 102 | true 103 | bin\x64\Debug\ 104 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 105 | ;2008 106 | full 107 | false 108 | prompt 109 | 110 | 111 | x64 112 | bin\x64\Release\ 113 | TRACE;NETFX_CORE;WINDOWS_UWP 114 | true 115 | ;2008 116 | pdbonly 117 | false 118 | prompt 119 | 120 | 121 | PackageReference 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 6.2.8 130 | 131 | 132 | 7.1.2 133 | 134 | 135 | 136 | 137 | {ce9f7d32-bfab-41c0-a6d1-ed2378b11793} 138 | StoreManager 139 | 140 | 141 | 142 | 14.0 143 | 144 | 145 | 152 | -------------------------------------------------------------------------------- /StoreManager/StoreManager.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {CE9F7D32-BFAB-41C0-A6D1-ED2378B11793} 8 | Library 9 | Properties 10 | StoreManager 11 | StoreManager 12 | en-US 13 | UAP 14 | 10.0.15063.0 15 | 10.0.15063.0 16 | 14 17 | 512 18 | {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 19 | 20 | 21 | AnyCPU 22 | true 23 | full 24 | false 25 | bin\Debug\ 26 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 27 | prompt 28 | 4 29 | 30 | 31 | AnyCPU 32 | pdbonly 33 | true 34 | bin\Release\ 35 | TRACE;NETFX_CORE;WINDOWS_UWP 36 | prompt 37 | 4 38 | 39 | 40 | x86 41 | true 42 | bin\x86\Debug\ 43 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 44 | ;2008 45 | full 46 | false 47 | prompt 48 | 49 | 50 | x86 51 | bin\x86\Release\ 52 | TRACE;NETFX_CORE;WINDOWS_UWP 53 | true 54 | ;2008 55 | pdbonly 56 | false 57 | prompt 58 | 59 | 60 | ARM 61 | true 62 | bin\ARM\Debug\ 63 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 64 | ;2008 65 | full 66 | false 67 | prompt 68 | 69 | 70 | ARM 71 | bin\ARM\Release\ 72 | TRACE;NETFX_CORE;WINDOWS_UWP 73 | true 74 | ;2008 75 | pdbonly 76 | false 77 | prompt 78 | 79 | 80 | ARM64 81 | true 82 | bin\ARM64\Debug\ 83 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 84 | ;2008 85 | full 86 | false 87 | prompt 88 | 89 | 90 | ARM64 91 | bin\ARM64\Release\ 92 | TRACE;NETFX_CORE;WINDOWS_UWP 93 | true 94 | ;2008 95 | pdbonly 96 | false 97 | prompt 98 | 99 | 100 | x64 101 | true 102 | bin\x64\Debug\ 103 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 104 | ;2008 105 | full 106 | false 107 | prompt 108 | 109 | 110 | x64 111 | bin\x64\Release\ 112 | TRACE;NETFX_CORE;WINDOWS_UWP 113 | true 114 | ;2008 115 | pdbonly 116 | false 117 | prompt 118 | 119 | 120 | PackageReference 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 6.2.8 136 | 137 | 138 | 13.0.1 139 | 140 | 141 | 142 | 14.0 143 | 144 | 145 | 152 | -------------------------------------------------------------------------------- /Store/Pages/AppPage.xaml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 17 | 18 | 19 | 20 | 24 | 25 | 26 | 29 | 30 | AppName 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 58 | AppName 59 | AppAuthor 60 | 61 | 62 | 63 | 68 | 69 | 70 | 71 | 75 | AppDescription 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | Information 84 | Version: . 85 | Namespace: . 86 | Last updated: . 87 | Size: MB. 88 | 89 | 93 | Contributors 94 | 95 | 100 | 101 | 102 | 103 | 104 | 107 | 108 | 109 | 110 | 111 | 112 | 116 | Dependencies 117 | 118 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 150 | 160 | 161 | 162 | 163 | 164 | 165 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # Remove the line below if you want to inherit .editorconfig settings from higher directories 2 | root = true 3 | 4 | # C# files 5 | [*.cs] 6 | 7 | #### Core EditorConfig Options #### 8 | 9 | # Indentation and spacing 10 | indent_size = 4 11 | indent_style = space 12 | tab_width = 4 13 | 14 | # New line preferences 15 | end_of_line = crlf 16 | insert_final_newline = false 17 | 18 | #### .NET Coding Conventions #### 19 | 20 | # Organize usings 21 | dotnet_separate_import_directive_groups = false 22 | dotnet_sort_system_directives_first = false 23 | file_header_template = unset 24 | 25 | # this. and Me. preferences 26 | dotnet_style_qualification_for_event = true:error 27 | dotnet_style_qualification_for_field = true 28 | dotnet_style_qualification_for_method = true:error 29 | dotnet_style_qualification_for_property = true:error 30 | 31 | # Language keywords vs BCL types preferences 32 | dotnet_style_predefined_type_for_locals_parameters_members = false:error 33 | dotnet_style_predefined_type_for_member_access = false:error 34 | 35 | # Parentheses preferences 36 | dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity 37 | dotnet_style_parentheses_in_other_binary_operators = always_for_clarity 38 | dotnet_style_parentheses_in_other_operators = never_if_unnecessary 39 | dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity 40 | 41 | # Modifier preferences 42 | dotnet_style_require_accessibility_modifiers = for_non_interface_members 43 | 44 | # Expression-level preferences 45 | dotnet_style_coalesce_expression = true 46 | dotnet_style_collection_initializer = true:error 47 | dotnet_style_explicit_tuple_names = true 48 | dotnet_style_namespace_match_folder = true 49 | dotnet_style_null_propagation = true 50 | dotnet_style_object_initializer = true:error 51 | dotnet_style_operator_placement_when_wrapping = beginning_of_line 52 | dotnet_style_prefer_auto_properties = true:error 53 | dotnet_style_prefer_compound_assignment = true 54 | dotnet_style_prefer_conditional_expression_over_assignment = true 55 | dotnet_style_prefer_conditional_expression_over_return = true 56 | dotnet_style_prefer_inferred_anonymous_type_member_names = true 57 | dotnet_style_prefer_inferred_tuple_names = true 58 | dotnet_style_prefer_is_null_check_over_reference_equality_method = true 59 | dotnet_style_prefer_simplified_boolean_expressions = true 60 | dotnet_style_prefer_simplified_interpolation = true 61 | 62 | # Field preferences 63 | dotnet_style_readonly_field = true 64 | 65 | # Parameter preferences 66 | dotnet_code_quality_unused_parameters = all 67 | 68 | # Suppression preferences 69 | dotnet_remove_unnecessary_suppression_exclusions = none 70 | 71 | # New line preferences 72 | dotnet_style_allow_multiple_blank_lines_experimental = true 73 | dotnet_style_allow_statement_immediately_after_block_experimental = true 74 | 75 | #### C# Coding Conventions #### 76 | 77 | # var preferences 78 | csharp_style_var_elsewhere = false 79 | csharp_style_var_for_built_in_types = false:error 80 | csharp_style_var_when_type_is_apparent = true:error 81 | 82 | # Expression-bodied members 83 | csharp_style_expression_bodied_accessors = true 84 | csharp_style_expression_bodied_constructors = false 85 | csharp_style_expression_bodied_indexers = true 86 | csharp_style_expression_bodied_lambdas = true 87 | csharp_style_expression_bodied_local_functions = false 88 | csharp_style_expression_bodied_methods = false 89 | csharp_style_expression_bodied_operators = false 90 | csharp_style_expression_bodied_properties = true 91 | 92 | # Pattern matching preferences 93 | csharp_style_pattern_matching_over_as_with_null_check = true 94 | csharp_style_pattern_matching_over_is_with_cast_check = true 95 | csharp_style_prefer_not_pattern = true 96 | csharp_style_prefer_pattern_matching = true 97 | csharp_style_prefer_switch_expression = true 98 | 99 | # Null-checking preferences 100 | csharp_style_conditional_delegate_call = true 101 | 102 | # Modifier preferences 103 | csharp_prefer_static_local_function = true 104 | csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async 105 | 106 | # Code-block preferences 107 | csharp_prefer_braces = true 108 | csharp_prefer_simple_using_statement = true 109 | csharp_style_namespace_declarations = block_scoped:error 110 | 111 | # Expression-level preferences 112 | csharp_prefer_simple_default_expression = true 113 | csharp_style_deconstructed_variable_declaration = true 114 | csharp_style_implicit_object_creation_when_type_is_apparent = true 115 | csharp_style_inlined_variable_declaration = true 116 | csharp_style_pattern_local_over_anonymous_function = true 117 | csharp_style_prefer_index_operator = true 118 | csharp_style_prefer_null_check_over_type_check = true 119 | csharp_style_prefer_range_operator = true 120 | csharp_style_throw_expression = true 121 | csharp_style_unused_value_assignment_preference = discard_variable 122 | csharp_style_unused_value_expression_statement_preference = discard_variable 123 | 124 | # 'using' directive preferences 125 | csharp_using_directive_placement = outside_namespace 126 | 127 | # New line preferences 128 | csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true 129 | csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true 130 | csharp_style_allow_embedded_statements_on_same_line_experimental = true 131 | 132 | #### C# Formatting Rules #### 133 | 134 | # New line preferences 135 | csharp_new_line_before_catch = false 136 | csharp_new_line_before_else = false 137 | csharp_new_line_before_finally = false 138 | csharp_new_line_before_members_in_anonymous_types = true 139 | csharp_new_line_before_members_in_object_initializers = true 140 | csharp_new_line_before_open_brace = none 141 | csharp_new_line_between_query_expression_clauses = false 142 | 143 | # Indentation preferences 144 | csharp_indent_block_contents = true 145 | csharp_indent_braces = false 146 | csharp_indent_case_contents = true 147 | csharp_indent_case_contents_when_block = true 148 | csharp_indent_labels = one_less_than_current 149 | csharp_indent_switch_labels = true 150 | 151 | # Space preferences 152 | csharp_space_after_cast = false 153 | csharp_space_after_colon_in_inheritance_clause = true 154 | csharp_space_after_comma = true 155 | csharp_space_after_dot = false 156 | csharp_space_after_keywords_in_control_flow_statements = true 157 | csharp_space_after_semicolon_in_for_statement = true 158 | csharp_space_around_binary_operators = before_and_after 159 | csharp_space_around_declaration_statements = false 160 | csharp_space_before_colon_in_inheritance_clause = true 161 | csharp_space_before_comma = false 162 | csharp_space_before_dot = false 163 | csharp_space_before_open_square_brackets = false 164 | csharp_space_before_semicolon_in_for_statement = false 165 | csharp_space_between_empty_square_brackets = false 166 | csharp_space_between_method_call_empty_parameter_list_parentheses = false 167 | csharp_space_between_method_call_name_and_opening_parenthesis = false 168 | csharp_space_between_method_call_parameter_list_parentheses = false 169 | csharp_space_between_method_declaration_empty_parameter_list_parentheses = false 170 | csharp_space_between_method_declaration_name_and_open_parenthesis = false 171 | csharp_space_between_method_declaration_parameter_list_parentheses = false 172 | csharp_space_between_parentheses = false 173 | csharp_space_between_square_brackets = false 174 | 175 | # Wrapping preferences 176 | csharp_preserve_single_line_blocks = true 177 | csharp_preserve_single_line_statements = true 178 | 179 | #### Naming styles #### 180 | 181 | # Naming rules 182 | 183 | dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion 184 | dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface 185 | dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i 186 | 187 | dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion 188 | dotnet_naming_rule.types_should_be_pascal_case.symbols = types 189 | dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case 190 | 191 | dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion 192 | dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members 193 | dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case 194 | 195 | # Symbol specifications 196 | 197 | dotnet_naming_symbols.interface.applicable_kinds = interface 198 | dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected 199 | dotnet_naming_symbols.interface.required_modifiers = 200 | 201 | dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum 202 | dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected 203 | dotnet_naming_symbols.types.required_modifiers = 204 | 205 | dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method 206 | dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected 207 | dotnet_naming_symbols.non_field_members.required_modifiers = 208 | 209 | # Naming styles 210 | 211 | dotnet_naming_style.pascal_case.required_prefix = 212 | dotnet_naming_style.pascal_case.required_suffix = 213 | dotnet_naming_style.pascal_case.word_separator = 214 | dotnet_naming_style.pascal_case.capitalization = pascal_case 215 | 216 | dotnet_naming_style.begins_with_i.required_prefix = I 217 | dotnet_naming_style.begins_with_i.required_suffix = 218 | dotnet_naming_style.begins_with_i.word_separator = 219 | dotnet_naming_style.begins_with_i.capitalization = pascal_case 220 | -------------------------------------------------------------------------------- /Store/.editorconfig: -------------------------------------------------------------------------------- 1 | # Remove the line below if you want to inherit .editorconfig settings from higher directories 2 | root = true 3 | 4 | # C# files 5 | [*.cs] 6 | 7 | #### Core EditorConfig Options #### 8 | 9 | # Indentation and spacing 10 | indent_size = 4 11 | indent_style = space 12 | tab_width = 4 13 | 14 | # New line preferences 15 | end_of_line = crlf 16 | insert_final_newline = false 17 | 18 | #### .NET Coding Conventions #### 19 | 20 | # Organize usings 21 | dotnet_separate_import_directive_groups = false 22 | dotnet_sort_system_directives_first = false 23 | file_header_template = unset 24 | 25 | # this. and Me. preferences 26 | dotnet_style_qualification_for_event = true:error 27 | dotnet_style_qualification_for_field = true 28 | dotnet_style_qualification_for_method = true:error 29 | dotnet_style_qualification_for_property = true:error 30 | 31 | # Language keywords vs BCL types preferences 32 | dotnet_style_predefined_type_for_locals_parameters_members = false:error 33 | dotnet_style_predefined_type_for_member_access = false:error 34 | 35 | # Parentheses preferences 36 | dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity 37 | dotnet_style_parentheses_in_other_binary_operators = always_for_clarity 38 | dotnet_style_parentheses_in_other_operators = never_if_unnecessary 39 | dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity 40 | 41 | # Modifier preferences 42 | dotnet_style_require_accessibility_modifiers = for_non_interface_members 43 | 44 | # Expression-level preferences 45 | dotnet_style_coalesce_expression = true 46 | dotnet_style_collection_initializer = true:error 47 | dotnet_style_explicit_tuple_names = true 48 | dotnet_style_namespace_match_folder = true 49 | dotnet_style_null_propagation = true 50 | dotnet_style_object_initializer = true:error 51 | dotnet_style_operator_placement_when_wrapping = beginning_of_line 52 | dotnet_style_prefer_auto_properties = true:error 53 | dotnet_style_prefer_compound_assignment = true 54 | dotnet_style_prefer_conditional_expression_over_assignment = true 55 | dotnet_style_prefer_conditional_expression_over_return = true 56 | dotnet_style_prefer_inferred_anonymous_type_member_names = true 57 | dotnet_style_prefer_inferred_tuple_names = true 58 | dotnet_style_prefer_is_null_check_over_reference_equality_method = true 59 | dotnet_style_prefer_simplified_boolean_expressions = true 60 | dotnet_style_prefer_simplified_interpolation = true 61 | 62 | # Field preferences 63 | dotnet_style_readonly_field = true 64 | 65 | # Parameter preferences 66 | dotnet_code_quality_unused_parameters = all 67 | 68 | # Suppression preferences 69 | dotnet_remove_unnecessary_suppression_exclusions = none 70 | 71 | # New line preferences 72 | dotnet_style_allow_multiple_blank_lines_experimental = true 73 | dotnet_style_allow_statement_immediately_after_block_experimental = true 74 | 75 | #### C# Coding Conventions #### 76 | 77 | # var preferences 78 | csharp_style_var_elsewhere = false 79 | csharp_style_var_for_built_in_types = false:error 80 | csharp_style_var_when_type_is_apparent = true:error 81 | 82 | # Expression-bodied members 83 | csharp_style_expression_bodied_accessors = true 84 | csharp_style_expression_bodied_constructors = false 85 | csharp_style_expression_bodied_indexers = true 86 | csharp_style_expression_bodied_lambdas = true 87 | csharp_style_expression_bodied_local_functions = false 88 | csharp_style_expression_bodied_methods = false 89 | csharp_style_expression_bodied_operators = false 90 | csharp_style_expression_bodied_properties = true 91 | 92 | # Pattern matching preferences 93 | csharp_style_pattern_matching_over_as_with_null_check = true 94 | csharp_style_pattern_matching_over_is_with_cast_check = true 95 | csharp_style_prefer_not_pattern = true 96 | csharp_style_prefer_pattern_matching = true 97 | csharp_style_prefer_switch_expression = true 98 | 99 | # Null-checking preferences 100 | csharp_style_conditional_delegate_call = true 101 | 102 | # Modifier preferences 103 | csharp_prefer_static_local_function = true 104 | csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async 105 | 106 | # Code-block preferences 107 | csharp_prefer_braces = true 108 | csharp_prefer_simple_using_statement = true 109 | csharp_style_namespace_declarations = block_scoped:error 110 | 111 | # Expression-level preferences 112 | csharp_prefer_simple_default_expression = true 113 | csharp_style_deconstructed_variable_declaration = true 114 | csharp_style_implicit_object_creation_when_type_is_apparent = true 115 | csharp_style_inlined_variable_declaration = true 116 | csharp_style_pattern_local_over_anonymous_function = true 117 | csharp_style_prefer_index_operator = true 118 | csharp_style_prefer_null_check_over_type_check = true 119 | csharp_style_prefer_range_operator = true 120 | csharp_style_throw_expression = true 121 | csharp_style_unused_value_assignment_preference = discard_variable 122 | csharp_style_unused_value_expression_statement_preference = discard_variable 123 | 124 | # 'using' directive preferences 125 | csharp_using_directive_placement = outside_namespace 126 | 127 | # New line preferences 128 | csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true 129 | csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true 130 | csharp_style_allow_embedded_statements_on_same_line_experimental = true 131 | 132 | #### C# Formatting Rules #### 133 | 134 | # New line preferences 135 | csharp_new_line_before_catch = false 136 | csharp_new_line_before_else = false 137 | csharp_new_line_before_finally = false 138 | csharp_new_line_before_members_in_anonymous_types = true 139 | csharp_new_line_before_members_in_object_initializers = true 140 | csharp_new_line_before_open_brace = none 141 | csharp_new_line_between_query_expression_clauses = false 142 | 143 | # Indentation preferences 144 | csharp_indent_block_contents = true 145 | csharp_indent_braces = false 146 | csharp_indent_case_contents = true 147 | csharp_indent_case_contents_when_block = true 148 | csharp_indent_labels = one_less_than_current 149 | csharp_indent_switch_labels = true 150 | 151 | # Space preferences 152 | csharp_space_after_cast = false 153 | csharp_space_after_colon_in_inheritance_clause = true 154 | csharp_space_after_comma = true 155 | csharp_space_after_dot = false 156 | csharp_space_after_keywords_in_control_flow_statements = true 157 | csharp_space_after_semicolon_in_for_statement = true 158 | csharp_space_around_binary_operators = before_and_after 159 | csharp_space_around_declaration_statements = false 160 | csharp_space_before_colon_in_inheritance_clause = true 161 | csharp_space_before_comma = false 162 | csharp_space_before_dot = false 163 | csharp_space_before_open_square_brackets = false 164 | csharp_space_before_semicolon_in_for_statement = false 165 | csharp_space_between_empty_square_brackets = false 166 | csharp_space_between_method_call_empty_parameter_list_parentheses = false 167 | csharp_space_between_method_call_name_and_opening_parenthesis = false 168 | csharp_space_between_method_call_parameter_list_parentheses = false 169 | csharp_space_between_method_declaration_empty_parameter_list_parentheses = false 170 | csharp_space_between_method_declaration_name_and_open_parenthesis = false 171 | csharp_space_between_method_declaration_parameter_list_parentheses = false 172 | csharp_space_between_parentheses = false 173 | csharp_space_between_square_brackets = false 174 | 175 | # Wrapping preferences 176 | csharp_preserve_single_line_blocks = true 177 | csharp_preserve_single_line_statements = true 178 | 179 | #### Naming styles #### 180 | 181 | # Naming rules 182 | 183 | dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion 184 | dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface 185 | dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i 186 | 187 | dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion 188 | dotnet_naming_rule.types_should_be_pascal_case.symbols = types 189 | dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case 190 | 191 | dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion 192 | dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members 193 | dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case 194 | 195 | # Symbol specifications 196 | 197 | dotnet_naming_symbols.interface.applicable_kinds = interface 198 | dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected 199 | dotnet_naming_symbols.interface.required_modifiers = 200 | 201 | dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum 202 | dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected 203 | dotnet_naming_symbols.types.required_modifiers = 204 | 205 | dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method 206 | dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected 207 | dotnet_naming_symbols.non_field_members.required_modifiers = 208 | 209 | # Naming styles 210 | 211 | dotnet_naming_style.pascal_case.required_prefix = 212 | dotnet_naming_style.pascal_case.required_suffix = 213 | dotnet_naming_style.pascal_case.word_separator = 214 | dotnet_naming_style.pascal_case.capitalization = pascal_case 215 | 216 | dotnet_naming_style.begins_with_i.required_prefix = I 217 | dotnet_naming_style.begins_with_i.required_suffix = 218 | dotnet_naming_style.begins_with_i.word_separator = 219 | dotnet_naming_style.begins_with_i.capitalization = pascal_case 220 | -------------------------------------------------------------------------------- /Store/Store.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | x86 7 | {6CABD744-893D-47A0-B580-0B95547242A8} 8 | AppContainerExe 9 | Properties 10 | Store 11 | Store 12 | en-US 13 | UAP 14 | 10.0.15063.0 15 | 10.0.15063.0 16 | 14 17 | 512 18 | {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 19 | true 20 | Store_TemporaryKey.pfx 21 | False 22 | False 23 | Always 24 | arm 25 | 1 26 | OnApplicationRun 27 | 28 | 29 | true 30 | bin\x86\Debug\ 31 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 32 | ;2008 33 | full 34 | x86 35 | false 36 | prompt 37 | true 38 | 39 | 40 | bin\x86\Release\ 41 | TRACE;NETFX_CORE;WINDOWS_UWP 42 | true 43 | ;2008 44 | pdbonly 45 | x86 46 | false 47 | prompt 48 | true 49 | true 50 | 51 | 52 | true 53 | bin\ARM\Debug\ 54 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 55 | ;2008 56 | full 57 | ARM 58 | false 59 | prompt 60 | true 61 | 62 | 63 | bin\ARM\Release\ 64 | TRACE;NETFX_CORE;WINDOWS_UWP 65 | true 66 | ;2008 67 | pdbonly 68 | ARM 69 | false 70 | prompt 71 | true 72 | true 73 | 74 | 75 | true 76 | bin\ARM64\Debug\ 77 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 78 | ;2008 79 | full 80 | ARM64 81 | false 82 | prompt 83 | true 84 | true 85 | 86 | 87 | bin\ARM64\Release\ 88 | TRACE;NETFX_CORE;WINDOWS_UWP 89 | true 90 | ;2008 91 | pdbonly 92 | ARM64 93 | false 94 | prompt 95 | true 96 | true 97 | 98 | 99 | true 100 | bin\x64\Debug\ 101 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 102 | ;2008 103 | full 104 | x64 105 | false 106 | prompt 107 | true 108 | 109 | 110 | bin\x64\Release\ 111 | TRACE;NETFX_CORE;WINDOWS_UWP 112 | true 113 | ;2008 114 | pdbonly 115 | x64 116 | false 117 | prompt 118 | true 119 | true 120 | 121 | 122 | PackageReference 123 | 124 | 125 | 126 | App.xaml 127 | 128 | 129 | MainPage.xaml 130 | 131 | 132 | AppPage.xaml 133 | 134 | 135 | ErrorPage.xaml 136 | 137 | 138 | InstallerPage.xaml 139 | 140 | 141 | PackagesPage.xaml 142 | 143 | 144 | SettingsPage.xaml 145 | 146 | 147 | 148 | 149 | 150 | Designer 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | MSBuild:Compile 213 | Designer 214 | 215 | 216 | MSBuild:Compile 217 | Designer 218 | 219 | 220 | Designer 221 | MSBuild:Compile 222 | 223 | 224 | Designer 225 | MSBuild:Compile 226 | 227 | 228 | Designer 229 | MSBuild:Compile 230 | 231 | 232 | Designer 233 | MSBuild:Compile 234 | 235 | 236 | Designer 237 | MSBuild:Compile 238 | 239 | 240 | 241 | 242 | 6.2.8 243 | 244 | 245 | 13.0.1 246 | 247 | 248 | 249 | 250 | {d0032103-e526-4eec-a413-d860253d27e6} 251 | PackagesBackgroundTask 252 | 253 | 254 | {ce9f7d32-bfab-41c0-a6d1-ed2378b11793} 255 | StoreManager 256 | 257 | 258 | 259 | 14.0 260 | 261 | 262 | 269 | --------------------------------------------------------------------------------