Skip to content

Commit a475965

Browse files
author
Paul Betts
committed
Merge pull request #219 from reactiveui/rxui5-master
Ship ReactiveUI 5.0
2 parents 6c85a9f + b0a4578 commit a475965

File tree

686 files changed

+80023
-196126
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

686 files changed

+80023
-196126
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,8 @@ NuGet-Release
2121

2222
**/AppPackages
2323
version-bump.patch
24+
25+
ReactiveUI.Events/Events.cs
26+
ReactiveUI.Events/Events_*.cs
27+
28+
packages

.nuget/NuGet.exe

41 KB
Binary file not shown.

AndroidPlayground/AndroidPlayground.csproj

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
<ErrorReport>prompt</ErrorReport>
3737
<WarningLevel>4</WarningLevel>
3838
<ConsolePause>false</ConsolePause>
39-
<AndroidLinkMode>SdkOnly</AndroidLinkMode>
4039
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
4140
</PropertyGroup>
4241
<ItemGroup>
@@ -88,18 +87,6 @@
8887
</ItemGroup>
8988
<Import Project="$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets" />
9089
<ItemGroup>
91-
<ProjectReference Include="..\ReactiveUI.Android\ReactiveUI.Android.csproj">
92-
<Project>{F5A6E11B-B074-4A0B-B937-267D840E31DF}</Project>
93-
<Name>ReactiveUI.Android</Name>
94-
</ProjectReference>
95-
<ProjectReference Include="..\ReactiveUI.Routing\ReactiveUI.Routing_Monodroid.csproj">
96-
<Project>{E92E477B-BB94-43C1-984E-E177EF9FEDB7}</Project>
97-
<Name>ReactiveUI.Routing_Monodroid</Name>
98-
</ProjectReference>
99-
<ProjectReference Include="..\ReactiveUI.Xaml\ReactiveUI.Xaml_Monodroid.csproj">
100-
<Project>{E92A477B-BB94-43C1-984E-E177EF9FEDB7}</Project>
101-
<Name>ReactiveUI.Xaml_Monodroid</Name>
102-
</ProjectReference>
10390
<ProjectReference Include="..\ReactiveUI\ReactiveUI_Monodroid.csproj">
10491
<Project>{F92A477B-BB94-43C1-984E-E177EF9FEDB7}</Project>
10592
<Name>ReactiveUI_Monodroid</Name>
@@ -108,5 +95,9 @@
10895
<Project>{A92E477B-BB94-43C1-984E-E177EF9FEDB1}</Project>
10996
<Name>ReactiveUI.Mobile_Monodroid</Name>
11097
</ProjectReference>
98+
<ProjectReference Include="..\ReactiveUI.Platforms\ReactiveUI.Android.csproj">
99+
<Project>{F5A6E11B-B074-4A0B-B937-267D840E31DF}</Project>
100+
<Name>ReactiveUI.Android</Name>
101+
</ProjectReference>
111102
</ItemGroup>
112103
</Project>

MakeRelease.ps1

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
$Archs = {"Net40", "Net45", "SL5", "SL4-WindowsPhone71", "WP8", "WinRT45", "Mono", "Monodroid", "Monotouch"}
2-
$Projects = {"ReactiveUI", "ReactiveUI.Testing", "ReactiveUI.Xaml", "ReactiveUI.Routing", "ReactiveUI.Blend", "ReactiveUI.Cocoa", "ReactiveUI.Gtk", "ReactiveUI.Android", "ReactiveUI.NLog", "ReactiveUI.Mobile"}
1+
$Archs = {"Portable-Net45+WinRT45+WP8", "Net45", "WP8", "WinRT45", "Mono", "Monoandroid", "Monotouch", "Monomac"}
2+
$Projects = {
3+
"ReactiveUI", "ReactiveUI.Testing", "ReactiveUI.Platforms", "ReactiveUI.Blend",
4+
"ReactiveUI.NLog", "ReactiveUI.Mobile", "RxUIViewModelGenerator", "ReactiveUI.Events"
5+
}
36

