diff --git a/index.js b/index.js
index 8ca8e4c..683d7c7 100644
--- a/index.js
+++ b/index.js
@@ -6,6 +6,7 @@
// import '@/utils/log'
import './shim'
import '@/utils/errorHandle'
+import { init as initLog } from '@/utils/log'
import '@/config/globalData'
import SplashScreen from 'react-native-splash-screen'
import { init as initNavigation, navigations, showPactModal } from '@/navigation'
@@ -25,6 +26,7 @@ console.log('starting app...')
let store
let isInited = false
let isFirstRun = true
+initLog()
const init = () => {
if (isInited) return Promise.resolve()
diff --git a/publish/changeLog.md b/publish/changeLog.md
index a738df3..2d08fd1 100644
--- a/publish/changeLog.md
+++ b/publish/changeLog.md
@@ -1,5 +1,7 @@
+### 优化
+
+- 改进软件错误处理,添加对软件崩溃的错误日志记录,可在设置-其他查看错误日志历史。注:清理缓存时日志也将会被清理
+
### 修复
-- 修复修复协议弹窗可以被绕过的问题
-- 修复从在线列表使用稍后播放功能播放歌曲时,歌曲封面不显示的问题
-- 修复正在播放“稍后播放”的歌曲时,对“稍后播放”前播放的列表进行添加、删除操作会导致切歌的问题
+- 修复显示版本更新弹窗会导致应用崩溃的问题
diff --git a/src/components/common/ConfirmAlert.js b/src/components/common/ConfirmAlert.js
index 6c70306..10655b9 100644
--- a/src/components/common/ConfirmAlert.js
+++ b/src/components/common/ConfirmAlert.js
@@ -10,12 +10,14 @@ const styles = StyleSheet.create({
// flexGrow: 0,
flexShrink: 1,
marginTop: 15,
- marginLeft: 15,
- marginRight: 15,
+ marginLeft: 5,
+ marginRight: 5,
marginBottom: 25,
},
content: {
flexGrow: 0,
+ paddingLeft: 10,
+ paddingRight: 10,
},
title: {
fontSize: 14,
@@ -24,9 +26,15 @@ const styles = StyleSheet.create({
flexDirection: 'row',
justifyContent: 'center',
paddingBottom: 15,
- paddingLeft: 15,
// paddingRight: 15,
},
+ btnsDirection: {
+ paddingLeft: 15,
+ },
+ btnsReversedDirection: {
+ paddingLeft: 15,
+ flexDirection: 'row-reverse',
+ },
btn: {
flex: 1,
paddingTop: 10,
@@ -35,8 +43,13 @@ const styles = StyleSheet.create({
paddingRight: 10,
alignItems: 'center',
borderRadius: 4,
+ },
+ btnDirection: {
marginRight: 15,
},
+ btnReversedDirection: {
+ marginLeft: 15,
+ },
})
@@ -51,8 +64,9 @@ export default ({
text = '',
cancelText = '',
confirmText = '',
- showCancel = true,
+ showConfirm = true,
children,
+ reverseBtn = false,
}) => {
const theme = useGetter('common', 'theme')
const { t } = useTranslation()
@@ -64,15 +78,15 @@ export default ({
{children || {text}}
-
- {showCancel
- ?