feat: add module app version in shared errors info data

This commit is contained in:
2023-10-21 17:13:57 +08:00
parent 32ca130da0
commit c8a0631034

View File

@@ -24,6 +24,7 @@ package com.fankes.apperrorstracking.bean
import android.app.ApplicationErrorReport import android.app.ApplicationErrorReport
import android.content.Context import android.content.Context
import android.os.Build import android.os.Build
import com.fankes.apperrorstracking.const.ModuleVersion
import com.fankes.apperrorstracking.locale.locale import com.fankes.apperrorstracking.locale.locale
import com.fankes.apperrorstracking.utils.factory.appCpuAbiOf import com.fankes.apperrorstracking.utils.factory.appCpuAbiOf
import com.fankes.apperrorstracking.utils.factory.appVersionCodeOf import com.fankes.apperrorstracking.utils.factory.appVersionCodeOf
@@ -176,7 +177,7 @@ data class AppErrorsInfoBean(
*/ */
val stackOutputShareContent val stackOutputShareContent
get() = """ get() = """
Generated by AppErrorsTracking Generated by AppErrorsTracking $ModuleVersion
Project URL: https://github.com/KitsunePie/AppErrorsTracking Project URL: https://github.com/KitsunePie/AppErrorsTracking
=============== ===============
""".trimIndent() + "\n$environmentInfo" """.trimIndent() + "\n$environmentInfo"
@@ -188,7 +189,7 @@ data class AppErrorsInfoBean(
val stackOutputFileContent val stackOutputFileContent
get() = """ get() = """
================================================================ ================================================================
Generated by AppErrorsTracking Generated by AppErrorsTracking $ModuleVersion
Project URL: https://github.com/KitsunePie/AppErrorsTracking Project URL: https://github.com/KitsunePie/AppErrorsTracking
================================================================ ================================================================
""".trimIndent() + "\n$environmentInfo" """.trimIndent() + "\n$environmentInfo"