4-
$SlnFileExists = Test-Path ".\ReactiveUI.sln"
7+
$SlnFileExists = Test-Path ".\ReactiveUI_VSAll.sln"
58
if ($SlnFileExists -eq $False) {
69
echo "*** ERROR: Run this in the project root ***"
710
exit -1
811
}
912

10-
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /t:Rebuild /p:Configuration=Release /p:Platform="Any CPU" /maxcpucount:1 .\ReactiveUI.sln
13+
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /t:Rebuild /p:Configuration=Release /p:Platform="Any CPU" /maxcpucount:1 .\ReactiveUI_VSAll.sln
1114

1215
###
1316
### Build the Release directory
@@ -42,11 +45,11 @@ cp -r .\NuGet .\NuGet-Release
4245

4346
$libDirs = ls -r .\NuGet-Release | ?{$_.Name -eq "lib"}
4447
$srcDirs = ls -r .\NuGet-Release | ?{$_.Name -eq "src"} | %{ls $_.FullName}
48+
$toolsDirs = ls -r .\NuGet-Release | ?{$_.Name -eq "tools"}
4549
$nugetReleaseDir = Resolve-Path ".\NuGet-Release"
4650

4751
# copy binaries
4852
foreach ($dir in $libDirs) {
49-
$projName = $dir.FullName.Split("\\")[-2]
5053
$arches = ls $dir.FullName
5154

5255
foreach ($arch in $arches) {
@@ -59,6 +62,20 @@ foreach ($dir in $libDirs) {
5962
}
6063
}
6164

65+
# copy tools
66+
foreach ($dir in $toolsDirs) {
67+
echo "foo"
68+
echo $dir.FullName
69+
$files = ls $dir.FullName
70+
71+
foreach ($file in $files) {
72+
echo "bar"
73+
echo $file.FullName
74+
$src = ".\Release\Net45\" + $file.Name
75+
cp -fo "$src" $file.FullName
76+
}
77+
}
78+
6279
# copy source
6380
foreach ($dir in $srcDirs) {
6481
$projName = $dir.Name
@@ -67,11 +84,11 @@ foreach ($dir in $srcDirs) {
6784
robocopy ".\$projFolderName\" "$($dir.FullName)" *.cs /S
6885
}
6986

70-
$stubs = ls -r -file .\NuGet-Release | ?{$_.Length -eq 0}
87+
$stubs = ls -r -file .\NuGet-Release | ?{$_.Length -eq 0} | ?{!$_.FullName.Contains("src")}
7188
if ($stubs.Length -gt 0) {
7289
echo "*** BUILD FAILED ***"
7390
echo ""
74-
echo "*** There are still stubs in the NuGet output, did you fully build? (Hint: Check Silverlight) ***"
91+
echo "*** There are still stubs in the NuGet output, did you fully build? ***"
7592
#exit 1
7693
}
7794

MobileSample-WP8/App.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
55
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
66
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
7-
xmlns:mobile="clr-namespace:ReactiveUI.Mobile;assembly=ReactiveUI.Mobile_WP8">
7+
xmlns:mobile="clr-namespace:ReactiveUI.Mobile;assembly=ReactiveUI.Mobile">
88

99
<!--Application Resources-->
1010
<Application.Resources>

MobileSample-WP8/App.xaml.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ public App()
4646
PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;
4747
}
4848

49-
RxApp.Register(typeof (AppBootstrapper), typeof (IApplicationRootState));
49+
//TODo get rid of ugly casting
50+
((ModernDependencyResolver)RxApp.DependencyResolver).Register(() => new AppBootstrapper(), typeof(IApplicationRootState));
5051

51-
var host = RxApp.GetService<ISuspensionHost>();
52+
var host = RxApp.DependencyResolver.GetService<ISuspensionHost>();
5253
host.SetupDefaultSuspendResume();
5354
}
5455

