Skip to content

Commit

Permalink
Add HockeySDK
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisballinger committed Aug 2, 2014
1 parent 2d04022 commit 7cdf4c3
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ xcuserdata
.svn
DerivedData
*.orig

/iBurn/BRCSecrets.m

/Pods/
3 changes: 2 additions & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ pod 'YapDatabase', '~> 2.4'
pod 'Mantle', '~> 1.5'
pod 'ActionSheetPicker-3.0', '~> 1.0'
pod 'FormatterKit/LocationFormatter', '~> 1.6'
pod 'FormatterKit/TimeIntervalFormatter', '~> 1.6'
pod 'FormatterKit/TimeIntervalFormatter', '~> 1.6'
pod 'HockeySDK', '~> 3.5'
3 changes: 3 additions & 0 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ PODS:
- FormatterKit/TimeIntervalFormatter (1.6.0)
- GRMustache (6.8.3):
- JRSwizzle (~> 1.0)
- HockeySDK (3.5.6)
- JRSwizzle (1.0)
- Mantle (1.5):
- Mantle/extobjc
Expand All @@ -35,6 +36,7 @@ DEPENDENCIES:
- ActionSheetPicker-3.0 (~> 1.0)
- FormatterKit/LocationFormatter (~> 1.6)
- FormatterKit/TimeIntervalFormatter (~> 1.6)
- HockeySDK (~> 3.5)
- Mantle (~> 1.5)
- Mapbox-iOS-SDK (~> 1.2)
- YapDatabase (~> 2.4)
Expand All @@ -45,6 +47,7 @@ SPEC CHECKSUMS:
FMDB: 31ec26773c7f7b7890a6038235a1f2bbd933a7cb
FormatterKit: 534b21b52b9b822a9ec884a14e2debf92e7a3126
GRMustache: ab96109b7ba4b9568425bea40d6cd2cdc7582b6c
HockeySDK: 27d8b411208f9d3f70c8f6695a8defa2a3465721
JRSwizzle: 30da7a2c539a4ebf954b16d15f6dd8221c9f6fa5
Mantle: c67a7e45e14196ed42b2a7cbb98ff6a9920e6b92
Mapbox-iOS-SDK: 961de5e8caba54a093d69b89696816b55f4c0254
Expand Down
6 changes: 6 additions & 0 deletions iBurn.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
D92562C81988771400ED6B50 /* BRCEventObjectTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = D92562C71988771400ED6B50 /* BRCEventObjectTableViewCell.xib */; };
D92562CC1988929A00ED6B50 /* BRCLocationManager.m in Sources */ = {isa = PBXBuildFile; fileRef = D92562CB1988929A00ED6B50 /* BRCLocationManager.m */; };
D92562CF198A20D600ED6B50 /* RMMapView+iBurn.m in Sources */ = {isa = PBXBuildFile; fileRef = D92562CE198A20D600ED6B50 /* RMMapView+iBurn.m */; };
D975CAF2198DAB5A00CC8226 /* BRCSecrets.m in Sources */ = {isa = PBXBuildFile; fileRef = D975CAF1198DAB5A00CC8226 /* BRCSecrets.m */; };
D9794B74198BBFB400D7FDA7 /* UIColor+iBurn.m in Sources */ = {isa = PBXBuildFile; fileRef = D9794B73198BBFB400D7FDA7 /* UIColor+iBurn.m */; };
D97D7A31198ADBE400CA7828 /* NSDateFormatter+iBurn.m in Sources */ = {isa = PBXBuildFile; fileRef = D97D7A30198ADBE400CA7828 /* NSDateFormatter+iBurn.m */; };
D97D7A34198AF7BD00CA7828 /* NSDate+iBurn.m in Sources */ = {isa = PBXBuildFile; fileRef = D97D7A33198AF7BD00CA7828 /* NSDate+iBurn.m */; };
Expand Down Expand Up @@ -110,6 +111,8 @@
D92562CB1988929A00ED6B50 /* BRCLocationManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BRCLocationManager.m; sourceTree = "<group>"; };
D92562CD198A20D600ED6B50 /* RMMapView+iBurn.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "RMMapView+iBurn.h"; sourceTree = "<group>"; };
D92562CE198A20D600ED6B50 /* RMMapView+iBurn.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "RMMapView+iBurn.m"; sourceTree = "<group>"; };
D975CAF0198DAB5A00CC8226 /* BRCSecrets.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BRCSecrets.h; sourceTree = "<group>"; };
D975CAF1198DAB5A00CC8226 /* BRCSecrets.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BRCSecrets.m; sourceTree = "<group>"; };
D9794B72198BBFB400D7FDA7 /* UIColor+iBurn.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIColor+iBurn.h"; sourceTree = "<group>"; };
D9794B73198BBFB400D7FDA7 /* UIColor+iBurn.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIColor+iBurn.m"; sourceTree = "<group>"; };
D97D7A29198AD05000CA7828 /* BRCFilteredTableViewController_Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BRCFilteredTableViewController_Private.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -229,6 +232,8 @@
63CE2A5D1987140F00F65B01 /* iBurn */ = {
isa = PBXGroup;
children = (
D975CAF0198DAB5A00CC8226 /* BRCSecrets.h */,
D975CAF1198DAB5A00CC8226 /* BRCSecrets.m */,
D994157B1987278400D245C7 /* Data */,
63CE2A661987140F00F65B01 /* BRCAppDelegate.h */,
63CE2A671987140F00F65B01 /* BRCAppDelegate.m */,
Expand Down Expand Up @@ -506,6 +511,7 @@
63228312198987D0009E472B /* BRCAnnotation.m in Sources */,
D994157F1987399F00D245C7 /* BRCEventTime.m in Sources */,
63CE2A681987140F00F65B01 /* BRCAppDelegate.m in Sources */,
D975CAF2198DAB5A00CC8226 /* BRCSecrets.m in Sources */,
D92562C219886EBF00ED6B50 /* BRCDataObjectTableViewCell.m in Sources */,
D92562CC1988929A00ED6B50 /* BRCLocationManager.m in Sources */,
D92562CF198A20D600ED6B50 /* RMMapView+iBurn.m in Sources */,
Expand Down
3 changes: 2 additions & 1 deletion iBurn/BRCAppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
//

#import <UIKit/UIKit.h>
#import "HockeySDK.h"

@interface BRCAppDelegate : UIResponder <UIApplicationDelegate>
@interface BRCAppDelegate : UIResponder <UIApplicationDelegate, BITHockeyManagerDelegate>

@property (strong, nonatomic) UIWindow *window;

Expand Down
16 changes: 16 additions & 0 deletions iBurn/BRCAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,20 @@
#import "BRCLocationManager.h"
#import "BRCEventObject_Private.h"
#import "NSDateFormatter+iBurn.h"
#import "BRCSecrets.h"

static NSString * const kBRCHasImportedDataKey = @"kBRCHasImportedDataKey";

@implementation BRCAppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[BITHockeyManager sharedHockeyManager] configureWithBetaIdentifier:kBRCHockeyBetaIdentifier
liveIdentifier:kBRCHockeyLiveIdentifier delegate:self];
[[BITHockeyManager sharedHockeyManager].authenticator setIdentificationType:BITAuthenticatorIdentificationTypeDevice];
[[BITHockeyManager sharedHockeyManager] startManager];
[[BITHockeyManager sharedHockeyManager].authenticator authenticateInstallation];

[[BRCDatabaseManager sharedInstance] setupDatabaseWithName:@"iBurn.sqlite"];

[self preloadExistingData];
Expand Down Expand Up @@ -136,4 +143,13 @@ - (void) preloadExistingData {
}];
}

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
if([[BITHockeyManager sharedHockeyManager].authenticator handleOpenURL:url
sourceApplication:sourceApplication
annotation:annotation]) {
return YES;
}
return NO;
}

@end
2 changes: 2 additions & 0 deletions iBurn/BRCSecrets.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
extern NSString * const kBRCHockeyBetaIdentifier;
extern NSString * const kBRCHockeyLiveIdentifier;
15 changes: 12 additions & 3 deletions iBurn/iBurn-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,28 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>com.trailbehind.${PRODUCT_NAME:rfc1034identifier}</string>
<string>com.trailbehind.${PRODUCT_NAME:rfc1034identifier}2010</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>5.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>haf0ca0d3f6e80591495cf24f7f513abdf</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.0</string>
<string>5.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
Expand Down

0 comments on commit 7cdf4c3

Please sign in to comment.