提交 fd5f9f95 编写于 作者: Q qiang

fix: 旧版本升级后修复调用 uni.getBackgroundAudioManager 报错的问题

上级 4d6768e7
......@@ -15,7 +15,8 @@ const network = [
'sendSocketMessage',
'onSocketMessage',
'closeSocket',
'onSocketClose'
'onSocketClose',
'getUpdateManager'
]
const route = [
......@@ -59,7 +60,7 @@ const media = [
'saveVideoToPhotosAlbum',
'createVideoContext',
'createCameraContext',
'createLivePlayerContext',
'createLivePlayerContext',
'createLivePusherContext'
]
......@@ -115,7 +116,7 @@ const device = [
'stopBeaconDiscovery',
'checkIsSupportSoterAuthentication',
'checkIsSoterEnrolledInDevice',
'startSoterAuthentication',
'startSoterAuthentication',
'onUIStyleChange'
]
......@@ -154,7 +155,7 @@ const ui = [
'startPullDownRefresh',
'stopPullDownRefresh',
'createSelectorQuery',
'createIntersectionObserver',
'createIntersectionObserver',
'getMenuButtonBoundingClientRect'
]
......@@ -201,14 +202,14 @@ const third = [
'upx2px',
'restoreGlobal',
'getSubNVueById',
'getCurrentSubNVue',
'setPageMeta',
'onNativeEventReceive',
'sendNativeEvent',
'getCurrentSubNVue',
'setPageMeta',
'onNativeEventReceive',
'sendNativeEvent',
'preloadPage'
]
const ad = [
const ad = [
'createRewardedVideoAd'
]
......@@ -225,7 +226,7 @@ const apis = [
...event,
...file,
...canvas,
...third,
...third,
...ad
]
......
class UpdateManager {
constructor () {
}
onCheckForUpdate () {
}
onUpdateReady () {
}
onUpdateFailed () {
}
applyUpdate () {
}
}
let updateManager
export function getUpdateManager () {
return updateManager || (updateManager = new UpdateManager())
}
export default [
'saveImageToPhotosAlbum',
'getRecorderManager',
'getBackgroundAudioManager',
'saveVideoToPhotosAlbum',
'createCameraContext',
'createLivePlayerContext',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册