MobileSample-WP8/MainPage.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
77
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
88
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
9-
xmlns:routing="clr-namespace:ReactiveUI.Routing;assembly=ReactiveUI.Routing_WP8"
9+
xmlns:routing="clr-namespace:ReactiveUI.Xaml;assembly=ReactiveUI.Xaml"
1010
mc:Ignorable="d"
1111
FontFamily="{StaticResource PhoneFontFamilyNormal}"
1212
FontSize="{StaticResource PhoneFontSizeNormal}"

MobileSample-WP8/MobileSample-WP8.csproj

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -169,22 +169,18 @@
169169
<Project>{B90F3D02-1E3A-4DD7-8E00-30F28B6DCC1E}</Project>
170170
<Name>ReactiveUI.Mobile_WP8</Name>
171171
</ProjectReference>
172-
<ProjectReference Include="..\ReactiveUI.Routing\ReactiveUI.Routing_WP8.csproj">
173-
<Project>{9F70B056-893E-487D-8DD1-C012C4440618}</Project>
174-
<Name>ReactiveUI.Routing_WP8</Name>
175-
</ProjectReference>
176-
<ProjectReference Include="..\ReactiveUI.Xaml\ReactiveUI.Xaml_WP8.csproj">
172+
<ProjectReference Include="..\ReactiveUI.Platforms\ReactiveUI.Xaml_WP8.csproj">
177173
<Project>{F9459904-F785-4255-866A-A619787CB895}</Project>
178174
<Name>ReactiveUI.Xaml_WP8</Name>
179175
</ProjectReference>
180-
<ProjectReference Include="..\ReactiveUI\ReactiveUI_WP8.csproj">
181-
<Project>{884D2D0B-65CE-40CB-AE45-B1F45C4ECE76}</Project>
182-
<Name>ReactiveUI_WP8</Name>
176+
<ProjectReference Include="..\ReactiveUI\ReactiveUI.csproj">
177+
<Project>{464CB812-F99F-401B-BE4C-E8F0515CD19D}</Project>
178+
<Name>ReactiveUI</Name>
183179
</ProjectReference>
184180
</ItemGroup>
185181
<ItemGroup>
186182
<Reference Include="Newtonsoft.Json">
187-
<HintPath>..\ext\WP80\Newtonsoft.Json.dll</HintPath>
183+
<HintPath>..\ext\Portable-Net45+WinRT45+WP8\Newtonsoft.Json.dll</HintPath>
188184
</Reference>
189185
<Reference Include="Ninject.Common">
190186
<HintPath>.\Ninject.Common.dll</HintPath>
@@ -222,5 +218,4 @@
222218
-->
223219
<ProjectExtensions />
224220
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
225-
<Import Project="..\packages\Microsoft.Bcl.Build.1.0.4\tools\Microsoft.Bcl.Build.targets" />
226221
</Project>

MobileSample-WP8/ViewModels/AppBootstrapper.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
using Ninject;
1212
using ReactiveUI;
1313
using ReactiveUI.Mobile;
14-
using ReactiveUI.Routing;
1514
using MobileSample_WP8.Views;
1615

1716
namespace MobileSample_WP8.ViewModels
@@ -73,10 +72,10 @@ public AppBootstrapper()
7372

7473
Kernel.Bind<IScreen>().ToConstant(this);
7574

76-
RxApp.ConfigureServiceLocator(
77-
(t, s) => Kernel.Get(t, s),
78-
(t, s) => Kernel.GetAll(t, s),
79-
(c, t, s) => { var r = Kernel.Bind(t).To(c); if (s != null) r.Named(s); });
75+
//RxApp.ConfigureServiceLocator(
76+
// (t, s) => Kernel.Get(t, s),
77+
// (t, s) => Kernel.GetAll(t, s),
78+
// (c, t, s) => { var r = Kernel.Bind(t).To(c); if (s != null) r.Named(s); });
8079

8180
Router.Navigate.Execute(new TestPage1ViewModel(this));
8281
}

MobileSample-WP8/ViewModels/TestPage1ViewModel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Runtime.Serialization;
33
using ReactiveUI;
4-
using ReactiveUI.Routing;
54

65
namespace MobileSample_WP8.ViewModels
76
{

0 commit comments

Comments
 (0)