feat: support share errors stacktrace with file

This commit is contained in:
2025-03-16 02:30:46 +08:00
parent cabf025082
commit 40747a81ea
8 changed files with 74 additions and 2 deletions

View File

@@ -298,6 +298,30 @@
android:textColor="@color/colorTextDark"
android:textSize="12sp" />
<com.fankes.apperrorstracking.ui.widget.MaterialSwitch
android:id="@+id/share_with_file"
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_marginBottom="5dp"
android:text="@string/share_with_file"
android:textAllCaps="false"
android:textColor="@color/colorTextGray"
android:textSize="15sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_marginBottom="10dp"
android:alpha="0.6"
android:lineSpacingExtra="6dp"
android:text="@string/share_with_file_tip"
android:textColor="@color/colorTextDark"
android:textSize="12sp" />
<com.fankes.apperrorstracking.ui.widget.MaterialSwitch
android:id="@+id/enable_apps_configs_template_switch"
android:layout_width="match_parent"

View File

@@ -157,4 +157,6 @@
<string name="stack_trace_share_system_build_id">系统构建 ID</string>
<string name="stack_trace_share_package_name">APP 包名</string>
<string name="stack_trace_share_other">其它必要信息</string>
<string name="share_with_file">以文件方式分享异常堆栈</string>
<string name="share_with_file_tip">使用文件的方式代替文本分享异常堆栈</string>
</resources>

View File

@@ -160,4 +160,6 @@
<string name="stack_trace_share_system_build_id">System Build ID</string>
<string name="stack_trace_share_package_name">App Package Name</string>
<string name="stack_trace_share_other">Other Requirement</string>
<string name="share_with_file">Share errors stacktrace with file</string>
<string name="share_with_file_tip">Share errors stacktrace using files instead of text</string>
</resources>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<cache-path name="cache" path="." />
<external-path name="external" path="." />
</paths>