-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #354 from bugsnag/next
v4.6.0
- Loading branch information
Showing
97 changed files
with
1,470 additions
and
796 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,4 @@ proguard/ | |
|
||
# Javadoc | ||
docs/ | ||
infer-out/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
<vector android:height="24dp" android:viewportHeight="45.0" | ||
android:viewportWidth="230.9" android:width="120dp" xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<path android:fillColor="#FFFFFFFF" android:pathData="M79.6,23.1c0,7 -4.9,12.4 -11.3,12.4 -2.7,0.1 -5.3,-1.1 -7,-3.2v2.6h-6.2L55.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.1v2.8c1.6,-2.3 4.2,-3.5 6.9,-3.4 4.8,-0.2 8.9,3.5 9.2,8.3v0.8zM204.4,34.9h-6.2v-2.6c-1.7,2.1 -4.3,3.3 -7,3.2 -6.5,0 -11.4,-5.3 -11.4,-12.4s4.9,-12.4 11.4,-12.4c2.7,-0.1 5.3,1.1 7,3.2v-2.6h6.2v23.6zM186.3,23.1c0,3.6 2.4,6.5 6.1,6.5s6.1,-2.8 6.1,-6.5 -2.4,-6.5 -6.1,-6.5 -6.1,2.9 -6.1,6.5zM224.7,14v-2.6h6.2v21.5c0,7.5 -4.9,12.1 -12.7,12.1 -3.6,0.1 -7.2,-0.9 -10.3,-2.8l2.2,-5.2c2.3,1.6 5,2.4 7.8,2.4 3.9,0 6.7,-2.2 6.7,-6.2v-1.6c-1.8,2.1 -4.4,3.3 -7.2,3.2 -5.7,0 -10.8,-4.8 -10.8,-12s5.1,-12 10.8,-12c2.9,-0.2 5.6,1 7.3,3.2zM213.1,22.7c-0.1,3.3 2.4,6 5.7,6.1 3.3,0.1 6,-2.4 6.1,-5.7v-0.5c0,-3.5 -2.4,-6.2 -5.9,-6.2 -3.2,-0.1 -5.9,2.5 -5.9,5.7v0.6zM28.8,34.9h-8.9c0,-7.6 -3.4,-14.9 -9.2,-19.9l5.7,-6.7c7.9,6.7 12.4,16.4 12.4,26.6zM23.8,13.1c4.6,6.3 7.2,14 7.1,21.9h8.8c0,-9.7 -3.1,-19.2 -8.9,-27.1l-7,5.2zM0,21.1c5.5,2.4 9,7.8 9,13.8h8.9c0,-9.5 -5.6,-18.1 -14.2,-21.9L0,21.1z"/> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="2000dp" | ||
android:height="800dp" | ||
android:viewportWidth="2000" | ||
android:viewportHeight="800"> | ||
|
||
<path | ||
android:fillColor="#FFFFFF" | ||
android:pathData="M1208.3,274.2c-51,1.5-91,44.7-91,95.8v116.6c0,2.8,2.2,5,5,5h28.3c2.8,0,5-2.2,5-5v-117 c0-30,22.9-55.7,52.8-57.1c30.7-1.5,56.8,22.1,58.3,52.8c0,0.9,0.1,1.8,0.1,2.8v118.6c0,2.8,2.2,5,5,5h28.3c2.8,0,5-2.2,5-5V368 c-0.1-51.9-42.2-93.9-94.1-93.9C1210,274.1,1209.1,274.1,1208.3,274.2z M1446.8,275.2c-59.9-2.7-110.6,43.7-113.3,103.6 c-2.7,59.9,43.7,110.6,103.6,113.3c27.5,1.2,54.4-8,75.3-25.8v20.2c0,2.8,2.2,5,5,5h28.3c2.8,0,5-2.2,5-5V385.9 C1550.6,327.4,1505.2,277.7,1446.8,275.2z M1442.1,454c-38.8,0-70.3-31.5-70.4-70.3c0-38.8,31.5-70.3,70.3-70.4 c38.8,0,70.3,31.5,70.4,70.3c0,0,0,0,0,0C1512.3,422.5,1480.9,453.9,1442.1,454z M1696.1,275.2c-59.9-2.7-110.6,43.7-113.3,103.6 c-2.7,59.9,43.7,110.6,103.6,113.3c27.5,1.2,54.4-8,75.3-25.8v42.9c0,39.4-32.3,72.9-71.7,72.2c-22.3-0.4-43.1-11.4-56-29.6 c-1.5-2.1-4.4-2.7-6.6-1.3l-24,14.9c-2.4,1.5-3.1,4.6-1.6,6.9c0,0.1,0.1,0.1,0.1,0.2c19.7,29,52.3,46.5,87.4,47.1 c60.9,1.2,110.7-49.9,110.7-110.7V386C1799.9,327.4,1754.5,277.7,1696.1,275.2z M1691.4,454c-38.8,0-70.3-31.5-70.3-70.3 c0-38.8,31.5-70.3,70.3-70.3c38.8,0,70.3,31.5,70.3,70.3c0,0,0,0,0,0C1761.7,422.5,1730.2,453.9,1691.4,454z M784.9,275.2 C725,272.6,674.3,319,671.6,378.8s43.7,110.6,103.6,113.3c27.5,1.2,54.3-8,75.3-25.8v42.9c0,39.4-32.3,73-71.7,72.2 c-22.3-0.4-43.1-11.4-56-29.6c-1.5-2.1-4.4-2.7-6.6-1.3l-24,14.9c-2.4,1.5-3.1,4.6-1.6,6.9c0,0.1,0.1,0.1,0.1,0.2 c19.7,28.9,52.2,46.5,87.2,47.1c60.9,1.2,110.7-49.9,110.7-110.7V386C888.7,327.4,843.4,277.7,784.9,275.2z M780.2,454 c-38.8,0-70.3-31.5-70.3-70.3c0-38.8,31.5-70.3,70.3-70.3c38.8,0,70.3,31.5,70.3,70.3c0,0,0,0,0,0C850.5,422.5,819,453.9,780.2,454z M631.2,276.6l-28.3,0.4c-2.7,0-4.9,2.2-4.9,4.9v112.8c0,30.7-25,55.6-55.7,55.6c-0.9,0-1.8,0-2.7-0.1 c-29.9-1.5-52.8-27.2-52.8-57.1V282.1c0-2.8-2.2-5-5-5l0,0h-28.3c-2.8,0-5,2.2-5,5v110.7c0,51,40,94.3,91,95.8 c51.9,1.5,95.1-39.4,96.6-91.3c0-0.8,0-1.7,0-2.5V281.6C636.2,278.8,634,276.6,631.2,276.6C631.2,276.6,631.2,276.6,631.2,276.6z M1010.3,365.4c-27.7-7.7-44.5-13.4-44.5-28.4c0-21.7,23.7-29.6,39.7-29.6c18.2,0,29.2,4.2,43.5,13c2.3,1.4,5.3,0.7,6.8-1.6 l13.1-20.4c1.5-2.3,0.8-5.4-1.5-6.9c-0.1,0-0.1-0.1-0.2-0.1c-19-11.5-40.8-17.5-63.1-17.5c-36,0-73.1,23.7-73.1,63.4 c0,40.5,36,50.2,67.7,58.8c30,8.1,48.2,14.4,48.2,33.3c0,17.4-17.8,30.5-41.5,30.5c-22.8,0-41.4-10.3-54-20 c-2.1-1.7-5.2-1.3-6.9,0.8l-15.6,19c-1.7,2.1-1.4,5.3,0.7,7c20.5,17.2,47.8,26.6,77.4,26.6c43.1,0,74.4-27.4,74.4-65.1 C1081.6,385.3,1042,374.3,1010.3,365.4z M321.3,275.8c-30-3.5-60.1,5.6-83,25.2V185.3c0-2.8-2.2-5-5-5c-0.9,0-1.8,0.3-2.6,0.7 l-28.3,17.2c-1.5,0.9-2.4,2.5-2.4,4.3v178.9c0,58.5,45.4,108.2,103.8,110.7c59.9,2.5,110.5-44,113.1-103.9 C419.3,331.5,377.6,282.6,321.3,275.8z M308.6,454c-38.8,0-70.3-31.5-70.3-70.3s31.5-70.3,70.3-70.3s70.3,31.5,70.3,70.3 C378.8,422.5,347.4,453.9,308.6,454z" /> | ||
</vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@color/ic_launcher_background"/> | ||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> | ||
</adaptive-icon> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@color/ic_launcher_background"/> | ||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> | ||
</adaptive-icon> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="colorPrimary">#313139</color> | ||
<color name="colorPrimaryDark">#212129</color> | ||
<color name="colorAccent">#336ba4</color> | ||
<color name="headingColor">#071c3b</color> | ||
<color name="colorPrimary">#010E44</color> | ||
<color name="colorPrimaryDark">#20212C</color> | ||
<color name="colorAccent">#5BB6CB</color> | ||
<color name="headingColor">#010E44</color> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="ic_launcher_background">#010E44</color> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.5.0 | ||
VERSION_NAME=4.6.0 | ||
GROUP=com.bugsnag | ||
POM_SCM_URL=https://github.com/bugsnag/bugsnag-android | ||
POM_SCM_CONNECTION=scm:[email protected]:bugsnag/bugsnag-android.git | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
./gradlew clean && infer --disable-issue-type "NULL_DEREFERENCE" \ | ||
--disable-issue-type "RESOURCE_LEAK" -- ./gradlew sdk:build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,7 @@ | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in /Users/jamielynch/Library/Android/sdk/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile | ||
-keepattributes LineNumberTable,SourceFile | ||
-keep class com.bugsnag.android.NativeInterface { *; } | ||
-keep class com.bugsnag.android.Breadcrumb { *; } | ||
-keep class com.bugsnag.android.Breadcrumbs { *; } | ||
-keep class com.bugsnag.android.BreadcrumbType { *; } | ||
-keep class com.bugsnag.android.Severity { *; } | ||
-keep class com.bugsnag.android.ndk.BugsnagObserver { *; } |
78 changes: 78 additions & 0 deletions
78
sdk/src/androidTest/java/com/bugsnag/android/AppDataSummaryTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
package com.bugsnag.android; | ||
|
||
import static com.bugsnag.android.BugsnagTestUtils.generateClient; | ||
import static com.bugsnag.android.BugsnagTestUtils.mapToJson; | ||
import static com.bugsnag.android.BugsnagTestUtils.streamableToJson; | ||
import static org.junit.Assert.assertEquals; | ||
import static org.junit.Assert.assertNull; | ||
|
||
import android.support.test.filters.SmallTest; | ||
import android.support.test.runner.AndroidJUnit4; | ||
|
||
import org.json.JSONException; | ||
import org.json.JSONObject; | ||
import org.junit.After; | ||
import org.junit.Before; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
import java.io.IOException; | ||
import java.util.Map; | ||
|
||
@RunWith(AndroidJUnit4.class) | ||
@SmallTest | ||
public class AppDataSummaryTest { | ||
|
||
private Map<String, Object> appData; | ||
|
||
/** | ||
* Configures a new AppDataSummary for testing accessors + serialisation | ||
* | ||
* @throws Exception if setup failed | ||
*/ | ||
@Before | ||
public void setUp() throws Exception { | ||
AppData appData = new AppData(generateClient()); | ||
this.appData = appData.getAppDataSummary(); | ||
} | ||
|
||
@After | ||
public void tearDown() throws Exception { | ||
Async.cancelTasks(); | ||
} | ||
|
||
@Test | ||
public void testVersionCode() { | ||
assertEquals(1, appData.get("versionCode")); | ||
} | ||
|
||
@Test | ||
public void testVersionName() { | ||
assertEquals("1.0", appData.get("version")); | ||
} | ||
|
||
@Test | ||
public void testReleaseStage() { | ||
assertEquals("development", appData.get("releaseStage")); | ||
} | ||
|
||
@Test | ||
public void testNotifierType() { | ||
assertEquals("android", appData.get("type")); | ||
} | ||
|
||
@Test | ||
public void testCodeBundleId() { | ||
assertNull(appData.get("codeBundleId")); | ||
} | ||
|
||
@Test | ||
public void testJsonSerialisation() throws JSONException { | ||
JSONObject appDataJson = mapToJson(appData); | ||
assertEquals(1, appDataJson.getInt("versionCode")); | ||
assertEquals("1.0", appDataJson.get("version")); | ||
assertEquals("development", appDataJson.get("releaseStage")); | ||
assertEquals("android", appDataJson.get("type")); | ||
} | ||
|
||
} |
Oops, something went wrong.