This repository has been archived by the owner on Aug 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4.1.0
- Loading branch information
Showing
5 changed files
with
105 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#include "HockeySDK.xcconfig" | ||
|
||
BUILD_NUMBER = 56 | ||
VERSION_STRING = 4.1.0-beta.4 | ||
BUILD_NUMBER = 57 | ||
VERSION_STRING = 4.1.0 | ||
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) BITHOCKEY_VERSION="@\""$(VERSION_STRING)"\"" BITHOCKEY_BUILD="@\""$(BUILD_NUMBER)"\"" BITHOCKEY_C_VERSION="\""$(VERSION_STRING)"\"" BITHOCKEY_C_BUILD="\""$(BUILD_NUMBER)"\"" $(XCODEBUILD_GCC_PREPROCESSOR_DEFINITIONS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
## Version 4.1.0-beta.4 | ||
## Version 4.1.0 | ||
|
||
- [Changelog](http://www.hockeyapp.net/help/sdk/mac/4.1.0-beta.4/docs/docs/Changelog.html) | ||
- [Changelog](http://www.hockeyapp.net/help/sdk/mac/4.1.0/docs/docs/Changelog.html) | ||
|
||
**NOTE:** With the release of HockeySDK 4.0.0-alpha.1 a bug was introduced which lead to the exclusion of the Application Support folder from iCloud and iTunes backups. | ||
|
||
If you have been using one of the affected versions (4.0.0-alpha.2, Version 4.0.0-beta.1, 4.0.0, 4.1.0-alpha.1, 4.1.0-alpha.2, or Version 4.1.0-beta.1), please make sure to update to at least version 4.0.1 or 4.1.0-beta.2 of our SDK as soon as you can. | ||
|
||
|
||
## Introduction | ||
|
||
This document contains the following sections: | ||
|
@@ -76,7 +77,7 @@ From our experience, 3rd-party libraries usually reside inside a subdirectory (l | |
2. Add the following line at the top of the file below your own `import` statements: | ||
|
||
```objectivec | ||
@import HockeySDK | ||
@import HockeySDK; | ||
``` | ||
|
||
3. Search for the method `applicationDidFinishLaunching:` | ||
|
@@ -235,38 +236,38 @@ The `BITCrashManagerDelegate` protocol (which is automatically included in `BITH | |
|
||
Make sure to implement the protocol | ||
|
||
```objectivec | ||
@interface YourAppDelegate () <BITHockeyManagerDelegate> {} | ||
|
||
@end | ||
``` | ||
```objectivec | ||
@interface YourAppDelegate () <BITHockeyManagerDelegate> {} | ||
@end | ||
``` | ||
|
||
and set the delegate: | ||
|
||
```objectivec | ||
[[BITHockeyManager sharedHockeyManager] configureWithIdentifier:@"APP_IDENTIFIER"]; | ||
[[BITHockeyManager sharedHockeyManager] setDelegate: self]; | ||
[[BITHockeyManager sharedHockeyManager] startManager]; | ||
``` | ||
|
||
```objectivec | ||
[[BITHockeyManager sharedHockeyManager] configureWithIdentifier:@"APP_IDENTIFIER"]; | ||
|
||
[[BITHockeyManager sharedHockeyManager] setDelegate: self]; | ||
|
||
[[BITHockeyManager sharedHockeyManager] startManager]; | ||
``` | ||
<a name="user-metrics"></a> | ||
### 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. | ||
- **Custom Events**: You can now track Custom Events in your app, understand user actions and see the aggregates on the HockeyApp portal. | ||
|
||
Just in case you want to opt-out of the automatic collection of anonymous users and sessions statistics, there is a way to turn this functionality off at any time: | ||
|
||
```objectivec | ||
[BITHockeyManager sharedHockeyManager].disableMetricsManager = YES; | ||
``` | ||
|
||
#### 3.7.1 Custom Events | ||
#### 3.3.1 Custom Events | ||
|
||
By tracking custom events, you can now get insight into how your customers use your app, understand their behavior and answer important business or user experience questions while improving your app. | ||
|
||
|
@@ -295,6 +296,38 @@ metricsManager.trackEventWithName(eventName) | |
- There is currently a limit of 300 unique event names per app per week. | ||
- There is _no_ limit on the number of times an event can happen. | ||
|
||
#### 3.3.2 Attaching custom properties and measurements to a custom event | ||
|
||
It's possible to attach porperties and/or measurements to a custom event. | ||
|
||
- Properties have to be a string. | ||
- Measurements have to be of a numeric type. | ||
|
||
**Objective-C** | ||
|
||
```objectivec | ||
BITMetricsManager *metricsManager = [BITHockeyManager sharedHockeyManager].metricsManager; | ||
|
||
NSDictionary *myProperties = @{@"Property 1" : @"Something", | ||
@"Property 2" : @"Other thing", | ||
@"Property 3" : @"Totally different thing"}; | ||
NSDictionary *myMeasurements = @{@"Measurement 1" : @1, | ||
@"Measurement 2" : @2.34, | ||
@"Measurement 3" : @2000000}; | ||
|
||
[metricsManager trackEventWithName:eventName properties:myProperties measurements:myMeasurements] | ||
``` | ||
|
||
**Swift** | ||
|
||
```swift | ||
let myProperties = ["Property 1": "Something", "Property 2": "Other thing", "Property 3" : "Totally different thing."] | ||
let myMeasurements = ["Measurement 1": 1, "Measurement 2": 2.3, "Measurement 3" : 30000] | ||
|
||
let metricsManager = BITHockeyManager.sharedHockeyManager().metricsManager | ||
metricsManager.trackEventWithName(eventName, properties: myProperties, myMeasurements: measurements) | ||
``` | ||
|
||
<a name="feedback"></a> | ||
### 3.4 Feedback | ||
|
||
|
@@ -371,7 +404,7 @@ To check if data is send properly to HockeyApp and also see some additional SDK | |
<a id="documentation"></a> | ||
## 4. Documentation | ||
|
||
Our documentation can be found on [HockeyApp](http://hockeyapp.net/help/sdk/mac/4.1.0-beta.4/index.html). | ||
Our documentation can be found on [HockeyApp](http://hockeyapp.net/help/sdk/mac/4.1.0/index.html). | ||
|
||
<a id="troubleshooting"></a> | ||
## 5.Troubleshooting | ||
|
@@ -402,12 +435,17 @@ We're looking forward to your contributions via pull requests. | |
* [AppleDoc](https://github.com/tomaz/appledoc) | ||
* [Cocoapods](https://cocoapods.org/) | ||
|
||
<a id="codeofconduct"></a> | ||
## 6.1 Code of Conduct | ||
|
||
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments. | ||
|
||
<a id="contributorlicense"></a> | ||
## 7. Contributor License | ||
## 6.2 Contributor License | ||
|
||
You must sign a [Contributor License Agreement](https://cla.microsoft.com/) before submitting your pull request. To complete the Contributor License Agreement (CLA), you will need to submit a request via the [form](https://cla.microsoft.com/) and then electronically sign the CLA when you receive the email containing the link to the document. You need to sign the CLA only once to cover submission to any Microsoft OSS project. | ||
|
||
<a id="contact"></a> | ||
## 8. Contact | ||
## 7. Contact | ||
|
||
If you have further questions or are running into trouble that cannot be resolved by any of the steps here, feel free to open a Github issue here or contact us at [support@hockeyapp.net](mailto:support@hockeyapp.net) |