Skip to content

Commit 8de3bf5

Browse files
Initial Commit
1 parent ff0b205 commit 8de3bf5

File tree

9 files changed

+19
-16
lines changed

9 files changed

+19
-16
lines changed
25.2 KB
Loading
-36.7 KB
Binary file not shown.

library/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ android {
1010
defaultConfig {
1111
minSdkVersion 15
1212
targetSdkVersion 28
13-
versionCode 1
14-
versionName "1.0-SNAPSHOT"
13+
versionCode 2
14+
versionName "15.4.19"
1515
}
1616
buildTypes {
1717
release {

library/src/main/java/com/kinda/crash/CrashActivity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ public final class CrashActivity {
5555
private static final String SHARED_PREFERENCES_FIELD_TIMESTAMP = "last_crash_timestamp";
5656

5757
//Internal variables
58-
@SuppressLint("StaticFieldLeak") //This is an application-wide component
5958
private static Application application;
6059
private static CrashConfig config = new CrashConfig();
6160
private static final Deque<String> activityLog = new ArrayDeque<>(MAX_ACTIVITIES_IN_LOG);
-31.8 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<vector android:height="24dp" android:tint="#D50000"
2+
android:viewportHeight="24.0" android:viewportWidth="24.0"
3+
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
4+
<path android:fillColor="#D50000" android:pathData="M20,8h-2.81c-0.45,-0.78 -1.07,-1.45 -1.82,-1.96L17,4.41 15.59,3l-2.17,2.17C12.96,5.06 12.49,5 12,5c-0.49,0 -0.96,0.06 -1.41,0.17L8.41,3 7,4.41l1.62,1.63C7.88,6.55 7.26,7.22 6.81,8L4,8v2h2.09c-0.05,0.33 -0.09,0.66 -0.09,1v1L4,12v2h2v1c0,0.34 0.04,0.67 0.09,1L4,16v2h2.81c1.04,1.79 2.97,3 5.19,3s4.15,-1.21 5.19,-3L20,18v-2h-2.09c0.05,-0.33 0.09,-0.66 0.09,-1v-1h2v-2h-2v-1c0,-0.34 -0.04,-0.67 -0.09,-1L20,10L20,8zM14,16h-4v-2h4v2zM14,12h-4v-2h4v2z"/>
5+
</vector>

library/src/main/res/layout/crash_default_error_activity.xml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,30 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3-
xmlns:tools="http://schemas.android.com/tools"
43
android:layout_width="match_parent"
54
android:layout_height="match_parent"
65
android:gravity="center">
76

87
<ScrollView
98
android:layout_width="match_parent"
10-
android:layout_height="wrap_content"
11-
tools:ignore="UselessParent">
9+
android:layout_height="wrap_content">
1210

1311
<LinearLayout
1412
android:layout_width="match_parent"
1513
android:layout_height="wrap_content"
1614
android:gravity="center"
1715
android:orientation="vertical"
18-
android:paddingBottom="@dimen/customactivityoncrash_activity_vertical_margin"
1916
android:paddingLeft="@dimen/customactivityoncrash_activity_horizontal_margin"
17+
android:paddingTop="@dimen/customactivityoncrash_activity_vertical_margin"
2018
android:paddingRight="@dimen/customactivityoncrash_activity_horizontal_margin"
21-
android:paddingTop="@dimen/customactivityoncrash_activity_vertical_margin">
19+
android:paddingBottom="@dimen/customactivityoncrash_activity_vertical_margin">
2220

2321
<ImageView
2422
android:id="@+id/crash_error_activity_image"
25-
android:layout_width="200dp"
26-
android:layout_height="200dp"
23+
android:layout_width="100dp"
24+
android:layout_height="100dp"
2725
android:contentDescription="@null"
28-
android:src="@drawable/buggy" />
26+
android:scaleType="fitXY"
27+
android:src="@drawable/crash_ic_bug_report" />
2928

3029
<TextView
3130
android:layout_width="wrap_content"

sample/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
applicationId "com.kinda.crash.sample"
88
minSdkVersion 15
99
targetSdkVersion 28
10-
versionCode 1
11-
versionName "1.0"
10+
versionCode 2
11+
versionName "15.4.19"
1212
}
1313
buildTypes {
1414
debug {

sample/src/main/res/layout/activity_custom_error.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323

2424
<ImageView
2525
android:id="@+id/crash_error_activity_image"
26-
android:layout_width="200dp"
27-
android:layout_height="200dp"
26+
android:layout_width="100dp"
27+
android:layout_height="100dp"
2828
android:contentDescription="@null"
29-
android:src="@drawable/buggy" />
29+
android:src="@drawable/crash_ic_bug_report" />
3030

3131
<TextView
3232
android:layout_width="wrap_content"

0 commit comments

Comments
 (0)