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.1.0' into develop
Browse files Browse the repository at this point in the history
4.1.0
  • Loading branch information
chrwend committed Sep 2, 2016
2 parents 90259dc + c66340a commit f4dd048
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 30 deletions.
2 changes: 1 addition & 1 deletion HockeySDK-Mac.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'HockeySDK-Mac'
s.version = '4.1.0-beta.4'
s.version = '4.1.0'

s.summary = 'Collect live crash reports, get feedback from your users, distribute your betas, and get usage data.'
s.description = <<-DESC
Expand Down
44 changes: 38 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[![Build Status](https://travis-ci.org/bitstadium/HockeySDK-iOS.svg?branch=develop)](https://travis-ci.org/bitstadium/HockeySDK-Mac)

## 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.

Expand All @@ -16,7 +16,7 @@ The following feature is currently supported:

1. **Collect crash reports:** If you app crashes, a crash log with the same format as from the Apple Crash Reporter is written to the device's storage. If the user starts the app again, he is asked to submit the crash report to HockeyApp. This works for both beta and live apps, i.e. those submitted to the App Store!

2. **User Metrics:** Understand user behavior to improve your app. Track usage through daily and monthly active users, monitor crash impacted users, as well as customer engagement through session count. If you are part of [Preseason](hockeyapp.net/preseason), you can now track Custom Events in your app, understand user actions and see the aggregates on the HockeyApp portal.
2. **User Metrics:** Understand user behavior to improve your app. Track usage through daily and monthly active users, monitor crash impacted users, as well as customer engagement through session count. You can now track Custom Events in your app, understand user actions and see the aggregates on the HockeyApp portal.

3. **Feedback:** Collect feedback from your users from within your app and communicate directly with them using the HockeyApp backend.

Expand Down Expand Up @@ -273,7 +273,7 @@ HockeyApp automatically provides you with nice, intelligible, and informative me

- **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:

Expand Down Expand Up @@ -309,7 +309,39 @@ metricsManager.trackEventWithName(eventName)
- Accepted characters for tracking events are: [a-zA-Z0-9_. -]. If you use other than the accepted characters, your events will not show up in the HockeyApp web portal.
- 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

Expand Down Expand Up @@ -386,7 +418,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
Expand Down
4 changes: 2 additions & 2 deletions Support/buildnumber.xcconfig
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)
5 changes: 5 additions & 0 deletions docs/Changelog-template.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 4.1.0

[NEW] Add ability to track custom events
[NEW] Additional API to track an event with properties and measurements.

## 4.1.0-beta.4

Add a bugfix from version 4.0.3:
Expand Down
80 changes: 59 additions & 21 deletions docs/Guide-Installation-Setup-template.md
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:
Expand Down Expand Up @@ -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:`
Expand Down Expand Up @@ -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.

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 [opencode@microsoft.com](mailto:opencode@microsoft.com) 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)

0 comments on commit f4dd048

Please sign in to comment.