Skip to content

Commit

Permalink
Add an iOS test app
Browse files Browse the repository at this point in the history
  • Loading branch information
anaisbetts committed Mar 9, 2013
1 parent b9ed714 commit e071045
Show file tree
Hide file tree
Showing 8 changed files with 616 additions and 1 deletion.
228 changes: 227 additions & 1 deletion ReactiveUI_Monotouch.sln
Expand Up @@ -9,30 +9,256 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReactiveUI.Routing_Monotouc
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReactiveUI.Cocoa_Monotouch", "ReactiveUI.Cocoa\ReactiveUI.Cocoa_Monotouch.csproj", "{9091337A-9E94-4DBD-801E-15E1FDA78FFC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "iOSPlayground", "iOSPlayground\iOSPlayground.csproj", "{420CF325-38B9-4B30-8978-D519EC40B6A8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
Debug|iPhoneSimulator = Debug|iPhoneSimulator
Release|iPhoneSimulator = Release|iPhoneSimulator
Debug|iPhone = Debug|iPhone
Release|iPhone = Release|iPhone
Ad-Hoc|iPhone = Ad-Hoc|iPhone
AppStore|iPhone = AppStore|iPhone
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{420CF325-38B9-4B30-8978-D519EC40B6A8}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
{420CF325-38B9-4B30-8978-D519EC40B6A8}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
{420CF325-38B9-4B30-8978-D519EC40B6A8}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
{420CF325-38B9-4B30-8978-D519EC40B6A8}.AppStore|iPhone.Build.0 = AppStore|iPhone
{420CF325-38B9-4B30-8978-D519EC40B6A8}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator
{420CF325-38B9-4B30-8978-D519EC40B6A8}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator
{420CF325-38B9-4B30-8978-D519EC40B6A8}.Debug|iPhone.ActiveCfg = Debug|iPhone
{420CF325-38B9-4B30-8978-D519EC40B6A8}.Debug|iPhone.Build.0 = Debug|iPhone
{420CF325-38B9-4B30-8978-D519EC40B6A8}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{420CF325-38B9-4B30-8978-D519EC40B6A8}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{420CF325-38B9-4B30-8978-D519EC40B6A8}.Release|Any CPU.ActiveCfg = Release|iPhoneSimulator
{420CF325-38B9-4B30-8978-D519EC40B6A8}.Release|Any CPU.Build.0 = Release|iPhoneSimulator
{420CF325-38B9-4B30-8978-D519EC40B6A8}.Release|iPhone.ActiveCfg = Release|iPhone
{420CF325-38B9-4B30-8978-D519EC40B6A8}.Release|iPhone.Build.0 = Release|iPhone
{420CF325-38B9-4B30-8978-D519EC40B6A8}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{420CF325-38B9-4B30-8978-D519EC40B6A8}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{9091337A-9E94-4DBD-801E-05E1FDA78FFC}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
{9091337A-9E94-4DBD-801E-05E1FDA78FFC}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
{9091337A-9E94-4DBD-801E-05E1FDA78FFC}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
{9091337A-9E94-4DBD-801E-05E1FDA78FFC}.AppStore|iPhone.Build.0 = Debug|Any CPU
{9091337A-9E94-4DBD-801E-05E1FDA78FFC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9091337A-9E94-4DBD-801E-05E1FDA78FFC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9091337A-9E94-4DBD-801E-05E1FDA78FFC}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{9091337A-9E94-4DBD-801E-05E1FDA78FFC}.Debug|iPhone.Build.0 = Debug|Any CPU
{9091337A-9E94-4DBD-801E-05E1FDA78FFC}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{9091337A-9E94-4DBD-801E-05E1FDA78FFC}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{9091337A-9E94-4DBD-801E-05E1FDA78FFC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9091337A-9E94-4DBD-801E-05E1FDA78FFC}.Release|Any CPU.Build.0 = Release|Any CPU
{9091337A-9E94-4DBD-801E-05E1FDA78FFC}.Release|iPhone.ActiveCfg = Release|Any CPU
{9091337A-9E94-4DBD-801E-05E1FDA78FFC}.Release|iPhone.Build.0 = Release|Any CPU
{9091337A-9E94-4DBD-801E-05E1FDA78FFC}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{9091337A-9E94-4DBD-801E-05E1FDA78FFC}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{9091337A-9E94-4DBD-801E-15E1FDA78FFC}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
{9091337A-9E94-4DBD-801E-15E1FDA78FFC}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
{9091337A-9E94-4DBD-801E-15E1FDA78FFC}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
{9091337A-9E94-4DBD-801E-15E1FDA78FFC}.AppStore|iPhone.Build.0 = Debug|Any CPU
{9091337A-9E94-4DBD-801E-15E1FDA78FFC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9091337A-9E94-4DBD-801E-15E1FDA78FFC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9091337A-9E94-4DBD-801E-15E1FDA78FFC}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{9091337A-9E94-4DBD-801E-15E1FDA78FFC}.Debug|iPhone.Build.0 = Debug|Any CPU
{9091337A-9E94-4DBD-801E-15E1FDA78FFC}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{9091337A-9E94-4DBD-801E-15E1FDA78FFC}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{9091337A-9E94-4DBD-801E-15E1FDA78FFC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9091337A-9E94-4DBD-801E-15E1FDA78FFC}.Release|Any CPU.Build.0 = Release|Any CPU
{9091337A-9E94-4DBD-801E-15E1FDA78FFC}.Release|iPhone.ActiveCfg = Release|Any CPU
{9091337A-9E94-4DBD-801E-15E1FDA78FFC}.Release|iPhone.Build.0 = Release|Any CPU
{9091337A-9E94-4DBD-801E-15E1FDA78FFC}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{9091337A-9E94-4DBD-801E-15E1FDA78FFC}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{9091337B-9E94-4DBD-801E-05E1FDA78FFC}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
{9091337B-9E94-4DBD-801E-05E1FDA78FFC}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
{9091337B-9E94-4DBD-801E-05E1FDA78FFC}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
{9091337B-9E94-4DBD-801E-05E1FDA78FFC}.AppStore|iPhone.Build.0 = Debug|Any CPU
{9091337B-9E94-4DBD-801E-05E1FDA78FFC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9091337B-9E94-4DBD-801E-05E1FDA78FFC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9091337B-9E94-4DBD-801E-05E1FDA78FFC}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{9091337B-9E94-4DBD-801E-05E1FDA78FFC}.Debug|iPhone.Build.0 = Debug|Any CPU
{9091337B-9E94-4DBD-801E-05E1FDA78FFC}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{9091337B-9E94-4DBD-801E-05E1FDA78FFC}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{9091337B-9E94-4DBD-801E-05E1FDA78FFC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9091337B-9E94-4DBD-801E-05E1FDA78FFC}.Release|Any CPU.Build.0 = Release|Any CPU
{9091337B-9E94-4DBD-801E-05E1FDA78FFC}.Release|iPhone.ActiveCfg = Release|Any CPU
{9091337B-9E94-4DBD-801E-05E1FDA78FFC}.Release|iPhone.Build.0 = Release|Any CPU
{9091337B-9E94-4DBD-801E-05E1FDA78FFC}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{9091337B-9E94-4DBD-801E-05E1FDA78FFC}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{9891337A-9E94-4DBD-801E-05E1FDA78FFC}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
{9891337A-9E94-4DBD-801E-05E1FDA78FFC}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
{9891337A-9E94-4DBD-801E-05E1FDA78FFC}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
{9891337A-9E94-4DBD-801E-05E1FDA78FFC}.AppStore|iPhone.Build.0 = Debug|Any CPU
{9891337A-9E94-4DBD-801E-05E1FDA78FFC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9891337A-9E94-4DBD-801E-05E1FDA78FFC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9891337A-9E94-4DBD-801E-05E1FDA78FFC}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{9891337A-9E94-4DBD-801E-05E1FDA78FFC}.Debug|iPhone.Build.0 = Debug|Any CPU
{9891337A-9E94-4DBD-801E-05E1FDA78FFC}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{9891337A-9E94-4DBD-801E-05E1FDA78FFC}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{9891337A-9E94-4DBD-801E-05E1FDA78FFC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9891337A-9E94-4DBD-801E-05E1FDA78FFC}.Release|Any CPU.Build.0 = Release|Any CPU
{9891337A-9E94-4DBD-801E-05E1FDA78FFC}.Release|iPhone.ActiveCfg = Release|Any CPU
{9891337A-9E94-4DBD-801E-05E1FDA78FFC}.Release|iPhone.Build.0 = Release|Any CPU
{9891337A-9E94-4DBD-801E-05E1FDA78FFC}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{9891337A-9E94-4DBD-801E-05E1FDA78FFC}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = ReactiveUI\ReactiveUI_Monotouch.csproj
StartupItem = iOSPlayground\iOSPlayground.csproj
Policies = $0
$0.TextStylePolicy = $1
$1.inheritsSet = VisualStudio
$1.inheritsScope = text/plain
$1.scope = text/plain
$0.TextStylePolicy = $2
$2.inheritsSet = null
$2.scope = text/x-csharp
$0.CSharpFormattingPolicy = $3
$3.IndentSwitchBody = True
$3.AnonymousMethodBraceStyle = NextLine
$3.PropertyBraceStyle = NextLine
$3.PropertyGetBraceStyle = NextLine
$3.PropertySetBraceStyle = NextLine
$3.EventBraceStyle = NextLine
$3.EventAddBraceStyle = NextLine
$3.EventRemoveBraceStyle = NextLine
$3.StatementBraceStyle = NextLine
$3.ArrayInitializerBraceStyle = NextLine
$3.BeforeMethodDeclarationParentheses = False
$3.BeforeMethodCallParentheses = False
$3.BeforeConstructorDeclarationParentheses = False
$3.BeforeDelegateDeclarationParentheses = False
$3.NewParentheses = False
$3.inheritsSet = Mono
$3.inheritsScope = text/x-csharp
$3.scope = text/x-csharp
$0.StandardHeader = $4
$4.Text =
$4.IncludeInNewFiles = True
$0.NameConventionPolicy = $5
$5.Rules = $6
$6.NamingRule = $7
$7.Name = Namespaces
$7.AffectedEntity = Namespace
$7.VisibilityMask = VisibilityMask
$7.NamingStyle = PascalCase
$7.IncludeInstanceMembers = True
$7.IncludeStaticEntities = True
$6.NamingRule = $8
$8.Name = Types
$8.AffectedEntity = Class, Struct, Enum, Delegate
$8.VisibilityMask = Public
$8.NamingStyle = PascalCase
$8.IncludeInstanceMembers = True
$8.IncludeStaticEntities = True
$6.NamingRule = $9
$9.Name = Interfaces
$9.RequiredPrefixes = $10
$10.String = I
$9.AffectedEntity = Interface
$9.VisibilityMask = Public
$9.NamingStyle = PascalCase
$9.IncludeInstanceMembers = True
$9.IncludeStaticEntities = True
$6.NamingRule = $11
$11.Name = Attributes
$11.RequiredSuffixes = $12
$12.String = Attribute
$11.AffectedEntity = CustomAttributes
$11.VisibilityMask = Public
$11.NamingStyle = PascalCase
$11.IncludeInstanceMembers = True
$11.IncludeStaticEntities = True
$6.NamingRule = $13
$13.Name = Event Arguments
$13.RequiredSuffixes = $14
$14.String = EventArgs
$13.AffectedEntity = CustomEventArgs
$13.VisibilityMask = Public
$13.NamingStyle = PascalCase
$13.IncludeInstanceMembers = True
$13.IncludeStaticEntities = True
$6.NamingRule = $15
$15.Name = Exceptions
$15.RequiredSuffixes = $16
$16.String = Exception
$15.AffectedEntity = CustomExceptions
$15.VisibilityMask = VisibilityMask
$15.NamingStyle = PascalCase
$15.IncludeInstanceMembers = True
$15.IncludeStaticEntities = True
$6.NamingRule = $17
$17.Name = Methods
$17.AffectedEntity = Methods
$17.VisibilityMask = Protected, Public
$17.NamingStyle = PascalCase
$17.IncludeInstanceMembers = True
$17.IncludeStaticEntities = True
$6.NamingRule = $18
$18.Name = Static Readonly Fields
$18.AffectedEntity = ReadonlyField
$18.VisibilityMask = Protected, Public
$18.NamingStyle = PascalCase
$18.IncludeInstanceMembers = False
$18.IncludeStaticEntities = True
$6.NamingRule = $19
$19.Name = Fields
$19.AffectedEntity = Field
$19.VisibilityMask = Protected, Public
$19.NamingStyle = PascalCase
$19.IncludeInstanceMembers = True
$19.IncludeStaticEntities = True
$6.NamingRule = $20
$20.Name = ReadOnly Fields
$20.AffectedEntity = ReadonlyField
$20.VisibilityMask = Protected, Public
$20.NamingStyle = PascalCase
$20.IncludeInstanceMembers = True
$20.IncludeStaticEntities = False
$6.NamingRule = $21
$21.Name = Constant Fields
$21.AffectedEntity = ConstantField
$21.VisibilityMask = Protected, Public
$21.NamingStyle = PascalCase
$21.IncludeInstanceMembers = True
$21.IncludeStaticEntities = True
$6.NamingRule = $22
$22.Name = Properties
$22.AffectedEntity = Property
$22.VisibilityMask = Protected, Public
$22.NamingStyle = PascalCase
$22.IncludeInstanceMembers = True
$22.IncludeStaticEntities = True
$6.NamingRule = $23
$23.Name = Events
$23.AffectedEntity = Event
$23.VisibilityMask = Protected, Public
$23.NamingStyle = PascalCase
$23.IncludeInstanceMembers = True
$23.IncludeStaticEntities = True
$6.NamingRule = $24
$24.Name = Enum Members
$24.AffectedEntity = EnumMember
$24.VisibilityMask = VisibilityMask
$24.NamingStyle = PascalCase
$24.IncludeInstanceMembers = True
$24.IncludeStaticEntities = True
$6.NamingRule = $25
$25.Name = Parameters
$25.AffectedEntity = Parameter
$25.VisibilityMask = VisibilityMask
$25.NamingStyle = CamelCase
$25.IncludeInstanceMembers = True
$25.IncludeStaticEntities = True
$6.NamingRule = $26
$26.Name = Type Parameters
$26.RequiredPrefixes = $27
$27.String = T
$26.AffectedEntity = TypeParameter
$26.VisibilityMask = VisibilityMask
$26.NamingStyle = PascalCase
$26.IncludeInstanceMembers = True
$26.IncludeStaticEntities = True
EndGlobalSection
EndGlobal
43 changes: 43 additions & 0 deletions iOSPlayground/AppDelegate.cs
@@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.Linq;

using MonoTouch.Foundation;
using MonoTouch.UIKit;

namespace iOSPlayground
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to
// application events from iOS.
[Register ("AppDelegate")]
public partial class AppDelegate : UIApplicationDelegate
{
// class-level declarations
UIWindow window;
iOSPlaygroundViewController viewController;

//
// This method is invoked when the application has loaded and is ready to run. In this
// method you should instantiate the window, load the UI into it and then make the window
// visible.
//
// You have 17 seconds to return from this method, or iOS will terminate your application.
//
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
(new ReactiveUI.Xaml.ServiceLocationRegistration()).Register();
(new ReactiveUI.Routing.ServiceLocationRegistration()).Register();
(new ReactiveUI.Cocoa.ServiceLocationRegistration()).Register();

window = new UIWindow(UIScreen.MainScreen.Bounds);

viewController = new iOSPlaygroundViewController();
window.RootViewController = viewController;
window.MakeKeyAndVisible();

return true;
}
}
}

12 changes: 12 additions & 0 deletions iOSPlayground/Info.plist
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
20 changes: 20 additions & 0 deletions iOSPlayground/Main.cs
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;

using MonoTouch.Foundation;
using MonoTouch.UIKit;

namespace iOSPlayground
{
public class Application
{
// This is the main entry point of the application.
static void Main(string[] args)
{
// if you want to use a different Application Delegate class from "AppDelegate"
// you can specify it here.
UIApplication.Main(args, null, "AppDelegate");
}
}
}

0 comments on commit e071045

Please sign in to comment.