Skip to content

Commit

Permalink
v4.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fractalwrench committed Jan 22, 2019
2 parents 31d7590 + 061cf2f commit ffc7dc1
Show file tree
Hide file tree
Showing 7 changed files with 226 additions and 199 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
@@ -1,13 +1,16 @@
# Changelog

## 4.X.X (TBD)
## 4.11.0 (2019-01-22)

### Enhancements

* [NDK] Improve support for C++ exceptions, adding the exception class name
and description to reports and improving the stacktrace quality
[#412](https://github.com/bugsnag/bugsnag-android/pull/412)

* Update vendored GSON dependency to latest available version
[#415](https://github.com/bugsnag/bugsnag-android/pull/415)

### Bug fixes

* Fix cached error deserialisation where the Throwable has a cause
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -3,7 +3,7 @@
[![Build status](https://travis-ci.org/bugsnag/bugsnag-android.svg?branch=master)](https://travis-ci.org/bugsnag/bugsnag-android)
[![Coverage Status](https://coveralls.io/repos/github/bugsnag/bugsnag-android/badge.svg?branch=master)](https://coveralls.io/github/bugsnag/bugsnag-android?branch=master)
<!-- Auto-generated line below: -->
![Method count and size](https://img.shields.io/badge/Methods%20and%20size-88%20classes%20|%20678%20methods%20|%20350%20fields%20|%20132%20KB-e91e63.svg)
![Method count and size](https://img.shields.io/badge/Methods%20and%20size-86%20classes%20|%20688%20methods%20|%20351%20fields%20|%20128%20KB-e91e63.svg)

Get comprehensive [Android crash reports](https://www.bugsnag.com/platforms/android/) to quickly debug errors.

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Expand Up @@ -11,7 +11,7 @@ org.gradle.jvmargs=-Xmx1536m
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
VERSION_NAME=4.10.0
VERSION_NAME=4.11.0
GROUP=com.bugsnag
POM_SCM_URL=https://github.com/bugsnag/bugsnag-android
POM_SCM_CONNECTION=scm:git@github.com:bugsnag/bugsnag-android.git
Expand Down
75 changes: 75 additions & 0 deletions sdk/src/main/java/com/bugsnag/android/JsonScope.java
@@ -0,0 +1,75 @@
/*
* Copyright (C) 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.bugsnag.android;

// last retrieved from gson-parent-2.8.5 on 17/01/2019
// https://github.com/google/gson/tree/gson-parent-2.8.5/gson/src/main/java/com/google/gson/stream

/**
* Lexical scoping elements within a JSON reader or writer.
*
* @author Jesse Wilson
* @since 1.6
*/
@SuppressWarnings("all")
final class JsonScope {

/**
* An array with no elements requires no separators or newlines before
* it is closed.
*/
static final int EMPTY_ARRAY = 1;

/**
* A array with at least one value requires a comma and newline before
* the next element.
*/
static final int NONEMPTY_ARRAY = 2;

/**
* An object with no name/value pairs requires no separators or newlines
* before it is closed.
*/
static final int EMPTY_OBJECT = 3;

/**
* An object whose most recent element is a key. The next element must
* be a value.
*/
static final int DANGLING_NAME = 4;

/**
* An object with at least one name/value pair requires a comma and
* newline before the next element.
*/
static final int NONEMPTY_OBJECT = 5;

/**
* No object or array has been started.
*/
static final int EMPTY_DOCUMENT = 6;

/**
* A document with at an array or object.
*/
static final int NONEMPTY_DOCUMENT = 7;

/**
* A document that's been closed and cannot be accessed.
*/
static final int CLOSED = 8;
}
2 changes: 1 addition & 1 deletion sdk/src/main/java/com/bugsnag/android/JsonStream.java
Expand Up @@ -69,7 +69,7 @@ public void value(@NonNull File file) throws IOException {
}

super.flush();
beforeValue(false); // add comma if in array
beforeValue(); // add comma if in array

// Copy the file contents onto the stream
Reader input = null;
Expand Down

0 comments on commit ffc7dc1

Please sign in to comment.