@ -0,0 +1,11 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> | |||
<PropertyGroup> | |||
<TargetFramework>netcoreapp2.0</TargetFramework> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" /> | |||
</ItemGroup> | |||
</Project> |
@ -0,0 +1,40 @@ | |||
using Microsoft.EntityFrameworkCore; | |||
using Microsoft.Extensions.DependencyInjection; | |||
using Microsoft.Extensions.Logging; | |||
using System; | |||
namespace Microsoft.AspNetCore.Hosting | |||
{ | |||
public static class IWebHostExtensions | |||
{ | |||
public static IWebHost MigrateDbContext<TContext>(this IWebHost webHost, Action<TContext,IServiceProvider> seeder) where TContext : DbContext | |||
{ | |||
using (var scope = webHost.Services.CreateScope()) | |||
{ | |||
var services = scope.ServiceProvider; | |||
var logger = services.GetRequiredService<ILogger<TContext>>(); | |||
var context = services.GetService<TContext>(); | |||
try | |||
{ | |||
logger.LogInformation($"Migrating database associated with context {typeof(TContext).Name}"); | |||
context.Database | |||
.Migrate(); | |||
seeder(context,services); | |||
logger.LogInformation($"Migrated database associated with context {typeof(TContext).Name}"); | |||
} | |||
catch (Exception ex) | |||
{ | |||
logger.LogError(ex, $"An error occurred while migrating the database used on context {typeof(TContext).Name}"); | |||
} | |||
} | |||
return webHost; | |||
} | |||
} | |||
} |
@ -1,13 +1,12 @@ | |||
namespace eShopOnContainers.Core.Services.Marketing | |||
{ | |||
using System.Collections.ObjectModel; | |||
using System.Threading.Tasks; | |||
using Models.Marketing; | |||
using System.Collections.ObjectModel; | |||
using System.Threading.Tasks; | |||
using eShopOnContainers.Core.Models.Marketing; | |||
namespace eShopOnContainers.Core.Services.Marketing | |||
{ | |||
public interface ICampaignService | |||
{ | |||
Task<ObservableCollection<CampaignItem>> GetAllCampaignsAsync(string token); | |||
Task<CampaignItem> GetCampaignByIdAsync(int id, string token); | |||
} | |||
} |
@ -1,34 +1,277 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<PropertyGroup> | |||
<TargetFramework>netstandard2.0</TargetFramework> | |||
<PackageTargetFallback>portable-net45+win8+wpa81+wp8</PackageTargetFallback> | |||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | |||
<ProjectGuid>{BA96A12C-4EE3-46C4-BB3F-F811B554CD01}</ProjectGuid> | |||
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | |||
<UseMSBuildEngine>true</UseMSBuildEngine> | |||
<OutputType>Library</OutputType> | |||
<RootNamespace>eShopOnContainers.Core</RootNamespace> | |||
<AssemblyName>eShopOnContainers.Core</AssemblyName> | |||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | |||
<TargetFrameworkProfile>Profile111</TargetFrameworkProfile> | |||
</PropertyGroup> | |||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | |||
<DebugSymbols>true</DebugSymbols> | |||
<DebugType>full</DebugType> | |||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | |||
<Optimize>false</Optimize> | |||
<OutputPath>bin\Debug</OutputPath> | |||
<DefineConstants>DEBUG;</DefineConstants> | |||
<ErrorReport>prompt</ErrorReport> | |||
<WarningLevel>4</WarningLevel> | |||
</PropertyGroup> | |||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | |||
<Optimize>true</Optimize> | |||
<OutputPath>bin\Release</OutputPath> | |||
<ErrorReport>prompt</ErrorReport> | |||
<WarningLevel>4</WarningLevel> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<PackageReference Include="Acr.UserDialogs" Version="6.3.3" /> | |||
<PackageReference Include="Autofac" Version="4.5.0" /> | |||
<PackageReference Include="IdentityModel" Version="2.10.0" /> | |||
<PackageReference Include="Microsoft.NETCore.Platforms" Version="2.0.0" /> | |||
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" /> | |||
<PackageReference Include="PCLCrypto" Version="2.0.147" /> | |||
<PackageReference Include="SlideOverKit" Version="2.1.4" /> | |||
<PackageReference Include="Splat" Version="1.6.2" /> | |||
<PackageReference Include="System.ComponentModel.Annotations" Version="4.4.0" /> | |||
<PackageReference Include="Xam.Plugin.Geolocator" Version="3.0.4" /> | |||
<PackageReference Include="Xam.Plugins.Settings" Version="2.6.0.12-beta" /> | |||
<PackageReference Include="Xamarin.FFImageLoading.Forms" Version="2.2.9" /> | |||
<PackageReference Include="Xamarin.Forms" Version="2.3.4.231" /> | |||
<Compile Include="Properties\AssemblyInfo.cs" /> | |||
<Compile Include="App.xaml.cs"> | |||
<DependentUpon>App.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Animations\FadeToAnimation.cs" /> | |||
<Compile Include="Animations\StoryBoard.cs" /> | |||
<Compile Include="Animations\Base\AnimationBase.cs" /> | |||
<Compile Include="Animations\Base\EasingType.cs" /> | |||
<Compile Include="Controls\AddBasketButton.xaml.cs"> | |||
<DependentUpon>AddBasketButton.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Controls\CustomTabbedPage.cs" /> | |||
<Compile Include="Controls\ToggleButton.cs" /> | |||
<Compile Include="Behaviors\EventToCommandBehavior.cs" /> | |||
<Compile Include="Behaviors\LineColorBehavior.cs" /> | |||
<Compile Include="Behaviors\Base\BindableBehavior.cs" /> | |||
<Compile Include="Converters\CountToBoolConverter.cs" /> | |||
<Compile Include="Converters\DatetimeConverter.cs" /> | |||
<Compile Include="Converters\DoubleConverter.cs" /> | |||
<Compile Include="Converters\FirstValidationErrorConverter.cs" /> | |||
<Compile Include="Converters\ImageConverter.cs" /> | |||
<Compile Include="Converters\InverseBoolConverter.cs" /> | |||
<Compile Include="Converters\InverseCountToBoolConverter.cs" /> | |||
<Compile Include="Converters\ItemsToHeightConverter.cs" /> | |||
<Compile Include="Converters\ItemTappedEventArgsConverter.cs" /> | |||
<Compile Include="Converters\StringNullOrEmptyBoolConverter.cs" /> | |||
<Compile Include="Converters\ToUpperConverter.cs" /> | |||
<Compile Include="Converters\WebNavigatedEventArgsConverter.cs" /> | |||
<Compile Include="Converters\WebNavigatingEventArgsConverter.cs" /> | |||
<Compile Include="Helpers\EasingHelper.cs" /> | |||
<Compile Include="Helpers\RandomNumberGenerator.cs" /> | |||
<Compile Include="Helpers\ServicesHelper.cs" /> | |||
<Compile Include="Helpers\Settings.cs" /> | |||
<Compile Include="Views\Templates\BasketItemTemplate.xaml.cs"> | |||
<DependentUpon>BasketItemTemplate.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\Templates\CampaignTemplate.xaml.cs"> | |||
<DependentUpon>CampaignTemplate.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\Templates\OrderItemTemplate.xaml.cs"> | |||
<DependentUpon>OrderItemTemplate.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\Templates\OrderTemplate.xaml.cs"> | |||
<DependentUpon>OrderTemplate.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\Templates\ProductTemplate.xaml.cs"> | |||
<DependentUpon>ProductTemplate.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\BasketView.xaml.cs"> | |||
<DependentUpon>BasketView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\CampaignDetailsView.xaml.cs"> | |||
<DependentUpon>CampaignDetailsView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\CampaignView.xaml.cs"> | |||
<DependentUpon>CampaignView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\CatalogView.xaml.cs"> | |||
<DependentUpon>CatalogView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\CheckoutView.xaml.cs"> | |||
<DependentUpon>CheckoutView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\CustomNavigationView.xaml.cs"> | |||
<DependentUpon>CustomNavigationView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\FiltersView.xaml.cs"> | |||
<DependentUpon>FiltersView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\LoginView.xaml.cs"> | |||
<DependentUpon>LoginView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\MainView.xaml.cs"> | |||
<DependentUpon>MainView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\OrderDetailView.xaml.cs"> | |||
<DependentUpon>OrderDetailView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\ProfileView.xaml.cs"> | |||
<DependentUpon>ProfileView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\SettingsView.xaml.cs"> | |||
<DependentUpon>SettingsView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Extensions\ObservableExtension.cs" /> | |||
<Compile Include="Exceptions\ServiceAuthenticationException.cs" /> | |||
<Compile Include="Models\Basket\BasketCheckout.cs" /> | |||
<Compile Include="Models\Basket\BasketItem.cs" /> | |||
<Compile Include="Models\Basket\CustomerBasket.cs" /> | |||
<Compile Include="Models\Catalog\CatalogBrand.cs" /> | |||
<Compile Include="Models\Catalog\CatalogItem.cs" /> | |||
<Compile Include="Models\Catalog\CatalogRoot.cs" /> | |||
<Compile Include="Models\Catalog\CatalogType.cs" /> | |||
<Compile Include="Models\Location\Location.cs" /> | |||
<Compile Include="Models\Marketing\Campaign.cs" /> | |||
<Compile Include="Models\Marketing\CampaignItem.cs" /> | |||
<Compile Include="Models\Marketing\CampaignRoot.cs" /> | |||
<Compile Include="Models\Navigation\TabParameter.cs" /> | |||
<Compile Include="Models\Orders\CancelOrderCommand.cs" /> | |||
<Compile Include="Models\Orders\CardType.cs" /> | |||
<Compile Include="Models\Orders\Order.cs" /> | |||
<Compile Include="Models\Orders\OrderItem.cs" /> | |||
<Compile Include="Models\Orders\OrderStatus.cs" /> | |||
<Compile Include="Models\Token\UserToken.cs" /> | |||
<Compile Include="Models\User\Address.cs" /> | |||
<Compile Include="Models\User\LogoutParameter.cs" /> | |||
<Compile Include="Models\User\PaymentInfo.cs" /> | |||
<Compile Include="Models\User\UserInfo.cs" /> | |||
<Compile Include="Triggers\BeginAnimation.cs" /> | |||
<Compile Include="Services\Basket\BasketMockService.cs" /> | |||
<Compile Include="Services\Basket\BasketService.cs" /> | |||
<Compile Include="Services\Basket\IBasketService.cs" /> | |||
<Compile Include="Services\Catalog\CatalogMockService.cs" /> | |||
<Compile Include="Services\Catalog\CatalogService.cs" /> | |||
<Compile Include="Services\Catalog\ICatalogService.cs" /> | |||
<Compile Include="Services\Common\Common.cs" /> | |||
<Compile Include="Services\Dialog\DialogService.cs" /> | |||
<Compile Include="Services\Dialog\IDialogService.cs" /> | |||
<Compile Include="Services\Identity\IdentityService.cs" /> | |||
<Compile Include="Services\Identity\IIdentityService.cs" /> | |||
<Compile Include="Services\Location\ILocationService.cs" /> | |||
<Compile Include="Services\Location\LocationService.cs" /> | |||
<Compile Include="Services\Marketing\CampaignMockService.cs" /> | |||
<Compile Include="Services\Marketing\CampaignService.cs" /> | |||
<Compile Include="Services\Marketing\ICampaignService.cs" /> | |||
<Compile Include="Services\Navigation\INavigationService.cs" /> | |||
<Compile Include="Services\Navigation\NavigationService.cs" /> | |||
<Compile Include="Services\OpenUrl\IOpenUrlService.cs" /> | |||
<Compile Include="Services\OpenUrl\OpenUrlService.cs" /> | |||
<Compile Include="Services\Order\IOrderService.cs" /> | |||
<Compile Include="Services\Order\OrderMockService.cs" /> | |||
<Compile Include="Services\Order\OrderService.cs" /> | |||
<Compile Include="Services\RequestProvider\HttpRequestExceptionEx.cs" /> | |||
<Compile Include="Services\RequestProvider\IRequestProvider.cs" /> | |||
<Compile Include="Services\RequestProvider\RequestProvider.cs" /> | |||
<Compile Include="Services\User\IUserService.cs" /> | |||
<Compile Include="Services\User\UserMockService.cs" /> | |||
<Compile Include="Services\User\UserService.cs" /> | |||
<Compile Include="ViewModels\Base\ExtendedBindableObject.cs" /> | |||
<Compile Include="ViewModels\Base\MessageKeys.cs" /> | |||
<Compile Include="ViewModels\Base\ViewModelBase.cs" /> | |||
<Compile Include="ViewModels\Base\ViewModelLocator.cs" /> | |||
<Compile Include="ViewModels\BasketViewModel.cs" /> | |||
<Compile Include="ViewModels\CampaignDetailsViewModel.cs" /> | |||
<Compile Include="ViewModels\CampaignViewModel.cs" /> | |||
<Compile Include="ViewModels\CatalogViewModel.cs" /> | |||
<Compile Include="ViewModels\CheckoutViewModel.cs" /> | |||
<Compile Include="ViewModels\LoginViewModel.cs" /> | |||
<Compile Include="ViewModels\MainViewModel.cs" /> | |||
<Compile Include="ViewModels\OrderDetailViewModel.cs" /> | |||
<Compile Include="ViewModels\ProfileViewModel.cs" /> | |||
<Compile Include="ViewModels\SettingsViewModel.cs" /> | |||
<Compile Include="Effects\EntryLineColorEffect.cs" /> | |||
<Compile Include="Effects\ThemeEffects.cs" /> | |||
<Compile Include="Validations\IsNotNullOrEmptyRule.cs" /> | |||
<Compile Include="Validations\IValidationRule.cs" /> | |||
<Compile Include="Validations\IValidity.cs" /> | |||
<Compile Include="Validations\ValidatableObject.cs" /> | |||
<Compile Include="GlobalSettings.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<None Include="app.config" /> | |||
<None Include="project.json" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<!-- https://bugzilla.xamarin.com/show_bug.cgi?id=55591 --> | |||
<None Remove="**\*.xaml" /> | |||
<Compile Update="**\*.xaml.cs" DependentUpon="%(Filename)" /> | |||
<EmbeddedResource Include="**\*.xaml" SubType="Designer" Generator="MSBuild:UpdateDesignTimeXaml" /> | |||
<EmbeddedResource Include="App.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Controls\AddBasketButton.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Views\Templates\BasketItemTemplate.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Views\Templates\CampaignTemplate.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Views\Templates\OrderItemTemplate.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Views\Templates\OrderTemplate.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Views\Templates\ProductTemplate.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Views\BasketView.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Views\CampaignDetailsView.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Views\CampaignView.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Views\CatalogView.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Views\SettingsView.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Views\ProfileView.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Views\OrderDetailView.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Views\MainView.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Views\LoginView.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Views\FiltersView.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Views\CustomNavigationView.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Views\CheckoutView.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
</ItemGroup> | |||
</Project> | |||
<ItemGroup /> | |||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" /> | |||
<Import Project="..\..\..\..\packages\Xamarin.Forms.2.3.4.270\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets" Condition="Exists('..\..\..\..\packages\Xamarin.Forms.2.3.4.270\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets')" /> | |||
<Import Project="..\..\..\..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets" Condition="Exists('..\..\..\..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets')" /> | |||
</Project> |
@ -1,322 +0,0 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | |||
<PropertyGroup> | |||
<MinimumVisualStudioVersion>10.0</MinimumVisualStudioVersion> | |||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | |||
<ProjectGuid>{67F9D3A8-F71E-4428-913F-C37AE82CDB24}</ProjectGuid> | |||
<OutputType>Library</OutputType> | |||
<AppDesignerFolder>Properties</AppDesignerFolder> | |||
<RootNamespace>eShopOnContainers.Core</RootNamespace> | |||
<AssemblyName>eShopOnContainers.Core</AssemblyName> | |||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | |||
<FileAlignment>512</FileAlignment> | |||
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | |||
<NuGetPackageImportStamp> | |||
</NuGetPackageImportStamp> | |||
<TargetFrameworkProfile>Profile111</TargetFrameworkProfile> | |||
</PropertyGroup> | |||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | |||
<DebugSymbols>true</DebugSymbols> | |||
<DebugType>full</DebugType> | |||
<Optimize>false</Optimize> | |||
<OutputPath>bin\Debug\</OutputPath> | |||
<DefineConstants>DEBUG;TRACE</DefineConstants> | |||
<ErrorReport>prompt</ErrorReport> | |||
<WarningLevel>4</WarningLevel> | |||
</PropertyGroup> | |||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | |||
<DebugType>pdbonly</DebugType> | |||
<Optimize>true</Optimize> | |||
<OutputPath>bin\Release\</OutputPath> | |||
<DefineConstants>TRACE</DefineConstants> | |||
<ErrorReport>prompt</ErrorReport> | |||
<WarningLevel>4</WarningLevel> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<Compile Include="Animations\Base\AnimationBase.cs" /> | |||
<Compile Include="Animations\Base\EasingType.cs" /> | |||
<Compile Include="Animations\FadeToAnimation.cs" /> | |||
<Compile Include="Animations\StoryBoard.cs" /> | |||
<Compile Include="App.xaml.cs"> | |||
<DependentUpon>App.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Behaviors\Base\BindableBehavior.cs" /> | |||
<Compile Include="Behaviors\EventToCommandBehavior.cs" /> | |||
<Compile Include="Controls\AddBasketButton.xaml.cs"> | |||
<DependentUpon>AddBasketButton.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Controls\CustomTabbedPage.cs" /> | |||
<Compile Include="Controls\ToggleButton.cs" /> | |||
<Compile Include="Converters\DoubleConverter.cs" /> | |||
<Compile Include="Converters\StringNullOrEmptyBoolConverter.cs" /> | |||
<Compile Include="Converters\CountToBoolConverter.cs" /> | |||
<Compile Include="Converters\DatetimeConverter.cs" /> | |||
<Compile Include="Converters\ImageConverter.cs" /> | |||
<Compile Include="Converters\InverseBoolConverter.cs" /> | |||
<Compile Include="Converters\InverseCountToBoolConverter.cs" /> | |||
<Compile Include="Converters\ItemsToHeightConverter.cs" /> | |||
<Compile Include="Converters\ItemTappedEventArgsConverter.cs" /> | |||
<Compile Include="Converters\ToUpperConverter.cs" /> | |||
<Compile Include="Converters\WebNavigatedEventArgsConverter.cs" /> | |||
<Compile Include="Exceptions\ServiceAuthenticationException.cs" /> | |||
<Compile Include="Extensions\ObservableExtension.cs" /> | |||
<Compile Include="GlobalSettings.cs" /> | |||
<Compile Include="Helpers\EasingHelper.cs" /> | |||
<Compile Include="Helpers\RandomNumberGenerator.cs" /> | |||
<Compile Include="Helpers\ServicesHelper.cs" /> | |||
<Compile Include="Helpers\Settings.cs" /> | |||
<Compile Include="Models\Basket\BasketCheckout.cs" /> | |||
<Compile Include="Models\Basket\BasketItem.cs" /> | |||
<Compile Include="Models\Basket\CustomerBasket.cs" /> | |||
<Compile Include="Models\Catalog\CatalogBrand.cs" /> | |||
<Compile Include="Models\Catalog\CatalogItem.cs" /> | |||
<Compile Include="Models\Catalog\CatalogRoot.cs" /> | |||
<Compile Include="Models\Catalog\CatalogType.cs" /> | |||
<Compile Include="Models\Location\Location.cs" /> | |||
<Compile Include="Models\Marketing\CampaignItem.cs" /> | |||
<Compile Include="Models\Marketing\CampaignRoot.cs" /> | |||
<Compile Include="Models\Navigation\TabParameter.cs" /> | |||
<Compile Include="Models\Orders\CancelOrderCommand.cs" /> | |||
<Compile Include="Models\Orders\CardType.CS" /> | |||
<Compile Include="Models\Orders\Order.cs" /> | |||
<Compile Include="Models\Orders\OrderItem.cs" /> | |||
<Compile Include="Models\Orders\OrderStatus.cs" /> | |||
<Compile Include="Models\User\Address.cs" /> | |||
<Compile Include="Models\User\LogoutParameter.cs" /> | |||
<Compile Include="Models\User\PaymentInfo.cs" /> | |||
<Compile Include="Models\User\UserInfo.cs" /> | |||
<Compile Include="Properties\AssemblyInfo.cs" /> | |||
<Compile Include="Services\Basket\BasketMockService.cs" /> | |||
<Compile Include="Services\Basket\BasketService.cs" /> | |||
<Compile Include="Services\Basket\IBasketService.cs" /> | |||
<Compile Include="Services\Catalog\CatalogMockService.cs" /> | |||
<Compile Include="Services\Catalog\CatalogService.cs" /> | |||
<Compile Include="Services\Catalog\ICatalogService.cs" /> | |||
<Compile Include="Services\Common\Common.cs" /> | |||
<Compile Include="Services\Dialog\DialogService.cs" /> | |||
<Compile Include="Services\Dialog\IDialogService.cs" /> | |||
<Compile Include="Services\Identity\IdentityService.cs" /> | |||
<Compile Include="Services\Identity\IIdentityService.cs" /> | |||
<Compile Include="Services\Location\ILocationService.cs" /> | |||
<Compile Include="Services\Location\LocationService.cs" /> | |||
<Compile Include="Services\Marketing\ICampaignService.cs" /> | |||
<Compile Include="Services\Marketing\CampaignMockService.cs" /> | |||
<Compile Include="Services\Marketing\CampaignService.cs" /> | |||
<Compile Include="Services\Navigation\INavigationService.cs" /> | |||
<Compile Include="Services\Navigation\NavigationService.cs" /> | |||
<Compile Include="Services\OpenUrl\IOpenUrlService.cs" /> | |||
<Compile Include="Services\OpenUrl\OpenUrlService.cs" /> | |||
<Compile Include="Services\Order\IOrderService.cs" /> | |||
<Compile Include="Services\Order\OrderMockService.cs" /> | |||
<Compile Include="Services\Order\OrderService.cs" /> | |||
<Compile Include="Services\RequestProvider\HttpRequestExceptionEx.cs" /> | |||
<Compile Include="Services\RequestProvider\IRequestProvider.cs" /> | |||
<Compile Include="Services\RequestProvider\RequestProvider.cs" /> | |||
<Compile Include="Services\User\IUserService.cs" /> | |||
<Compile Include="Services\User\UserMockService.cs" /> | |||
<Compile Include="Services\User\UserService.cs" /> | |||
<Compile Include="Triggers\BeginAnimation.cs" /> | |||
<Compile Include="Validations\IsNotNullOrEmptyRule.cs" /> | |||
<Compile Include="Validations\IValidationRule.cs" /> | |||
<Compile Include="Validations\IValidity.cs" /> | |||
<Compile Include="Validations\ValidatableObject.cs" /> | |||
<Compile Include="ViewModels\Base\ExtendedBindableObject.cs" /> | |||
<Compile Include="ViewModels\Base\MessageKeys.cs" /> | |||
<Compile Include="ViewModels\Base\ViewModelBase.cs" /> | |||
<Compile Include="ViewModels\Base\ViewModelLocator.cs" /> | |||
<Compile Include="ViewModels\BasketViewModel.cs" /> | |||
<Compile Include="ViewModels\CampaignDetailsViewModel.cs" /> | |||
<Compile Include="ViewModels\CampaignViewModel.cs" /> | |||
<Compile Include="ViewModels\CatalogViewModel.cs" /> | |||
<Compile Include="ViewModels\CheckoutViewModel.cs" /> | |||
<Compile Include="ViewModels\LoginViewModel.cs" /> | |||
<Compile Include="ViewModels\MainViewModel.cs" /> | |||
<Compile Include="ViewModels\OrderDetailViewModel.cs" /> | |||
<Compile Include="ViewModels\ProfileViewModel.cs" /> | |||
<Compile Include="ViewModels\SettingsViewModel.cs" /> | |||
<Compile Include="Views\BasketView.xaml.cs"> | |||
<DependentUpon>BasketView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\CampaignView.xaml.cs"> | |||
<DependentUpon>CampaignView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\CatalogView.xaml.cs"> | |||
<DependentUpon>CatalogView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\CampaignDetailsView.xaml.cs"> | |||
<DependentUpon>CampaignDetailsView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\CheckoutView.xaml.cs"> | |||
<DependentUpon>CheckoutView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\CustomNavigationView.xaml.cs"> | |||
<DependentUpon>CustomNavigationView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\FiltersView.xaml.cs"> | |||
<DependentUpon>FiltersView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\LoginView.xaml.cs"> | |||
<DependentUpon>LoginView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\MainView.xaml.cs"> | |||
<DependentUpon>MainView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\OrderDetailView.xaml.cs"> | |||
<DependentUpon>OrderDetailView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\ProfileView.xaml.cs"> | |||
<DependentUpon>ProfileView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\SettingsView.xaml.cs"> | |||
<DependentUpon>SettingsView.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\Templates\BasketItemTemplate.xaml.cs"> | |||
<DependentUpon>BasketItemTemplate.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\Templates\OrderItemTemplate.xaml.cs"> | |||
<DependentUpon>OrderItemTemplate.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\Templates\OrderTemplate.xaml.cs"> | |||
<DependentUpon>OrderTemplate.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\Templates\CampaignTemplate.xaml.cs"> | |||
<DependentUpon>CampaignTemplate.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Views\Templates\ProductTemplate.xaml.cs"> | |||
<DependentUpon>ProductTemplate.xaml</DependentUpon> | |||
</Compile> | |||
<Compile Include="Converters\WebNavigatingEventArgsConverter.cs" /> | |||
<Compile Include="Converters\FirstValidationErrorConverter.cs" /> | |||
<Compile Include="Effects\EntryLineColorEffect.cs" /> | |||
<Compile Include="Behaviors\LineColorBehavior.cs" /> | |||
<Compile Include="Models\Token\UserToken.cs" /> | |||
<Compile Include="Effects\ThemeEffects.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<None Include="app.config" /> | |||
<None Include="project.json" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<EmbeddedResource Include="Controls\AddBasketButton.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Views\Templates\BasketItemTemplate.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Views\Templates\OrderItemTemplate.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Views\Templates\OrderTemplate.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Views\Templates\ProductTemplate.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<EmbeddedResource Include="Views\BasketView.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<EmbeddedResource Include="Views\CatalogView.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<EmbeddedResource Include="Views\CheckoutView.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<EmbeddedResource Include="Views\CustomNavigationView.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<EmbeddedResource Include="Views\FiltersView.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<EmbeddedResource Include="Views\LoginView.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<EmbeddedResource Include="Views\MainView.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<EmbeddedResource Include="Views\OrderDetailView.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<EmbeddedResource Include="Views\ProfileView.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<EmbeddedResource Include="Views\SettingsView.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<EmbeddedResource Include="App.xaml"> | |||
<SubType>Designer</SubType> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
</EmbeddedResource> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<EmbeddedResource Include="Views\CampaignView.xaml"> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
<SubType>Designer</SubType> | |||
</EmbeddedResource> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<EmbeddedResource Include="Views\CampaignDetailsView.xaml"> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
<SubType>Designer</SubType> | |||
</EmbeddedResource> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<EmbeddedResource Include="Views\Templates\CampaignTemplate.xaml"> | |||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | |||
<SubType>Designer</SubType> | |||
</EmbeddedResource> | |||
</ItemGroup> | |||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" /> | |||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | |||
<PropertyGroup> | |||
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> | |||
</PropertyGroup> | |||
<Error Condition="!Exists('..\..\..\..\packages\Xamarin.Forms.2.3.4.231\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\..\packages\Xamarin.Forms.2.3.4.231\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets'))" /> | |||
</Target> | |||
<Import Project="..\..\..\..\packages\Xamarin.Forms.2.3.4.231\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets" Condition="Exists('..\..\..\..\packages\Xamarin.Forms.2.3.4.231\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets')" /> | |||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | |||
Other similar extension points exist, see Microsoft.Common.targets. | |||
<Target Name="BeforeBuild"> | |||
</Target> | |||
<Target Name="AfterBuild"> | |||
</Target> | |||
--> | |||
</Project> |
@ -0,0 +1,24 @@ | |||
{ | |||
"dependencies": { | |||
"Acr.UserDialogs": "6.3.3", | |||
"Autofac": "4.5.0", | |||
"IdentityModel": "1.3.1", | |||
"Microsoft.Bcl": "1.1.10", | |||
"Microsoft.Bcl.Build": "1.0.21", | |||
"Microsoft.Net.Http": "2.2.29", | |||
"modernhttpclient": "2.4.2", | |||
"Newtonsoft.Json": "9.0.1", | |||
"PCLCrypto": "2.0.147", | |||
"SlideOverKit": "2.1.4", | |||
"Splat": "1.6.2", | |||
"System.ComponentModel.Annotations": "4.3.0", | |||
"Xam.Plugin.Geolocator": "3.0.4", | |||
"Xam.Plugins.Settings": "2.6.0.12-beta", | |||
"Xamarin.FFImageLoading": "2.2.9", | |||
"Xamarin.FFImageLoading.Forms": "2.2.9", | |||
"Xamarin.Forms": "2.3.4.231" | |||
}, | |||
"frameworks": { | |||
".NETPortable,Version=v4.5,Profile=Profile111": {} | |||
} | |||
} |
@ -1,11 +0,0 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |||
<item> | |||
<bitmap | |||
android:gravity="fill"/> | |||
</item> | |||
<item> | |||
<bitmap | |||
android:gravity="center"/> | |||
</item> | |||
</layer-list> |
@ -1,38 +1,32 @@ | |||
<?xml version="1.0" encoding="utf-8" ?> | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<resources> | |||
<style name="MainTheme" parent="MainTheme.Base"> | |||
</style> | |||
<!-- Base theme applied no matter what API --> | |||
<style name="MainTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar"> | |||
<!--If you are using revision 22.1 please use just windowNoTitle. Without android:--> | |||
<item name="windowNoTitle">true</item> | |||
<!--We will be using the toolbar so no need to show ActionBar--> | |||
<item name="windowActionBar">false</item> | |||
<!-- Set theme colors from http://www.google.com/design/spec/style/color.html#color-color-palette --> | |||
<!-- colorPrimary is used for the default action bar background --> | |||
<item name="colorPrimary">#00a69c</item> | |||
<!-- colorPrimaryDark is used for the status bar --> | |||
<item name="colorPrimaryDark">#00857D</item> | |||
<!-- colorAccent is used as the default value for colorControlActivated | |||
<style name="MainTheme" parent="MainTheme.Base"> | |||
</style> | |||
<!-- Base theme applied no matter what API --> | |||
<style name="MainTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar"> | |||
<!--If you are using revision 22.1 please use just windowNoTitle. Without android:--> | |||
<item name="windowNoTitle">true</item> | |||
<!--We will be using the toolbar so no need to show ActionBar--> | |||
<item name="windowActionBar">false</item> | |||
<!-- Set theme colors from http://www.google.com/design/spec/style/color.html#color-color-palette --> | |||
<!-- colorPrimary is used for the default action bar background --> | |||
<item name="colorPrimary">#00a69c</item> | |||
<!-- colorPrimaryDark is used for the status bar --> | |||
<item name="colorPrimaryDark">#00857D</item> | |||
<!-- colorAccent is used as the default value for colorControlActivated | |||
which is used to tint widgets --> | |||
<item name="colorAccent">#00857D</item> | |||
<!-- You can also set colorControlNormal, colorControlActivated | |||
<item name="colorAccent">#00857D</item> | |||
<!-- You can also set colorControlNormal, colorControlActivated | |||
colorControlHighlight and colorSwitchThumbNormal. --> | |||
<item name="windowActionModeOverlay">true</item> | |||
<item name="android:datePickerDialogTheme">@style/AppCompatDialogStyle</item> | |||
<item name="android:windowBackground">@drawable/background</item> | |||
</style> | |||
<style name="Theme.Splash" parent="Theme.AppCompat.Light.NoActionBar"> | |||
<item name="windowNoTitle">true</item> | |||
<item name="android:background">@drawable/splash_drawable</item> | |||
<item name="colorPrimaryDark">#00857D</item> | |||
</style> | |||
<style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog"> | |||
<item name="colorAccent">#00857D</item> | |||
</style> | |||
<item name="windowActionModeOverlay">true</item> | |||
<item name="android:datePickerDialogTheme">@style/AppCompatDialogStyle</item> | |||
</style> | |||
<style name="Theme.Splash" parent="Theme.AppCompat.Light.NoActionBar"> | |||
<item name="windowNoTitle">true</item> | |||
<item name="android:windowFullscreen">true</item> | |||
<item name="android:windowBackground">@drawable/background</item> | |||
</style> | |||
<style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog"> | |||
<item name="colorAccent">#00857D</item> | |||
</style> | |||
</resources> |
@ -0,0 +1,18 @@ | |||
{ | |||
"dependencies": { | |||
"Microsoft.NETCore.UniversalWindowsPlatform": "5.3.3", | |||
"Xamarin.Forms": "2.3.4.231", | |||
"xunit.runner.devices": "2.1.0" | |||
}, | |||
"frameworks": { | |||
"uap10.0": {} | |||
}, | |||
"runtimes": { | |||
"win10-arm": {}, | |||
"win10-arm-aot": {}, | |||
"win10-x86": {}, | |||
"win10-x86-aot": {}, | |||
"win10-x64": {}, | |||
"win10-x64-aot": {} | |||
} | |||
} |
@ -1,20 +1,61 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<PropertyGroup> | |||
<TargetFramework>netstandard2.0</TargetFramework> | |||
<PackageTargetFallback>portable-net45+win8+wpa81+wp8</PackageTargetFallback> | |||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | |||
<ProjectGuid>{6E4285E7-7611-4440-A1B5-3513EBB13807}</ProjectGuid> | |||
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | |||
<UseMSBuildEngine>true</UseMSBuildEngine> | |||
<OutputType>Library</OutputType> | |||
<RootNamespace>eShopOnContainers.UnitTests</RootNamespace> | |||
<AssemblyName>eShopOnContainers.UnitTests</AssemblyName> | |||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | |||
<TargetFrameworkProfile>Profile111</TargetFrameworkProfile> | |||
</PropertyGroup> | |||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | |||
<DebugSymbols>true</DebugSymbols> | |||
<DebugType>full</DebugType> | |||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | |||
<Optimize>false</Optimize> | |||
<OutputPath>bin\Debug</OutputPath> | |||
<DefineConstants>DEBUG;</DefineConstants> | |||
<ErrorReport>prompt</ErrorReport> | |||
<WarningLevel>4</WarningLevel> | |||
</PropertyGroup> | |||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | |||
<Optimize>true</Optimize> | |||
<OutputPath>bin\Release</OutputPath> | |||
<ErrorReport>prompt</ErrorReport> | |||
<WarningLevel>4</WarningLevel> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<PackageReference Include="xunit" Version="2.2.0" /> | |||
<PackageReference Include="xunit.runner.console" Version="2.2.0" /> | |||
<PackageReference Include="Xamarin.Forms" Version="2.3.4.231" /> | |||
<Compile Include="Properties\AssemblyInfo.cs" /> | |||
<Compile Include="ViewModels\CatalogViewModelTests.cs" /> | |||
<Compile Include="ViewModels\MainViewModelTests.cs" /> | |||
<Compile Include="ViewModels\MarketingViewModelTests.cs" /> | |||
<Compile Include="ViewModels\MockViewModelTests.cs" /> | |||
<Compile Include="ViewModels\OrderViewModelTests.cs" /> | |||
<Compile Include="Services\BasketServiceTests.cs" /> | |||
<Compile Include="Services\CatalogServiceTests.cs" /> | |||
<Compile Include="Services\MarketingServiceTests.cs" /> | |||
<Compile Include="Services\OrdersServiceTests.cs" /> | |||
<Compile Include="Mocks\MockEventToCommandBehavior.cs" /> | |||
<Compile Include="Mocks\MockViewModel.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<None Include="app.config" /> | |||
<None Include="project.json" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Folder Include="Mocks\" /> | |||
<Folder Include="Services\" /> | |||
<Folder Include="ViewModels\" /> | |||
<Folder Include="Behaviors\" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\eShopOnContainers.Core\eShopOnContainers.Core.csproj" /> | |||
<ProjectReference Include="..\eShopOnContainers.Core\eShopOnContainers.Core.csproj"> | |||
<Project>{BA96A12C-4EE3-46C4-BB3F-F811B554CD01}</Project> | |||
<Name>eShopOnContainers.Core</Name> | |||
</ProjectReference> | |||
</ItemGroup> | |||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" /> | |||
</Project> |
@ -1,71 +0,0 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | |||
<PropertyGroup> | |||
<MinimumVisualStudioVersion>10.0</MinimumVisualStudioVersion> | |||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | |||
<ProjectGuid>{F7B6A162-BC4D-4924-B16A-713F9B0344E7}</ProjectGuid> | |||
<OutputType>Library</OutputType> | |||
<AppDesignerFolder>Properties</AppDesignerFolder> | |||
<RootNamespace>eShopOnContainers.UnitTests</RootNamespace> | |||
<AssemblyName>eShopOnContainers.UnitTests</AssemblyName> | |||
<DefaultLanguage>es-ES</DefaultLanguage> | |||
<FileAlignment>512</FileAlignment> | |||
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | |||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | |||
<TargetFrameworkProfile>Profile111</TargetFrameworkProfile> | |||
</PropertyGroup> | |||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | |||
<DebugSymbols>true</DebugSymbols> | |||
<DebugType>full</DebugType> | |||
<Optimize>false</Optimize> | |||
<OutputPath>bin\Debug\</OutputPath> | |||
<DefineConstants>DEBUG;TRACE</DefineConstants> | |||
<ErrorReport>prompt</ErrorReport> | |||
<WarningLevel>4</WarningLevel> | |||
</PropertyGroup> | |||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | |||
<DebugType>pdbonly</DebugType> | |||
<Optimize>true</Optimize> | |||
<OutputPath>bin\Release\</OutputPath> | |||
<DefineConstants>TRACE</DefineConstants> | |||
<ErrorReport>prompt</ErrorReport> | |||
<WarningLevel>4</WarningLevel> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<Compile Include="Properties\AssemblyInfo.cs" /> | |||
<Compile Include="Mocks\MockEventToCommandBehavior.cs" /> | |||
<Compile Include="Services\BasketServiceTests.cs" /> | |||
<Compile Include="Services\CatalogServiceTests.cs" /> | |||
<Compile Include="Services\MarketingServiceTests.cs" /> | |||
<Compile Include="ViewModels\CatalogViewModelTests.cs" /> | |||
<Compile Include="ViewModels\MainViewModelTests.cs" /> | |||
<Compile Include="ViewModels\MarketingViewModelTests.cs" /> | |||
<Compile Include="ViewModels\OrderViewModelTests.cs" /> | |||
<Compile Include="Services\OrdersServiceTests.cs" /> | |||
<Compile Include="Behaviors\EventToCommandBehaviorTests.cs" /> | |||
<Compile Include="Mocks\MockViewModel.cs" /> | |||
<Compile Include="ViewModels\MockViewModelTests.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<None Include="app.config" /> | |||
<None Include="project.json" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\eShopOnContainers.Core\eShopOnContainers.Core.csproj"> | |||
<Project>{67f9d3a8-f71e-4428-913f-c37ae82cdb24}</Project> | |||
<Name>eShopOnContainers.Core</Name> | |||
</ProjectReference> | |||
</ItemGroup> | |||
<ItemGroup /> | |||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" /> | |||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | |||
Other similar extension points exist, see Microsoft.Common.targets. | |||
<Target Name="BeforeBuild"> | |||
</Target> | |||
<Target Name="AfterBuild"> | |||
</Target> | |||
--> | |||
<Import Project="..\..\..\..\packages\Xamarin.Forms.2.3.4.231\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets" Condition="Exists('..\..\..\..\packages\Xamarin.Forms.2.3.4.231\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets')" /> | |||
</Project> |
@ -0,0 +1,26 @@ | |||
{ | |||
"dependencies": { | |||
"Acr.UserDialogs": "6.3.3", | |||
"IdentityModel": "1.3.1", | |||
"Microsoft.NETCore.UniversalWindowsPlatform": "5.3.3", | |||
"Newtonsoft.Json": "9.0.1", | |||
"PCLCrypto": "2.0.147", | |||
"SlideOverKit": "2.1.4", | |||
"Xam.Plugin.Geolocator": "3.0.4", | |||
"Xam.Plugins.Settings": "2.6.0.12-beta", | |||
"Xamarin.FFImageLoading": "2.2.9", | |||
"Xamarin.FFImageLoading.Forms": "2.2.9", | |||
"Xamarin.Forms": "2.3.4.231" | |||
}, | |||
"frameworks": { | |||
"uap10.0": {} | |||
}, | |||
"runtimes": { | |||
"win10-arm": {}, | |||
"win10-arm-aot": {}, | |||
"win10-x86": {}, | |||
"win10-x86-aot": {}, | |||
"win10-x64": {}, | |||
"win10-x64-aot": {} | |||
} | |||
} |
@ -1,13 +1,9 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Threading.Tasks; | |||
namespace eShopOnContainers.Identity | |||
namespace Microsoft.eShopOnContainers.Services.Identity.API | |||
{ | |||
public class AppSettings | |||
{ | |||
public string MvcClient { get; set; } | |||
public bool UseCustomizationData { get; set; } | |||
} | |||
} |
@ -0,0 +1,56 @@ | |||
using IdentityServer4.EntityFramework.DbContexts; | |||
using IdentityServer4.EntityFramework.Mappers; | |||
using Microsoft.eShopOnContainers.Services.Identity.API.Configuration; | |||
using Microsoft.Extensions.Configuration; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Threading.Tasks; | |||
namespace Microsoft.eShopOnContainers.Services.Identity.API.Data | |||
{ | |||
public class ConfigurationDbContextSeed | |||
{ | |||
public async Task SeedAsync(ConfigurationDbContext context,IConfiguration configuration) | |||
{ | |||
//callbacks urls from config: | |||
var clientUrls = new Dictionary<string, string>(); | |||
clientUrls.Add("Mvc", configuration.GetValue<string>("MvcClient")); | |||
clientUrls.Add("Spa", configuration.GetValue<string>("SpaClient")); | |||
clientUrls.Add("Xamarin", configuration.GetValue<string>("XamarinCallback")); | |||
clientUrls.Add("LocationsApi", configuration.GetValue<string>("LocationApiClient")); | |||
clientUrls.Add("MarketingApi", configuration.GetValue<string>("MarketingApiClient")); | |||
clientUrls.Add("BasketApi", configuration.GetValue<string>("BasketApiClient")); | |||
clientUrls.Add("OrderingApi", configuration.GetValue<string>("OrderingApiClient")); | |||
if (!context.Clients.Any()) | |||
{ | |||
foreach (var client in Config.GetClients(clientUrls)) | |||
{ | |||
await context.Clients.AddAsync(client.ToEntity()); | |||
} | |||
await context.SaveChangesAsync(); | |||
} | |||
if (!context.IdentityResources.Any()) | |||
{ | |||
foreach (var resource in Config.GetResources()) | |||
{ | |||
await context.IdentityResources.AddAsync(resource.ToEntity()); | |||
} | |||
await context.SaveChangesAsync(); | |||
} | |||
if (!context.ApiResources.Any()) | |||
{ | |||
foreach (var api in Config.GetApis()) | |||
{ | |||
await context.ApiResources.AddAsync(api.ToEntity()); | |||
} | |||
await context.SaveChangesAsync(); | |||
} | |||
} | |||
} | |||
} |
@ -1,20 +0,0 @@ | |||
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved. | |||
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. | |||
using System.Collections.Generic; | |||
namespace Identity.API.Models.AccountViewModels | |||
{ | |||
//public class _LoginViewModel : LoginViewModel | |||
//{ | |||
// public bool EnableLocalLogin { get; set; } | |||
// public IEnumerable<ExternalProvider> ExternalProviders { get; set; } | |||
//} | |||
//public class ExternalProvider | |||
//{ | |||
// public string DisplayName { get; set; } | |||
// public string AuthenticationScheme { get; set; } | |||
//} | |||
} |