Skip to content

Commit

Permalink
Upgrade to KSCrash 1.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kattrali committed Jan 30, 2017
1 parent 40ce876 commit 73c5dac
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Bugsnag.podspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"dependencies": {
"KSCrash/RecordingAdvanced": [
"= 1.8.13"
"= 1.11.2"
]
}
}
2 changes: 1 addition & 1 deletion Carthage/Checkouts/KSCrash
Submodule KSCrash updated 151 files
26 changes: 21 additions & 5 deletions Source/BSGKSCrashReportWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ typedef struct BSGKSCrashReportWriter
*/
void (*addIntegerElement)(const struct BSGKSCrashReportWriter* writer,
const char* name,
long long value);
int64_t value);

/** Add an unsigned integer element to the report.
*
Expand All @@ -83,7 +83,7 @@ typedef struct BSGKSCrashReportWriter
*/
void (*addUIntegerElement)(const struct BSGKSCrashReportWriter* writer,
const char* name,
unsigned long long value);
uint64_t value);

/** Add a string element to the report.
*
Expand All @@ -109,6 +109,21 @@ typedef struct BSGKSCrashReportWriter
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.
*
* @param closeLastContainer If false, do not close the last container.
*/
void (*addJSONFileElement)(const struct BSGKSCrashReportWriter* writer,
const char* name,
const char* filePath,
const bool closeLastContainer);

/** Add a hex encoded data element to the report.
*
* @param writer This writer.
Expand All @@ -122,7 +137,7 @@ typedef struct BSGKSCrashReportWriter
void (*addDataElement)(const struct BSGKSCrashReportWriter* writer,
const char* name,
const char* value,
const size_t length);
const int length);

/** Begin writing a hex encoded data element to the report.
*
Expand All @@ -143,7 +158,7 @@ typedef struct BSGKSCrashReportWriter
*/
void (*appendDataElement)(const struct BSGKSCrashReportWriter* writer,
const char* value,
const size_t length);
const int length);

/** Complete writing a hex encoded data element to the report.
*
Expand Down Expand Up @@ -173,7 +188,8 @@ typedef struct BSGKSCrashReportWriter
*/
void (*addJSONElement)(const struct BSGKSCrashReportWriter* writer,
const char* name,
const char* jsonElement);
const char* jsonElement,
bool closeLastContainer);

/** Begin a new object container.
*
Expand Down
8 changes: 4 additions & 4 deletions Source/BugsnagNotifier.m
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,16 @@
*/
void BSSerializeDataCrashHandler(const KSCrashReportWriter *writer) {
if (g_bugsnag_data.configJSON) {
writer->addJSONElement(writer, "config", g_bugsnag_data.configJSON);
writer->addJSONElement(writer, "config", g_bugsnag_data.configJSON, true);
}
if (g_bugsnag_data.metaDataJSON) {
writer->addJSONElement(writer, "metaData", g_bugsnag_data.metaDataJSON);
writer->addJSONElement(writer, "metaData", g_bugsnag_data.metaDataJSON, true);
}
if (g_bugsnag_data.stateJSON) {
writer->addJSONElement(writer, "state", g_bugsnag_data.stateJSON);
writer->addJSONElement(writer, "state", g_bugsnag_data.stateJSON, true);
}
if (g_bugsnag_data.userOverridesJSON) {
writer->addJSONElement(writer, "overrides", g_bugsnag_data.userOverridesJSON);
writer->addJSONElement(writer, "overrides", g_bugsnag_data.userOverridesJSON, true);
}
if (g_bugsnag_data.onCrash) {
g_bugsnag_data.onCrash(writer);
Expand Down

0 comments on commit 73c5dac

Please sign in to comment.