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

Commit

Permalink
Merge pull request #91 from bitstadium/release/4.1.2
Browse files Browse the repository at this point in the history
Release/4.1.2
  • Loading branch information
Benjamin Scholtysik (Reimold) authored Dec 6, 2016
2 parents ae7e52c + 5cf370c commit 569bc8c
Show file tree
Hide file tree
Showing 13 changed files with 113 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: objective-c
osx_image: xcode7.2
osx_image: xcode8.1

before_install:
- xcrun simctl list
Expand Down
4 changes: 3 additions & 1 deletion Classes/CrashReporting/BITCrashReportTextFormatter.m
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ + (NSString *)stringValueForCrashReport:(BITPLCrashReport *)report crashReporter
if (codeType != nil)
break;
}

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
/* If we were unable to determine the code type, fall back on the legacy architecture value. */
if (codeType == nil) {
switch (report.systemInfo.architecture) {
Expand All @@ -298,6 +299,7 @@ + (NSString *)stringValueForCrashReport:(BITPLCrashReport *)report crashReporter
break;
}
}
#pragma GCC diagnostic pop
}

{
Expand Down
13 changes: 7 additions & 6 deletions Classes/Telemetry/BITChannel.m
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,14 @@ - (void)startTimer {
__weak typeof(self) weakSelf = self;
dispatch_source_set_event_handler(self.timerSource, ^{
typeof(self) strongSelf = weakSelf;

if (strongSelf->_dataItemCount > 0) {
[strongSelf persistDataItemQueue];
} else {
strongSelf.channelBlocked = NO;
if (strongSelf) {
if (strongSelf->_dataItemCount > 0) {
[strongSelf persistDataItemQueue];
} else {
strongSelf.channelBlocked = NO;
}
[strongSelf invalidateTimer];
}
[strongSelf invalidateTimer];
});
dispatch_resume(self.timerSource);
}
Expand Down
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.1'
s.version = '4.1.2'

s.summary = 'Collect live crash reports, get feedback from your users, distribute your betas, and get usage data.'
s.description = <<-DESC
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[![Build Status](https://travis-ci.org/bitstadium/HockeySDK-iOS.svg?branch=develop)](https://travis-ci.org/bitstadium/HockeySDK-Mac)
[![Version](https://img.shields.io/cocoapods/v/HockeySDK-Mac.svg)](http://cocoadocs.org/docsets/HockeySDK-Mac)

## Version 4.1.1
## Version 4.1.2

- [Changelog](http://www.hockeyapp.net/help/sdk/mac/4.1.1/docs/docs/Changelog.html)
- [Changelog](http://www.hockeyapp.net/help/sdk/mac/4.1.2/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.
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 a newer version of our SDK as soon as you can.

## Introduction

Expand Down Expand Up @@ -418,7 +419,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.1/index.html).
Our documentation can be found on [HockeyApp](http://hockeyapp.net/help/sdk/mac/4.1.2/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 = 58
VERSION_STRING = 4.1.1
BUILD_NUMBER = 59
VERSION_STRING = 4.1.2
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)
8 changes: 7 additions & 1 deletion Vendor/CrashReporter/Headers/CrashReporter.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,13 @@ typedef enum {
PLCrashReporterErrorCrashReportInvalid = 2,

/** An attempt to use a resource which was in use at the time in a manner which would have conflicted with the request. */
PLCrashReporterErrorResourceBusy = 3
PLCrashReporterErrorResourceBusy = 3,

/** The requested resource could not be found. */
PLCRashReporterErrorNotFound = 4,

/** Allocation failed. */
PLCRashReporterErrorInsufficientMemory = 4
} PLCrashReporterError;


Expand Down
50 changes: 50 additions & 0 deletions Vendor/CrashReporter/Headers/PLCrashMacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@
# define PLCR_CPP_BEGIN_NS namespace plcrash {
# define PLCR_CPP_END_NS }
# endif
#
/** @internal Define the plcrash::async namespace, automatically inserting an inline namespace containing the configured PLCRASHREPORTER_PREFIX, if any. */
# define PLCR_CPP_BEGIN_ASYNC_NS PLCR_CPP_BEGIN_NS namespace async {

/** @internal Close the definition of the `plcrash::async` namespace (and the PLCRASHREPORTER_PREFIX inline namespace, if any). */
# define PLCR_CPP_END_ASYNC_NS PLCR_CPP_END_NS }
#endif

#ifdef __clang__
Expand All @@ -60,12 +66,56 @@
# define PLCR_PRAGMA_CLANG(_p)
#endif

#ifdef __clang__
# define PLCR_DEPRECATED __attribute__((deprecated))
#else
# define PLCR_DEPRECATED
#endif

#if defined(__clang__) || defined(__GNUC__)
# define PLCR_UNUSED __attribute__((unused))
#else
# define PLCR_UNUSED
#endif

#ifdef PLCR_PRIVATE
/**
* Marks a definition as deprecated only for for external clients, allowing
* uses of it internal fo the framework.
*/
#define PLCR_EXTERNAL_DEPRECATED

/**
* @internal
* A macro to put above a definition marked PLCR_EXTERNAL_DEPRECATED that will
* silence warnings about there being a deprecation documentation marker but the
* definition not being marked deprecated.
*/
# define PLCR_EXTERNAL_DEPRECATED_NOWARN_PUSH() \
PLCR_PRAGMA_CLANG("clang diagnostic push"); \
PLCR_PRAGMA_CLANG("clang diagnostic ignored \"-Wdocumentation-deprecated-sync\"")

/**
* @internal
* A macro to put below a definition marked PLCR_EXTERNAL_DEPRECATED that will
* silence warnings about there being a deprecation documentation marker but the
* definition not being marked deprecated.
*/
# define PLCR_EXTERNAL_DEPRECATED_NOWARN_POP() PLCR_PRAGMA_CLANG("clang diagnostic pop")
#else
# define PLCR_EXTERNAL_DEPRECATED PLCR_DEPRECATED
# define PLCR_EXTERNAL_DEPRECATED_NOWARN_PUSH()
# define PLCR_EXTERNAL_DEPRECATED_NOWARN_PUSH()
#endif /* PLCR_PRIVATE */

#ifdef PLCR_PRIVATE
# if defined(__clang__) && __has_feature(cxx_attributes) && __has_warning("-Wimplicit-fallthrough")
# define PLCR_FALLTHROUGH [[clang::fallthrough]]
# else
# define PLCR_FALLTHROUGH do {} while (0)
# endif
#endif

#ifdef PLCR_PRIVATE
/**
* @internal
Expand Down
4 changes: 2 additions & 2 deletions Vendor/CrashReporter/Headers/PLCrashNamespace.h
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@
#define plcrash_nasync_image_list_free PLNS(plcrash_nasync_image_list_free)
#define plcrash_nasync_image_list_init PLNS(plcrash_nasync_image_list_init)
#define plcrash_nasync_image_list_remove PLNS(plcrash_nasync_image_list_remove)
#define plcrash_nasync_macho_free PLNS(plcrash_nasync_macho_free)
#define plcrash_nasync_macho_init PLNS(plcrash_nasync_macho_init)
#define plcrash_async_macho_free PLNS(plcrash_async_macho_free)
#define plcrash_async_macho_init PLNS(plcrash_async_macho_init)
#define plcrash_populate_error PLNS(plcrash_populate_error)
#define plcrash_populate_mach_error PLNS(plcrash_populate_mach_error)
#define plcrash_populate_posix_error PLNS(plcrash_populate_posix_error)
Expand Down
28 changes: 23 additions & 5 deletions Vendor/CrashReporter/Headers/PLCrashReportSystemInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
*/

#import <Foundation/Foundation.h>
#include "PLCrashMacros.h"
@class PLCrashReportProcessorInfo;

/**
* @ingroup constants
Expand Down Expand Up @@ -55,7 +57,7 @@ typedef enum {
*
* Indicates the architecture under which a Crash Log was generated.
*
* @deprecated The architecture value has been deprecated in v1.1 and later crash reports. All new reports
* @note The architecture value has been deprecated in v1.1 and later crash reports. All new reports
* will make use of the new PLCrashReportProcessorInfo CPU type encodings.
*
* @internal
Expand All @@ -77,7 +79,7 @@ typedef enum {
* values.
* @sa PLCrashReportArchitectureARMv6
*/
PLCrashReportArchitectureARM = PLCrashReportArchitectureARMv6,
PLCrashReportArchitectureARM PLCR_DEPRECATED = PLCrashReportArchitectureARMv6,

/** PPC */
PLCrashReportArchitecturePPC = 3,
Expand All @@ -94,7 +96,9 @@ typedef enum {


extern PLCrashReportOperatingSystem PLCrashReportHostOperatingSystem;
extern PLCrashReportArchitecture PLCrashReportHostArchitecture;
PLCR_EXTERNAL_DEPRECATED_NOWARN_PUSH();
extern PLCrashReportArchitecture PLCrashReportHostArchitecture PLCR_EXTERNAL_DEPRECATED;
PLCR_EXTERNAL_DEPRECATED_NOWARN_PUSH();

@interface PLCrashReportSystemInfo : NSObject {
@private
Expand All @@ -112,17 +116,27 @@ extern PLCrashReportArchitecture PLCrashReportHostArchitecture;

/** Date crash report was generated. May be nil if the date is unknown. */
NSDate *_timestamp;

/** Processor information. */
PLCrashReportProcessorInfo *_processorInfo;
}

- (id) initWithOperatingSystem: (PLCrashReportOperatingSystem) operatingSystem
operatingSystemVersion: (NSString *) operatingSystemVersion
architecture: (PLCrashReportArchitecture) architecture
timestamp: (NSDate *) timestamp;
timestamp: (NSDate *) timestamp PLCR_DEPRECATED;

- (id) initWithOperatingSystem: (PLCrashReportOperatingSystem) operatingSystem
operatingSystemVersion: (NSString *) operatingSystemVersion
operatingSystemBuild: (NSString *) operatingSystemBuild
architecture: (PLCrashReportArchitecture) architecture
timestamp: (NSDate *) timestamp PLCR_DEPRECATED;

- (id) initWithOperatingSystem: (PLCrashReportOperatingSystem) operatingSystem
operatingSystemVersion: (NSString *) operatingSystemVersion
operatingSystemBuild: (NSString *) operatingSystemBuild
architecture: (PLCrashReportArchitecture) architecture
processorInfo: (PLCrashReportProcessorInfo *) processorInfo
timestamp: (NSDate *) timestamp;

/** The operating system. */
Expand All @@ -137,9 +151,13 @@ extern PLCrashReportArchitecture PLCrashReportHostArchitecture;
/** Architecture. @deprecated The architecture value has been deprecated in v1.1 and later crash reports. All new reports
* include the CPU type as part of the crash report's machine info structure, using the PLCrashReportProcessorInfo
* extensible encoding. */
@property(nonatomic, readonly) PLCrashReportArchitecture architecture;
@property(nonatomic, readonly) PLCrashReportArchitecture architecture PLCR_DEPRECATED;

/** Date and time that the crash report was generated. This may be unavailable, and this property will be nil. */
@property(nonatomic, readonly) NSDate *timestamp;

/** The processor type. For v1.2 reports and later, this is an alias to the machine info's processorInfo.
* For earlier reports, this will be synthesized from the deprecated architecture property. */
@property(nonatomic, readonly) PLCrashReportProcessorInfo *processorInfo;

@end
11 changes: 7 additions & 4 deletions Vendor/CrashReporter/Headers/PLCrashReporter.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#import <mach/mach.h>

#import "PLCrashReporterConfig.h"
#import "PLCrashMacros.h"

@class PLCrashMachExceptionServer;
@class PLCrashMachExceptionPortSet;
Expand All @@ -44,7 +45,7 @@
* @param uap The crash's threads context.
* @param context The API client's supplied context value.
*
* @sa @ref async_safety
* @sa The @ref async_safety documentation.
* @sa PLCrashReporter::setPostCrashCallbacks:
*/
typedef void (*PLCrashReporterPostCrashSignalCallback)(siginfo_t *info, ucontext_t *uap, void *context);
Expand All @@ -55,7 +56,7 @@ typedef void (*PLCrashReporterPostCrashSignalCallback)(siginfo_t *info, ucontext
* This structure contains callbacks supported by PLCrashReporter to allow the host application to perform
* additional tasks prior to program termination after a crash has occured.
*
* @sa @ref async_safety
* @sa The @ref async_safety documentation.
*/
typedef struct PLCrashReporterCallbacks {
/** The version number of this structure. If not one of the defined version numbers for this type, the behavior
Expand Down Expand Up @@ -87,7 +88,7 @@ typedef struct PLCrashReporterCallbacks {

/** YES if the crash reporter has been enabled */
BOOL _enabled;

#if PLCRASH_FEATURE_MACH_EXCEPTIONS
/** The backing Mach exception server, if any. Nil if the reporter has not been enabled, or if
* the configured signal handler type is not PLCrashReporterSignalHandlerTypeMach. */
Expand All @@ -110,7 +111,7 @@ typedef struct PLCrashReporterCallbacks {
NSString *_crashReportDirectory;
}

+ (PLCrashReporter *) sharedReporter;
+ (PLCrashReporter *) sharedReporter PLCR_DEPRECATED;

- (instancetype) initWithConfiguration: (PLCrashReporterConfig *) config;

Expand All @@ -121,9 +122,11 @@ typedef struct PLCrashReporterCallbacks {

- (NSData *) generateLiveReportWithThread: (thread_t) thread;
- (NSData *) generateLiveReportWithThread: (thread_t) thread error: (NSError **) outError;
- (NSData *) generateLiveReportWithThread: (thread_t) thread exception: (NSException *) exception error: (NSError **) outError;

- (NSData *) generateLiveReport;
- (NSData *) generateLiveReportAndReturnError: (NSError **) outError;
- (NSData *) generateLiveReportWithException: (NSException *) exception error: (NSError **) outError;

- (BOOL) purgePendingCrashReport;
- (BOOL) purgePendingCrashReportAndReturnError: (NSError **) outError;
Expand Down
Binary file modified Vendor/CrashReporter/libCrashReporter-MacOSX-Static.a
Binary file not shown.
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.2

- [IMPROVEMENT] Update to latest PLCrashReporter build (PLCrashReporter 1.3).
- [BUGFIX] Add check for `nil` in BITChannel.

## 4.1.1

- [IMPROVEMENT] Add process id to BITCrashDetails.
Expand Down

0 comments on commit 569bc8c

Please sign in to comment.