fix(Logs): log correct manager build type
This commit is contained in:
parent
ceb174e8ae
commit
ba8b4c48af
1 changed files with 6 additions and 2 deletions
|
|
@ -106,7 +106,11 @@ class InstallLogManager(
|
|||
suspend fun getEnvironmentInfo(): String {
|
||||
val storageManager = application.getSystemService<StorageManager>()!!
|
||||
|
||||
val gitChanges = if (BuildConfig.GIT_LOCAL_CHANGES || BuildConfig.GIT_LOCAL_COMMITS) "(Changes present)" else ""
|
||||
val buildType = when {
|
||||
BuildConfig.RELEASE -> "(Release)"
|
||||
BuildConfig.GIT_LOCAL_CHANGES || BuildConfig.GIT_LOCAL_COMMITS -> "(Changes present)"
|
||||
else -> ""
|
||||
}
|
||||
val soc = if (Build.VERSION.SDK_INT >= 31) (Build.SOC_MANUFACTURER + ' ' + Build.SOC_MODEL) else "Unavailable"
|
||||
val playProtect = when (application.isPlayProtectEnabled()) {
|
||||
null -> "Unavailable"
|
||||
|
|
@ -123,7 +127,7 @@ class InstallLogManager(
|
|||
|
||||
return """
|
||||
Aliucord Manager v${BuildConfig.VERSION_NAME}
|
||||
Built from commit ${BuildConfig.GIT_COMMIT} on ${BuildConfig.GIT_BRANCH} $gitChanges
|
||||
Built from commit ${BuildConfig.GIT_COMMIT} on ${BuildConfig.GIT_BRANCH} $buildType
|
||||
Developer mode: ${if (prefs.devMode) "On" else "Off"}
|
||||
External storage: ${if (prefs.devMode || prefs.keepPatchedApks) "Yes" else "No"}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue