Skip to content

Commit

Permalink
Replaced Crashlytics with HockeyApp
Browse files Browse the repository at this point in the history
  • Loading branch information
swisspol committed Aug 31, 2016
1 parent 4faaa77 commit 4bd51e3
Show file tree
Hide file tree
Showing 41 changed files with 2,024 additions and 293 deletions.
23 changes: 11 additions & 12 deletions GitUp/Application/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.

#import <Security/Security.h>
#import <Crashlytics/Crashlytics.h>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-interface-ivars"
#import <HockeySDK/HockeySDK.h>
#pragma clang diagnostic pop
#import <Sparkle/Sparkle.h>

#import <GitUpKit/XLFacilityMacros.h>
Expand Down Expand Up @@ -45,7 +48,7 @@ - (void)setShowsTagField:(BOOL)flag;
@interface WelcomeView : NSView
@end

@interface AppDelegate () <NSUserNotificationCenterDelegate, CrashlyticsDelegate, SUUpdaterDelegate>
@interface AppDelegate () <NSUserNotificationCenterDelegate, SUUpdaterDelegate>
- (IBAction)closeWelcomeWindow:(id)sender;
@end

Expand Down Expand Up @@ -332,11 +335,13 @@ - (void)handleDocumentCountChanged {
- (void)applicationWillFinishLaunching:(NSNotification*)notification {
// Initialize custom subclass of NSDocumentController
[DocumentController sharedDocumentController];

#if !DEBUG
// Initialize Crashlytics
[Crashlytics startWithAPIKey:@"946dcb56f0db1be8f0c52df6e7d392202a2cc9b2"];
[[Crashlytics sharedInstance] setDelegate:self];
// Initialize HockeyApp
[[BITHockeyManager sharedHockeyManager] configureWithIdentifier:@"65233b0e034e4fcbaf6754afba3b2b23"];
[[BITHockeyManager sharedHockeyManager] setDisableMetricsManager:YES];
[[BITHockeyManager sharedHockeyManager] setDisableFeedbackManager:YES];
[[BITHockeyManager sharedHockeyManager] startManager];

// Initialize Google Analytics
[[GARawTracker sharedTracker] startWithTrackingID:@"UA-83409580-1"];
Expand Down Expand Up @@ -746,12 +751,6 @@ - (void)repository:(GCRepository*)repository didFinishTransferWithURL:(NSURL*)ur
_authenticationPassword = nil;
}

#pragma mark - CrashlyticsDelegate

- (void)crashlytics:(Crashlytics*)crashlytics didDetectCrashDuringPreviousExecution:(id <CLSCrashReport>)crash {
XLOG_WARNING(@"Application crashed during previous execution on %@", crash.crashedOnDate);
}

#pragma mark - SUUpdaterDelegate

- (NSString*)feedURLStringForUpdater:(SUUpdater*)updater {
Expand Down
31 changes: 7 additions & 24 deletions GitUp/GitUp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
E2C5672D1A6D98BC00ECFE07 /* WindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C5672C1A6D98BC00ECFE07 /* WindowController.m */; };
E2E3C9A01D771E7600AA9A62 /* GARawTracker.m in Sources */ = {isa = PBXBuildFile; fileRef = E2E3C99F1D771E7600AA9A62 /* GARawTracker.m */; };
E2E3C9A21D771E9D00AA9A62 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E2E3C9A11D771E9D00AA9A62 /* SystemConfiguration.framework */; };
E2F6AA0A1A7EED89002DBF56 /* Crashlytics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E2F6AA091A7EED74002DBF56 /* Crashlytics.framework */; };
E2E3C9A41D77227F00AA9A62 /* HockeySDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E2E3C9A31D77227F00AA9A62 /* HockeySDK.framework */; };
E2E3C9A51D77228F00AA9A62 /* HockeySDK.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = E2E3C9A31D77227F00AA9A62 /* HockeySDK.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -96,6 +97,7 @@
dstSubfolderSpec = 10;
files = (
E267E1F31B84D93300BAB377 /* Sparkle.framework in Copy Frameworks */,
E2E3C9A51D77228F00AA9A62 /* HockeySDK.framework in Copy Frameworks */,
E28A16E61B87023C00218332 /* GitUpKit.framework in Copy Frameworks */,
);
name = "Copy Frameworks";
Expand Down Expand Up @@ -142,7 +144,7 @@
E2E3C99E1D771E7600AA9A62 /* GARawTracker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GARawTracker.h; sourceTree = "<group>"; };
E2E3C99F1D771E7600AA9A62 /* GARawTracker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GARawTracker.m; sourceTree = "<group>"; };
E2E3C9A11D771E9D00AA9A62 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
E2F6AA091A7EED74002DBF56 /* Crashlytics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Crashlytics.framework; path = "Third-Party/Crashlytics.framework"; sourceTree = SOURCE_ROOT; };
E2E3C9A31D77227F00AA9A62 /* HockeySDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = HockeySDK.framework; path = "Third-Party/HockeySDK.framework"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -167,9 +169,9 @@
165C32B61B95739700D2F894 /* QuartzCore.framework in Frameworks */,
E2C338D719F85C2E00063D95 /* Cocoa.framework in Frameworks */,
E267E26B1B84E07E00BAB377 /* Security.framework in Frameworks */,
E2653D251A5B2FBD006A9871 /* Sparkle.framework in Frameworks */,
E2F6AA0A1A7EED89002DBF56 /* Crashlytics.framework in Frameworks */,
E28A16E51B87023200218332 /* GitUpKit.framework in Frameworks */,
E2E3C9A41D77227F00AA9A62 /* HockeySDK.framework in Frameworks */,
E2653D251A5B2FBD006A9871 /* Sparkle.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -185,8 +187,8 @@
E28200AC1A7D71EE00DA4096 /* CoreServices.framework */,
165C32B51B95739700D2F894 /* QuartzCore.framework */,
E2B14B561A88102C00003E64 /* Security.framework */,
E2E3C9A31D77227F00AA9A62 /* HockeySDK.framework */,
E2653D241A5B2FBD006A9871 /* Sparkle.framework */,
E2F6AA091A7EED74002DBF56 /* Crashlytics.framework */,
E222FF7E1B9210F600507E77 /* libcrypto.dylib */,
E212A6DD1B92100E00F62B18 /* libiconv.dylib */,
E2C3394419F85D4B00063D95 /* libz.dylib */,
Expand Down Expand Up @@ -313,7 +315,6 @@
E2C338A919F8562F00063D95 /* Resources */,
E2653D271A5B3298006A9871 /* Copy Frameworks */,
E21DCAF21B2538FB006424E8 /* Copy Tool */,
E219D0381A5B2A5F00E1FEB8 /* Run Crashlytics */,
);
buildRules = (
);
Expand Down Expand Up @@ -406,24 +407,6 @@
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
E219D0381A5B2A5F00E1FEB8 /* Run Crashlytics */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Run Crashlytics";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if [ \"$RUN_CLANG_STATIC_ANALYZER\" != \"\" ]; then\n echo \"Skipping Crashlytics for Clang Static Analyzer\"\nelif [ \"$CONFIGURATION\" == \"Distribution\" ]; then\n ./Crashlytics.framework/run 946dcb56f0db1be8f0c52df6e7d392202a2cc9b2 f28ac00033414b7f28707ab10fc43b008b96dd8cf081d4fb462294c811397108\nelse\n echo \"Skipping Crashlytics in $CONFIGURATION configuration\"\nfi\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
E21DCAE41B253847006424E8 /* Sources */ = {
isa = PBXSourcesBuildPhase;
Expand Down
1 change: 0 additions & 1 deletion GitUp/Third-Party/Crashlytics.framework/Crashlytics

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file removed GitUp/Third-Party/Crashlytics.framework/run
Binary file not shown.
1 change: 1 addition & 0 deletions GitUp/Third-Party/HockeySDK.framework/HockeySDK
Loading

0 comments on commit 4bd51e3

Please sign in to comment.