Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Merge tag '4.0.2' into develop
Browse files Browse the repository at this point in the history
4.0.2

# Conflicts:
#	Classes/Telemetry/BITPersistence.m
#	HockeySDK-Mac.podspec
#	README.md
#	Support/buildnumber.xcconfig
#	docs/Changelog-template.md
#	docs/Guide-Installation-Setup-template.md
  • Loading branch information
lumaxis committed May 18, 2016
2 parents 939f02a + 678a513 commit 1ba7eb3
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 7 deletions.
4 changes: 4 additions & 0 deletions Classes/Helper/BITHockeyHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ NSComparisonResult bit_versionCompare(NSString *stringA, NSString *stringB) {
#pragma mark Exclude from backup fix

void bit_fixBackupAttributeForURL(NSURL *directoryURL) {
if (&NSURLIsExcludedFromBackupKey == NULL) {
BITHockeyLogWarning(@"WARNING: &NSURLIsExcludedBackupKey is NULL, returning");
return;
}

BOOL shouldExcludeAppSupportDirFromBackup = [[NSUserDefaults standardUserDefaults] boolForKey:kBITExcludeApplicationSupportFromBackup];
if (shouldExcludeAppSupportDirFromBackup) {
Expand Down
17 changes: 10 additions & 7 deletions Classes/Telemetry/BITPersistence.m
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,16 @@ - (void)createDirectoryStructureIfNeeded {
return;
}

//Exclude HockeySDK folder from backup
if (![appURL setResourceValue:@YES
forKey:NSURLIsExcludedFromBackupKey
error:&error]) {
BITHockeyLogError(@"Error excluding %@ from backup %@", appURL.lastPathComponent, error.localizedDescription);
} else {
BITHockeyLogDebug(@"Exclude %@ from backup", appURL);
// Make sure NSURLIsExcludedFromBackupKey is available
if (&NSURLIsExcludedFromBackupKey != NULL) {
//Exclude HockeySDK folder from backup
if (![appURL setResourceValue:@YES
forKey:NSURLIsExcludedFromBackupKey
error:&error]) {
BITHockeyLogError(@"ERROR: Error excluding %@ from backup %@", appURL.lastPathComponent, error.localizedDescription);
} else {
BITHockeyLogDebug(@"INFO: Exclude %@ from backup", appURL);
}
}

_directorySetupComplete = YES;
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ and set the delegate:
### 3.3 User Metrics

HockeyApp automatically provides you with nice, intelligible, and informative metrics about how your app is used and by whom.

- **Sessions**: A new session is tracked by the SDK whenever the containing app is restarted (this refers to a 'cold start', i.e. when the app has not already been in memory prior to being launched) or whenever it becomes active again after having been in the background for 20 seconds or more.
- **Users**: The SDK anonymously tracks the users of your app by creating a random UUID that is then securely stored in the iOS keychain. Because this anonymous ID is stored in the keychain it persists across reinstallations.
- **Custom Events**: If you are part of [Preseason](https://www.hockeyapp.net/preseason/), you can now track Custom Events in your app, understand user actions and see the aggregates on the HockeyApp portal.
Expand Down
4 changes: 4 additions & 0 deletions docs/Changelog-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ NSUserDefaults.standardUserDefaults().setBool(true, forKey: "BITExcludeApplicati
- [IMPROVEMENT] Reuse `NSURLSession` object
- [IMPROVEMENT] Under the hood improvements and cleanup

## Version 4.0.2

- [BUGFIX] Restore compatibility with OS X 10.7 by not accessing `NSURLIsExcludedFromBackupKey` if not available

## Version 4.0.1

- [BUGFIX] Fixes an issue where the whole app's Application Support directory (sandboxed apps) / user’s Application Support directory (non-sandboxed apps) was accidentally excluded from backups.
Expand Down
1 change: 1 addition & 0 deletions docs/Guide-Installation-Setup-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ and set the delegate:
### 3.3 User Metrics

HockeyApp automatically provides you with nice, intelligible, and informative metrics about how your app is used and by whom.

- **Sessions**: A new session is tracked by the SDK whenever the containing app is restarted (this refers to a 'cold start', i.e. when the app has not already been in memory prior to being launched) or whenever it becomes active again after having been in the background for 20 seconds or more.
- **Users**: The SDK anonymously tracks the users of your app by creating a random UUID that is then securely stored in the iOS keychain. Because this anonymous ID is stored in the keychain it persists across reinstallations.
- **Custom Events**: If you are part of [Preseason](https://www.hockeyapp.net/preseason/), you can now track Custom Events in your app, understand user actions and see the aggregates on the HockeyApp portal.
Expand Down

0 comments on commit 1ba7eb3

Please sign in to comment.