Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

Commit

Permalink
v2.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
fractalwrench committed Nov 23, 2017
1 parent 89ba735 commit c785203
Show file tree
Hide file tree
Showing 9 changed files with 244 additions and 25 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

## 2.7.3 (2017-11-23)

* (iOS) Use `BSG_KSCrashReportWriter` header rather than `KSCrashReportWriter` for custom JSON serialization
* (Android) Enqueue activity lifecycle events when initialisation not complete to prevent NPE

## 2.7.2 (2017-11-21)

* (iOS) Remove misleading information (address, mach, signal) from non-fatal error reports
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Bugsnag exception reporter for React Native
[![Documentation](https://img.shields.io/badge/documentation-2.7.2-blue.svg)](http://docs.bugsnag.com/platforms/react-native/)
[![Documentation](https://img.shields.io/badge/documentation-2.7.3-blue.svg)](http://docs.bugsnag.com/platforms/react-native/)

Automatic [React Native error reporting](https://www.bugsnag.com/platforms/react-native-error-reporting/) with Bugsnag helps you detect both native OS and JavaScript errors in your React Native apps.

Expand Down
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ android {
minSdkVersion 16
targetSdkVersion 23
versionCode 4
versionName '2.7.2'
versionName '2.7.3'
}
}

dependencies {
compile 'com.bugsnag:bugsnag-android:4.1.3'
compile 'com.bugsnag:bugsnag-android:4.1.4'
compile 'com.facebook.react:react-native:0.20.1'
}
222 changes: 222 additions & 0 deletions cocoa/vendor/bugsnag-cocoa/Source/BSG_KSCrashReportWriter.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
//
// BSG_KSCrashReportWriter.h
//
// Created by Karl Stenerud on 2012-01-28.
//
// Copyright (c) 2012 Karl Stenerud. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall remain in place
// in this source code.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//

/* Pointers to functions for writing to a crash report. All JSON types are
* supported.
*/

#ifndef HDR_BSG_KSCrashReportWriter_h
#define HDR_BSG_KSCrashReportWriter_h

#ifdef __cplusplus
extern "C" {
#endif

#include <stdbool.h>
#include <sys/types.h>

/**
* Encapsulates report writing functionality.
*/
typedef struct BSG_KSCrashReportWriter {
/** Add a boolean element to the report.
*
* @param writer This writer.
*
* @param name The name to give this element.
*
* @param value The value to add.
*/
void (*addBooleanElement)(const struct BSG_KSCrashReportWriter *writer,
const char *name, bool value);

/** Add a floating point element to the report.
*
* @param writer This writer.
*
* @param name The name to give this element.
*
* @param value The value to add.
*/
void (*addFloatingPointElement)(
const struct BSG_KSCrashReportWriter *writer, const char *name,
double value);

/** Add an integer element to the report.
*
* @param writer This writer.
*
* @param name The name to give this element.
*
* @param value The value to add.
*/
void (*addIntegerElement)(const struct BSG_KSCrashReportWriter *writer,
const char *name, long long value);

/** Add an unsigned integer element to the report.
*
* @param writer This writer.
*
* @param name The name to give this element.
*
* @param value The value to add.
*/
void (*addUIntegerElement)(const struct BSG_KSCrashReportWriter *writer,
const char *name, unsigned long long value);

/** Add a string element to the report.
*
* @param writer This writer.
*
* @param name The name to give this element.
*
* @param value The value to add.
*/
void (*addStringElement)(const struct BSG_KSCrashReportWriter *writer,
const char *name, const char *value);

/** Add a string element from a text file to the report.
*
* @param writer This writer.
*
* @param name The name to give this element.
*
* @param filePath The path to the file containing the value to add.
*/
void (*addTextFileElement)(const struct BSG_KSCrashReportWriter *writer,
const char *name, const char *filePath);

/** Add a JSON element from a text file to the report.
*
* @param writer This writer.
*
* @param name The name to give this element.
*
* @param filePath The path to the file containing the value to add.
*/
void (*addJSONFileElement)(const struct BSG_KSCrashReportWriter *writer,
const char *name, const char *filePath);

/** Add a hex encoded data element to the report.
*
* @param writer This writer.
*
* @param name The name to give this element.
*
* @param value A pointer to the binary data.
*
* @paramn length The length of the data.
*/
void (*addDataElement)(const struct BSG_KSCrashReportWriter *writer,
const char *name, const char *value,
const size_t length);

/** Begin writing a hex encoded data element to the report.
*
* @param writer This writer.
*
* @param name The name to give this element.
*/
void (*beginDataElement)(const struct BSG_KSCrashReportWriter *writer,
const char *name);

/** Append hex encoded data to the current data element in the report.
*
* @param writer This writer.
*
* @param value A pointer to the binary data.
*
* @paramn length The length of the data.
*/
void (*appendDataElement)(const struct BSG_KSCrashReportWriter *writer,
const char *value, const size_t length);

/** Complete writing a hex encoded data element to the report.
*
* @param writer This writer.
*/
void (*endDataElement)(const struct BSG_KSCrashReportWriter *writer);

/** Add a UUID element to the report.
*
* @param writer This writer.
*
* @param name The name to give this element.
*
* @param value A pointer to the binary UUID data.
*/
void (*addUUIDElement)(const struct BSG_KSCrashReportWriter *writer,
const char *name, const unsigned char *value);

/** Add a preformatted JSON element to the report.
*
* @param writer This writer.
*
* @param name The name to give this element.
*
* @param value A pointer to the JSON data.
*/
void (*addJSONElement)(const struct BSG_KSCrashReportWriter *writer,
const char *name, const char *jsonElement);

/** Begin a new object container.
*
* @param writer This writer.
*
* @param name The name to give this element.
*/
void (*beginObject)(const struct BSG_KSCrashReportWriter *writer,
const char *name);

/** Begin a new array container.
*
* @param writer This writer.
*
* @param name The name to give this element.
*/
void (*beginArray)(const struct BSG_KSCrashReportWriter *writer,
const char *name);

/** Leave the current container, returning to the next higher level
* container.
*
* @param writer This writer.
*/
void (*endContainer)(const struct BSG_KSCrashReportWriter *writer);

/** Internal contextual data for the writer */
void *context;

} BSG_KSCrashReportWriter;

typedef void (*BSG_KSReportWriteCallback)(
const BSG_KSCrashReportWriter *writer);

#ifdef __cplusplus
}
#endif

#endif // HDR_KSCrashReportWriter_h
4 changes: 2 additions & 2 deletions cocoa/vendor/bugsnag-cocoa/Source/BugsnagConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
// THE SOFTWARE.
//

#import "BSGKSCrashReportWriter.h"
#import "BSG_KSCrashReportWriter.h"
#import "BugsnagBreadcrumb.h"
#import "BugsnagCrashReport.h"
#import "BugsnagMetaData.h"
Expand Down Expand Up @@ -124,7 +124,7 @@ BugsnagBreadcrumbs *breadcrumbs;
* Optional handler invoked when a crash or fatal signal occurs
*/
@property void (*_Nullable onCrashHandler)
(const BSGCrashReportWriter *_Nonnull writer);
(const BSG_KSCrashReportWriter *_Nonnull writer);
/**
* YES if uncaught exceptions should be reported automatically
*/
Expand Down
2 changes: 1 addition & 1 deletion cocoa/vendor/bugsnag-cocoa/Source/BugsnagNotifier.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#import <AppKit/AppKit.h>
#endif

NSString *const NOTIFIER_VERSION = @"5.13.5";
NSString *const NOTIFIER_VERSION = @"5.14.0";
NSString *const NOTIFIER_URL = @"https://github.com/bugsnag/bugsnag-cocoa";
NSString *const BSTabCrash = @"crash";
NSString *const BSAttributeDepth = @"depth";
Expand Down
Loading

0 comments on commit c785203

Please sign in to comment.