Skip to content

Commit

Permalink
Merge pull request #2 from danmiser/master
Browse files Browse the repository at this point in the history
Make test app throw exception
  • Loading branch information
gaearon committed May 12, 2013
2 parents 2720f1f + 3025f4a commit 0c2ebab
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 67 deletions.
3 changes: 3 additions & 0 deletions HockeyApp/ApiDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ public interface BITHockeyManager {
[Export("configureWithIdentifier:delegate:")]
void Configure(string identifier, [NullAllowed] BITCrashManagerDelegate del);

[Export("debugLogEnabled")]
bool DebugLogEnabled { get; set; }

[Export("startManager")]
void StartManager();
}
Expand Down
17 changes: 17 additions & 0 deletions SampleApp/AppDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using HockeyApp;
using MonoTouch.Dialog;

namespace SampleApp
{
Expand All @@ -14,13 +15,29 @@ public override UIWindow Window {
get;
set;
}
UINavigationController _nav;
DialogViewController _rootVc;
RootElement _rootElement;
StyledStringElement _button;

// Put your HockeyApp ID here
const string HockeyAppId = "";

public override bool FinishedLaunching (UIApplication application, NSDictionary launchOptions)
{
EnableCrashReporting ();

Window = new UIWindow(UIScreen.MainScreen.Bounds);
_button = new StyledStringElement("Test");
_button.Tapped += delegate {
throw new Exception("test");
};

_rootElement = new RootElement("HockeyTest"){new Section(){_button} };
_rootVc = new DialogViewController(_rootElement);
_nav = new UINavigationController(_rootVc);
Window.RootViewController = _rootVc;
Window.MakeKeyAndVisible();
return true;
}

Expand Down
2 changes: 0 additions & 2 deletions SampleApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
<integer>1</integer>
<integer>2</integer>
</array>
<key>UIMainStoryboardFile</key>
<string>MainStoryboard</string>
<key>UIMainStoryboardFile~ipad</key>
<string>MainStoryboard</string>
<key>UISupportedInterfaceOrientations</key>
Expand Down
27 changes: 0 additions & 27 deletions SampleApp/MainStoryboard.storyboard

This file was deleted.

39 changes: 32 additions & 7 deletions SampleApp/SampleApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<MtouchDebug>True</MtouchDebug>
<MtouchProfiling>True</MtouchProfiling>
<MtouchLink>None</MtouchLink>
<StartupObject>SampleApp.Application</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
<DebugType>none</DebugType>
Expand All @@ -33,6 +34,7 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>False</ConsolePause>
<MtouchLink>None</MtouchLink>
<StartupObject>SampleApp.Application</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
<DebugSymbols>True</DebugSymbols>
Expand All @@ -46,6 +48,7 @@
<CodesignKey>iPhone Developer</CodesignKey>
<MtouchDebug>True</MtouchDebug>
<MtouchProfiling>True</MtouchProfiling>
<StartupObject>SampleApp.Application</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
<DebugType>none</DebugType>
Expand All @@ -55,6 +58,7 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>False</ConsolePause>
<CodesignKey>iPhone Developer</CodesignKey>
<StartupObject>SampleApp.Application</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhone' ">
<DebugType>none</DebugType>
Expand All @@ -65,6 +69,7 @@
<ConsolePause>False</ConsolePause>
<BuildIpa>True</BuildIpa>
<CodesignKey>iPhone Distribution</CodesignKey>
<StartupObject>SampleApp.Application</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'AppStore|iPhone' ">
<DebugType>none</DebugType>
Expand All @@ -74,26 +79,21 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>False</ConsolePause>
<CodesignKey>iPhone Distribution</CodesignKey>
<StartupObject>SampleApp.Application</StartupObject>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="monotouch" />
<Reference Include="MonoTouch.Dialog-1" />
</ItemGroup>
<ItemGroup>
<None Include="Info.plist" />
</ItemGroup>
<ItemGroup>
<Compile Include="Main.cs" />
<Compile Include="AppDelegate.cs" />
<Compile Include="SampleAppViewController.cs" />
<Compile Include="SampleAppViewController.designer.cs">
<DependentUpon>SampleAppViewController.cs</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<InterfaceDefinition Include="MainStoryboard.storyboard" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>
Expand All @@ -102,4 +102,29 @@
<Name>HockeyApp</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<BundleResource Include="HockeySDKResources.bundle\de.lproj\HockeySDK.strings" />
<BundleResource Include="HockeySDKResources.bundle\en.lproj\HockeySDK.strings" />
<BundleResource Include="HockeySDKResources.bundle\es.lproj\HockeySDK.strings" />
<BundleResource Include="HockeySDKResources.bundle\fr.lproj\HockeySDK.strings" />
<BundleResource Include="HockeySDKResources.bundle\it.lproj\HockeySDK.strings" />
<BundleResource Include="HockeySDKResources.bundle\ja.lproj\HockeySDK.strings" />
<BundleResource Include="HockeySDKResources.bundle\nl.lproj\HockeySDK.strings" />
<BundleResource Include="HockeySDKResources.bundle\pt.lproj\HockeySDK.strings" />
<BundleResource Include="HockeySDKResources.bundle\pt-PT.lproj\HockeySDK.strings" />
<BundleResource Include="HockeySDKResources.bundle\ru.lproj\HockeySDK.strings" />
<BundleResource Include="HockeySDKResources.bundle\sv.lproj\HockeySDK.strings" />
<BundleResource Include="HockeySDKResources.bundle\tr.lproj\HockeySDK.strings" />
<BundleResource Include="HockeySDKResources.bundle\zh_CN.lproj\HockeySDK.strings" />
<BundleResource Include="HockeySDKResources.bundle\zh_TW.lproj\HockeySDK.strings" />
<BundleResource Include="HockeySDKResources.bundle\authorize_denied.png" />
<BundleResource Include="HockeySDKResources.bundle\authorize_denied%402x.png" />
<BundleResource Include="HockeySDKResources.bundle\authorize_request.png" />
<BundleResource Include="HockeySDKResources.bundle\authorize_request%402x.png" />
<BundleResource Include="HockeySDKResources.bundle\bg.png" />
<BundleResource Include="HockeySDKResources.bundle\buttonHighlight.png" />
<BundleResource Include="HockeySDKResources.bundle\buttonHighlight%402x.png" />
<BundleResource Include="HockeySDKResources.bundle\IconGradient.png" />
<BundleResource Include="HockeySDKResources.bundle\IconGradient%402x.png" />
</ItemGroup>
</Project>
14 changes: 0 additions & 14 deletions SampleApp/SampleAppViewController.cs

This file was deleted.

17 changes: 0 additions & 17 deletions SampleApp/SampleAppViewController.designer.cs

This file was deleted.

0 comments on commit 0c2ebab

Please sign in to comment.