提交 d5819723 编写于 作者: Q qiang

build runtime

上级 d0625bdc
......@@ -352,20 +352,17 @@ var baseApi = /*#__PURE__*/Object.freeze({
// 不支持的 API 列表
const todos = [
'saveImageToPhotosAlbum',
'getRecorderManager',
'getBackgroundAudioManager',
'createInnerAudioContext',
'createVideoContext',
'createCameraContext',
'createLivePlayerContext',
'openDocument',
'onMemoryWarning',
'startAccelerometer',
'startCompass',
'addPhoneContact',
'authorize',
'chooseAddress',
'chooseInvoiceTitle',
'addTemplate',
'deleteTemplate',
......@@ -377,8 +374,7 @@ const todos = [
'getExtConfig',
'getExtConfigSync',
'onWindowResize',
'offWindowResize',
'saveVideoToPhotosAlbum'
'offWindowResize'
];
// 存在兼容性的 API 列表
......@@ -397,7 +393,11 @@ const canIUses = [
'createIntersectionObserver',
'getUpdateManager',
'setBackgroundColor',
'setBackgroundTextStyle'
'setBackgroundTextStyle',
'checkIsSupportSoterAuthentication',
'startSoterAuthentication',
'checkIsSoterEnrolledInDevice',
'openDocument'
];
function _handleNetworkInfo (result) {
......@@ -754,6 +754,29 @@ const protocols = { // 需要做转换的 API 列表
},
hideHomeButton: {
name: 'hideBackHome'
},
saveImageToPhotosAlbum: {
name: 'saveImage',
args: {
filePath: 'url'
}
},
saveVideoToPhotosAlbum: {
args: {
filePath: 'src'
}
},
chooseAddress: {
name: 'getAddress',
returnValue (result) {
let info = result.result || {};
result.userName = info.fullname;
result.provinceName = info.prov;
result.cityName = info.city;
result.detailInfo = info.address;
result.telNumber = info.mobilePhone;
result.errMsg = result.resultStatus;
}
}
};
......
......@@ -388,11 +388,6 @@ const protocols = {
previewImage
};
const todos = [
'createLivePlayerContext',
'createLivePusherContext',
'loadFontFace',
'onMemoryWarning',
'onNetworkStatusChange',
'startBeaconDiscovery',
'stopBeaconDiscovery',
'getBeacons',
......@@ -412,10 +407,7 @@ const todos = [
'setWifiList',
'onWifiConnected',
'getConnectedWifi',
'setNavigationBarColor',
'setTopBarText',
'getExtConfig',
'getExtConfigSync',
'getPhoneNumber',
'chooseAddress',
'addCard',
......@@ -425,11 +417,11 @@ const todos = [
'chooseInvoiceTitle',
'checkIsSupportSoterAuthentication',
'startSoterAuthentication',
'checkIsSoterEnrolledInDevice',
'reportMonitor',
'getLogManager',
'reportAnalytics',
'vibrate'
'checkIsSoterEnrolledInDevice',
'vibrate',
'loadFontFace',
'getExtConfig',
'getExtConfigSync'
];
const canIUses = [
'scanCode',
......@@ -454,7 +446,15 @@ const canIUses = [
'onSocketClose',
'openDocument',
'updateShareMenu',
'getShareInfo'
'getShareInfo',
'createLivePlayerContext',
'createLivePusherContext',
'setNavigationBarColor',
'onMemoryWarning',
'onNetworkStatusChange',
'reportMonitor',
'getLogManager',
'reportAnalytics'
];
const CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
......
......@@ -537,9 +537,9 @@ const protocols = {
}
},
requestPayment: {
name: tt.canIUse && tt.canIUse('pay') ? 'pay' : 'requestPayment',
name: tt.pay ? 'pay' : 'requestPayment',
args: {
orderInfo: tt.canIUse && tt.canIUse('pay') ? 'orderInfo' : 'data'
orderInfo: tt.pay ? 'orderInfo' : 'data'
}
},
getFileInfo: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册