Skip to content

Commit

Permalink
Updates MvvmCross from 6.1.2 to 6.2.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
tbalcom committed Nov 13, 2018
1 parent 5e9447c commit 0f2f746
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="MvvmCross" Version="6.1.2" />
<PackageReference Include="MvvmCross.CodeAnalysis" Version="6.1.2" />
<PackageReference Include="MvvmCross" Version="6.2.2" />
<PackageReference Include="MvvmCross.CodeAnalysis" Version="6.2.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ namespace MvxRecyclerViewSelection.Core.ViewModels.Main
{
public class MainViewModel : BaseViewModel
{
public MainViewModel()
public MainViewModel(IMvxLogProvider mvxLogProvider)
{
PlanetClickCommand = new MvxCommand<PlanetViewModel>((planet) => Log.Info("Clicked planet {0}", planet.Name));
_mvxLog = mvxLogProvider.GetLogFor<MainViewModel>();

PlanetClickCommand = new MvxCommand<PlanetViewModel>((planet) => _mvxLog.Info("Clicked planet {0}", planet.Name));
}

public override async Task Initialize()
Expand Down Expand Up @@ -37,5 +39,7 @@ public MvxObservableCollection<PlanetViewModel> Planets
public MvxCommand<PlanetViewModel> PlanetClickCommand { get; }

private MvxObservableCollection<PlanetViewModel> _planets = new MvxObservableCollection<PlanetViewModel>();

private readonly IMvxLog _mvxLog;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,19 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="MvvmCross">
<Version>6.1.2</Version>
<Version>6.2.2</Version>
</PackageReference>
<PackageReference Include="MvvmCross.CodeAnalysis">
<Version>6.1.2</Version>
<Version>6.2.2</Version>
</PackageReference>
<PackageReference Include="MvvmCross.Droid.Support.Design">
<Version>6.1.2</Version>
<Version>6.2.2</Version>
</PackageReference>
<PackageReference Include="MvvmCross.Droid.Support.V7.AppCompat">
<Version>6.1.2</Version>
<Version>6.2.2</Version>
</PackageReference>
<PackageReference Include="MvvmCross.Droid.Support.V7.RecyclerView">
<Version>6.1.2</Version>
<Version>6.2.2</Version>
</PackageReference>
<PackageReference Include="Xamarin.Android.Support.Constraint.Layout">
<Version>1.1.2</Version>
Expand Down

0 comments on commit 0f2f746

Please sign in to comment.