提交 fd5f9f95 编写于 作者: Q qiang

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

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