Skip to content

Commit

Permalink
Added missing NuGet references from MADE.Samples and updated the plat…
Browse files Browse the repository at this point in the history
…form specific locators.
  • Loading branch information
jamesmcroft committed Mar 14, 2019
1 parent 8f0342a commit 4b1e12e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
2 changes: 0 additions & 2 deletions MADE.Samples.Android/AndroidLocator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
using MADE.App.Views.Dialogs;
using MADE.App.Views.Threading;

using XPlat.UI.Core;

public class AndroidLocator
{
static AndroidLocator()
Expand Down
3 changes: 3 additions & 0 deletions MADE.Samples.Android/MADE.Samples.Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="MvvmLightLibsStd10">
<Version>5.4.1.1</Version>
</PackageReference>
<PackageReference Include="Xamarin.Android.Support.Constraint.Layout">
<Version>1.1.2</Version>
</PackageReference>
Expand Down
3 changes: 3 additions & 0 deletions MADE.Samples.Windows/MADE.Samples.Windows.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
<Version>6.1.9</Version>
</PackageReference>
<PackageReference Include="MvvmLightLibsStd10">
<Version>5.4.1.1</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MADE.App.Design\MADE.App.Design.csproj">
Expand Down
9 changes: 1 addition & 8 deletions MADE.Samples.Windows/WindowsLocator.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
namespace MADE.Samples.Windows
{
using CommonServiceLocator;

using GalaSoft.MvvmLight.Ioc;

using MADE.App.Diagnostics;
Expand All @@ -13,14 +11,9 @@ public class WindowsLocator
{
static WindowsLocator()
{
if (!ServiceLocator.IsLocationProviderSet)
{
ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default);
}

SimpleIoc.Default.Register<IEventLogger, EventLogger>();
SimpleIoc.Default.Register<IAppDiagnostics>(
() => new AppDiagnostics(ServiceLocator.Current.GetInstance<IEventLogger>()));
() => new AppDiagnostics(SimpleIoc.Default.GetInstance<IEventLogger>()));
SimpleIoc.Default.Register<IUIDispatcher, UIDispatcher>();
SimpleIoc.Default.Register<IAppDialog, AppDialog>();
}
Expand Down

0 comments on commit 4b1e12e

Please sign in to comment.