Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit f882fa8

Browse files
author
Benjamin Scholtysik (Reimold)
authored
Merge pull request #495 from bitstadium/release/5.1.1
Release/5.1.1
2 parents d4de7b2 + 6d5a756 commit f882fa8

9 files changed

+25
-19
lines changed

Classes/BITChannel.m

+5-3
Original file line numberDiff line numberDiff line change
@@ -293,14 +293,16 @@ - (void)enqueueTelemetryItem:(BITTelemetryData *)item completionHandler:(nullabl
293293
return;
294294
}
295295

296+
// Should be outside of @synchronized block!
297+
BOOL applicationIsInBackground = ([BITHockeyHelper applicationState] == BITApplicationStateBackground);
298+
296299
// Enqueue item.
297300
@synchronized(self) {
298301
NSDictionary *dict = [strongSelf dictionaryForTelemetryData:item];
299302
[strongSelf appendDictionaryToEventBuffer:dict];
303+
300304
// If the app is running in the background.
301-
BOOL applicationIsInBackground = ([BITHockeyHelper applicationState] == BITApplicationStateBackground);
302-
if (strongSelf.dataItemCount >= strongSelf.maxBatchSize ||
303-
(applicationIsInBackground)) {
305+
if (strongSelf.dataItemCount >= strongSelf.maxBatchSize || applicationIsInBackground) {
304306

305307
// Case 2: Max batch count has been reached or the app is running in the background, so write queue to disk and delete all items.
306308
[strongSelf persistDataItemQueue:&BITTelemetryEventBuffer];

Documentation/Guides/Changelog.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 5.1.1
2+
3+
- [BUGFIX] Fixes a critical bug that would cause apps to freeze when calling `trackEvent` in UIApplicationDelegate callbacks. [#492](https://github.com/bitstadium/HockeySDK-iOS/pull/493)
4+
- [BUGFIX] Fix a critical bug in the crashonly variant of the SDK. [#49](https://github.com/bitstadium/HockeySDK-iOS/pull/494)
5+
16
## 5.1.0
27

38
- [FEATURE] Add Turkish localization thanks to [Ozgur](https://github.com/ozgur).[#478](https://github.com/bitstadium/HockeySDK-iOS/pull/478)

Documentation/Guides/Installation & Setup.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
[![Version](http://cocoapod-badges.herokuapp.com/v/HockeySDK/badge.png)](http://cocoadocs.org/docsets/HockeySDK)
44
[![Slack Status](https://slack.hockeyapp.net/badge.svg)](https://slack.hockeyapp.net)
55

6-
## Version 5.1.0
6+
## Version 5.1.1
77

8-
- [Changelog](http://www.hockeyapp.net/help/sdk/ios/5.1.0/docs/docs/Changelog.html)
8+
- [Changelog](http://www.hockeyapp.net/help/sdk/ios/5.1.1/docs/docs/Changelog.html)
99

1010
**NOTE** If your are using the binary integration of our SDK, make sure that the `HockeySDKResources.bundle` inside the `HockeySDK.embeddedframework`-folder has been added to your application.
1111

@@ -821,7 +821,7 @@ To check if data is send properly to HockeyApp and also see some additional SDK
821821
<a id="documentation"></a>
822822
## 4. Documentation
823823
824-
Our documentation can be found on [HockeyApp](http://hockeyapp.net/help/sdk/ios/5.1.0/index.html).
824+
Our documentation can be found on [HockeyApp](http://hockeyapp.net/help/sdk/ios/5.1.1/index.html).
825825
826826
<a id="troubleshooting"></a>
827827
## 5.Troubleshooting
@@ -835,7 +835,7 @@ Our documentation can be found on [HockeyApp](http://hockeyapp.net/help/sdk/ios/
835835
Make sure none of the following files are copied into your app bundle, check under app target, `Build Phases`, `Copy Bundle Resources` or in the `.app` bundle after building:
836836
837837
- `HockeySDK.framework` (except if you build a dynamic framework version of the SDK yourself!)
838-
- `de.bitstadium.HockeySDK-iOS-5.1.0.docset`
838+
- `de.bitstadium.HockeySDK-iOS-5.1.1.docset`
839839
840840
### Features are not working as expected
841841

Documentation/HockeySDK/.jazzy.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sdk: iphonesimulator
55
theme: ../Themes/apple
66

77
module: HockeySDK
8-
module_version: 5.1.0
8+
module_version: 5.1.1
99
author: Microsoft Corp
1010
author_url: https://www.microsoft.com
1111

HockeySDK-Source.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'HockeySDK-Source'
3-
s.version = '5.1.0'
3+
s.version = '5.1.1'
44

55
s.summary = 'Collect live crash reports, get feedback from your users, distribute your betas, and analyze your test coverage with HockeyApp.'
66
s.description = <<-DESC
@@ -25,7 +25,7 @@ Pod::Spec.new do |s|
2525
s.frameworks = 'CoreGraphics', 'CoreTelephony', 'CoreText', 'MobileCoreServices', 'Photos', 'QuartzCore', 'QuickLook', 'Security', 'SystemConfiguration', 'UIKit'
2626
s.libraries = 'c++', 'z'
2727
s.vendored_frameworks = 'Vendor/CrashReporter.framework'
28-
s.pod_target_xcconfig = {'GCC_PREPROCESSOR_DEFINITIONS' => %{$(inherited) BITHOCKEY_VERSION="@\\"#{s.version}\\"" BITHOCKEY_C_VERSION="\\"#{s.version}\\"" BITHOCKEY_BUILD="@\\"106\\"" BITHOCKEY_C_BUILD="\\"106\\""} }
28+
s.pod_target_xcconfig = {'GCC_PREPROCESSOR_DEFINITIONS' => %{$(inherited) BITHOCKEY_VERSION="@\\"#{s.version}\\"" BITHOCKEY_C_VERSION="\\"#{s.version}\\"" BITHOCKEY_BUILD="@\\"107\\"" BITHOCKEY_C_BUILD="\\"107\\""} }
2929
s.resource_bundle = { 'HockeySDKResources' => ['Resources/*.png', 'Resources/*.lproj'] }
3030
s.preserve_paths = 'Resources', 'Support'
3131
s.private_header_files = 'Classes/*Private.h'

HockeySDK.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'HockeySDK'
3-
s.version = '5.1.0'
3+
s.version = '5.1.1'
44

55
s.summary = 'Collect live crash reports, get feedback from your users, distribute your betas, and analyze your test coverage with HockeyApp.'
66
s.description = <<-DESC

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Version](http://cocoapod-badges.herokuapp.com/v/HockeySDK/badge.png)](http://cocoadocs.org/docsets/HockeySDK)
44
[![Slack Status](https://slack.hockeyapp.net/badge.svg)](https://slack.hockeyapp.net)
55

6-
## Version 5.1.0
6+
## Version 5.1.1
77

88
HockeySDK-iOS implements support for using HockeyApp in your iOS applications.
99

@@ -23,13 +23,13 @@ The following features are currently supported:
2323

2424
## 1. Setup
2525

26-
It is super easy to use HockeyApp in your iOS app. Have a look at our [documentation](https://www.hockeyapp.net/help/sdk/ios/5.1.0/index.html) and onboard your app within minutes.
26+
It is super easy to use HockeyApp in your iOS app. Have a look at our [documentation](https://www.hockeyapp.net/help/sdk/ios/5.1.1/index.html) and onboard your app within minutes.
2727

2828
## 2. Documentation
2929

30-
Please visit [our landing page](https://www.hockeyapp.net/help/sdk/ios/5.1.0/index.html) as a starting point for all of our documentation.
30+
Please visit [our landing page](https://www.hockeyapp.net/help/sdk/ios/5.1.1/index.html) as a starting point for all of our documentation.
3131

32-
Please check out our [changelog](http://www.hockeyapp.net/help/sdk/ios/5.1.0/changelog.html), as well as our [troubleshooting section](https://www.hockeyapp.net/help/sdk/ios/5.1.0/installation--setup.html#troubleshooting).
32+
Please check out our [changelog](http://www.hockeyapp.net/help/sdk/ios/5.1.1/changelog.html), as well as our [troubleshooting section](https://www.hockeyapp.net/help/sdk/ios/5.1.1/installation--setup.html#troubleshooting).
3333

3434
## 3. Contributing
3535

@@ -53,4 +53,4 @@ You must sign a [Contributor License Agreement](https://cla.microsoft.com/) befo
5353

5454
## 4. Contact
5555

56-
If you have further questions or are running into trouble that cannot be resolved by any of the steps [in our troubleshooting section](https://www.hockeyapp.net/help/sdk/ios/5.1.0/installation--setup.html#troubleshooting), feel free to open an issue here, contact us at [[email protected]](mailto:[email protected]) or join our [Slack](https://slack.hockeyapp.net).
56+
If you have further questions or are running into trouble that cannot be resolved by any of the steps [in our troubleshooting section](https://www.hockeyapp.net/help/sdk/ios/5.1.1/installation--setup.html#troubleshooting), feel free to open an issue here, contact us at [[email protected]](mailto:[email protected]) or join our [Slack](https://slack.hockeyapp.net).

Support/HockeySDKBase.xcconfig

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
BUILD_NUMBER = 106
2-
VERSION_STRING = 5.1.0
1+
BUILD_NUMBER = 107
2+
VERSION_STRING = 5.1.1
33
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) $(HOCKEYSDK_GCC_PREPROCESSOR_DEFINITIONS) HOCKEYSDK_CONFIGURATION_$(CONFIGURATION) BITHOCKEY_VERSION="@\""$(VERSION_STRING)"\"" BITHOCKEY_BUILD="@\""$(BUILD_NUMBER)"\"" BITHOCKEY_C_VERSION="\""$(VERSION_STRING)"\"" BITHOCKEY_C_BUILD="\""$(BUILD_NUMBER)"\""
44
BIT_ARM_ARCHS = armv7 armv7s arm64
55
BIT_SIM_ARCHS = x86_64 i386

Support/HockeySDKDistribution.sh

-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ cp -f "${SRCROOT}/module_crashonly.modulemap" "${INSTALL_DIR}/Modules/module.mod
151151

152152
# Copies the headers without the resources files to the final product folder.
153153
cp -R "${SRCROOT}/${DEVICE_CRASH_ONLY_DIR}"/include/HockeySDK/BITCrash*.h "${INSTALL_DIR}/Headers/"
154-
cp -R "${SRCROOT}/${DEVICE_CRASH_ONLY_DIR}/include/HockeySDK/BITMetricsManager.h" "${INSTALL_DIR}/Headers/"
155154
cp -R "${SRCROOT}/${DEVICE_CRASH_ONLY_DIR}/include/HockeySDK/BITHockeyAttachment.h" "${INSTALL_DIR}/Headers/"
156155
cp -R "${SRCROOT}/${DEVICE_CRASH_ONLY_DIR}/include/HockeySDK/BITHockeyBaseManager.h" "${INSTALL_DIR}/Headers/"
157156
cp -R "${SRCROOT}/${DEVICE_CRASH_ONLY_DIR}/include/HockeySDK/BITHockeyManager.h" "${INSTALL_DIR}/Headers/"

0 commit comments

Comments
 (0)