From 19bd180c3b59a94449a0d27a7301b26b39d56a2d Mon Sep 17 00:00:00 2001 From: Viv-Rajkumar Date: Sun, 23 Mar 2014 10:25:09 +0000 Subject: [PATCH] Added CrashManager Binding to allow AutoSend/Disable of crash reports --- bin/HockeyApp.dll | Bin 7647232 -> 7650304 bytes src/HockeyApp/ApiDefinition.cs | 15 +++++++++++++++ src/HockeyApp/HockeyApp.csproj | 3 +++ src/HockeyApp/StructsAndEnums.cs | 11 +++++++++++ src/SampleApp/AppDelegate.cs | 4 ++++ 5 files changed, 33 insertions(+) create mode 100644 src/HockeyApp/StructsAndEnums.cs diff --git a/bin/HockeyApp.dll b/bin/HockeyApp.dll index 792486e4b3a07fd9109e34f9bd046f455253ee54..1aa3b2ad8104b9f7f8088494526b4679e191d117 100755 GIT binary patch delta 7198 zcmdT}dvH|OdH>G6ckezBdaPDxg@jlkFpI$A*;>dzgakISk&PZ$Ha3+OX^|GBU2*qH z24l2~a2xP6iDd;}c~aW~N-W}}bs8I7!nmSwG|kJ68OL#_O(NphL*BTVdR%9c^mo3y zyGR&klF2{mYJR`_`@Zv?@0@$ix#!$nC8sW_$@ed*j~!ib_{GX*N`0nCDVrr+L@$^` zy6r5zH2k^Ntk+DsQ`%D|U9t8J83iK?M4S7c5Eg*`9Fb~ZJRmhkEh~F2Jze1sT=o5O7$DJO;7$!9CRuImm9zBT$ zHNE1ja!_Vni*DkE`3BG@EjV8`r3AgW46*~a=&5)$6+P!#G&-iK!7`Lq**Un1?Oh=2 zV6YUr8x;}?dXq{}d@TXmOmz(9OFdO~ZqC9*7;{gMi-P5l)lOMeKZGGb_mNzqL-1g# z^3-Y!8X0J-FODpphtyypE}m4IJCo$NgHbebJ zevGhOKj?@jiP_VPPh?CvA;uRnrW|bJJ9lJkIc&x+Gp6jnv09{a$sQRE(!`qgBzZ~C z9mI|NzgXGd|L_Vdq(piJEx{e7S1qPq3-aP&uY6=1F{;xRN(_T=qlGeUbz?1Pdawd% zr>}0?yA)o`J$PrudE;Paf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#JY6aJes5X81tqxazr9-{rjAG!;Sw}7&~0z{|v1DzOa{#3_X0)v>QpoCU#aV + + + \ No newline at end of file diff --git a/src/HockeyApp/StructsAndEnums.cs b/src/HockeyApp/StructsAndEnums.cs new file mode 100644 index 0000000..0c74496 --- /dev/null +++ b/src/HockeyApp/StructsAndEnums.cs @@ -0,0 +1,11 @@ +using System; + +namespace HockeyApp +{ + public enum BITCrashManagerStatus : uint { + Disabled = 0, + AlwaysAsk = 1, + AutoSend = 2 + } +} + diff --git a/src/SampleApp/AppDelegate.cs b/src/SampleApp/AppDelegate.cs index c1a755f..cadf294 100644 --- a/src/SampleApp/AppDelegate.cs +++ b/src/SampleApp/AppDelegate.cs @@ -95,6 +95,10 @@ static void EnableCrashReportingUnsafe () var manager = BITHockeyManager.SharedHockeyManager; manager.Configure (HockeyAppId, null); + + // Uncomment following line to enable auto-send of crash reports on relaunch of app + // manager.CrashManager.CrashManagerStatus = BITCrashManagerStatus.AutoSend; + manager.StartManager (); } }