From c3382e9d36da0e656ca003ed5bb9b1bd279d3b6e Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Tue, 24 Dec 2019 16:50:31 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E5=8E=BB=E9=99=A4=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E5=B9=B3=E5=8F=B0=E4=B8=8D=E6=94=AF=E6=8C=81=E7=9A=84?= =?UTF-8?q?api=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mp-alipay/runtime/api/protocols.js | 40 +++--- .../mp-baidu/runtime/api/protocols.js | 62 +++++----- src/platforms/mp-qq/runtime/api/protocols.js | 68 +++++----- .../mp-toutiao/runtime/api/protocols.js | 116 +++++++++--------- 4 files changed, 143 insertions(+), 143 deletions(-) diff --git a/src/platforms/mp-alipay/runtime/api/protocols.js b/src/platforms/mp-alipay/runtime/api/protocols.js index 3b82d5ba..d38217b9 100644 --- a/src/platforms/mp-alipay/runtime/api/protocols.js +++ b/src/platforms/mp-alipay/runtime/api/protocols.js @@ -1,25 +1,25 @@ // 不支持的 API 列表 const todos = [ - 'getRecorderManager', - 'getBackgroundAudioManager', - 'createInnerAudioContext', - 'createCameraContext', - 'createLivePlayerContext', - 'startAccelerometer', - 'startCompass', - 'authorize', - 'chooseInvoiceTitle', - 'addTemplate', - 'deleteTemplate', - 'getTemplateLibraryById', - 'getTemplateLibraryList', - 'getTemplateList', - 'sendTemplateMessage', - 'setEnableDebug', - 'getExtConfig', - 'getExtConfigSync', - 'onWindowResize', - 'offWindowResize' + // 'getRecorderManager', + // 'getBackgroundAudioManager', + // 'createInnerAudioContext', + // 'createCameraContext', + // 'createLivePlayerContext', + // 'startAccelerometer', + // 'startCompass', + // 'authorize', + // 'chooseInvoiceTitle', + // 'addTemplate', + // 'deleteTemplate', + // 'getTemplateLibraryById', + // 'getTemplateLibraryList', + // 'getTemplateList', + // 'sendTemplateMessage', + // 'setEnableDebug', + // 'getExtConfig', + // 'getExtConfigSync', + // 'onWindowResize', + // 'offWindowResize' ] // 存在兼容性的 API 列表 diff --git a/src/platforms/mp-baidu/runtime/api/protocols.js b/src/platforms/mp-baidu/runtime/api/protocols.js index 5e3ddd4c..fb3b8fe1 100644 --- a/src/platforms/mp-baidu/runtime/api/protocols.js +++ b/src/platforms/mp-baidu/runtime/api/protocols.js @@ -1,37 +1,37 @@ import previewImage from '../../../mp-weixin/helpers/normalize-preview-image' // 不支持的 API 列表 const todos = [ - 'hideKeyboard', - 'onGyroscopeChange', - 'startGyroscope', - 'stopGyroscope', - 'openBluetoothAdapter', - 'startBluetoothDevicesDiscovery', - 'onBluetoothDeviceFound', - 'stopBluetoothDevicesDiscovery', - 'onBluetoothAdapterStateChange', - 'getConnectedBluetoothDevices', - 'getBluetoothDevices', - 'getBluetoothAdapterState', - 'closeBluetoothAdapter', - 'writeBLECharacteristicValue', - 'readBLECharacteristicValue', - 'onBLEConnectionStateChange', - 'onBLECharacteristicValueChange', - 'notifyBLECharacteristicValueChange', - 'getBLEDeviceServices', - 'getBLEDeviceCharacteristics', - 'createBLEConnection', - 'closeBLEConnection', - 'onBeaconServiceChange', - 'onBeaconUpdate', - 'getBeacons', - 'startBeaconDiscovery', - 'stopBeaconDiscovery', - 'hideShareMenu', - 'onWindowResize', - 'offWindowResize', - 'vibrate' + // 'hideKeyboard', + // 'onGyroscopeChange', + // 'startGyroscope', + // 'stopGyroscope', + // 'openBluetoothAdapter', + // 'startBluetoothDevicesDiscovery', + // 'onBluetoothDeviceFound', + // 'stopBluetoothDevicesDiscovery', + // 'onBluetoothAdapterStateChange', + // 'getConnectedBluetoothDevices', + // 'getBluetoothDevices', + // 'getBluetoothAdapterState', + // 'closeBluetoothAdapter', + // 'writeBLECharacteristicValue', + // 'readBLECharacteristicValue', + // 'onBLEConnectionStateChange', + // 'onBLECharacteristicValueChange', + // 'notifyBLECharacteristicValueChange', + // 'getBLEDeviceServices', + // 'getBLEDeviceCharacteristics', + // 'createBLEConnection', + // 'closeBLEConnection', + // 'onBeaconServiceChange', + // 'onBeaconUpdate', + // 'getBeacons', + // 'startBeaconDiscovery', + // 'stopBeaconDiscovery', + // 'hideShareMenu', + // 'onWindowResize', + // 'offWindowResize', + // 'vibrate' ] // 存在兼容性的 API 列表 diff --git a/src/platforms/mp-qq/runtime/api/protocols.js b/src/platforms/mp-qq/runtime/api/protocols.js index 15f44004..31b33449 100644 --- a/src/platforms/mp-qq/runtime/api/protocols.js +++ b/src/platforms/mp-qq/runtime/api/protocols.js @@ -3,40 +3,40 @@ export const protocols = { previewImage } export const todos = [ - 'startBeaconDiscovery', - 'stopBeaconDiscovery', - 'getBeacons', - 'onBeaconUpdate', - 'onBeaconServiceChange', - 'addPhoneContact', - 'getHCEState', - 'startHCE', - 'stopHCE', - 'onHCEMessage', - 'sendHCEMessage', - 'startWifi', - 'stopWifi', - 'connectWifi', - 'getWifiList', - 'onGetWifiList', - 'setWifiList', - 'onWifiConnected', - 'getConnectedWifi', - 'setTopBarText', - 'getPhoneNumber', - 'chooseAddress', - 'addCard', - 'openCard', - 'getWeRunData', - 'launchApp', - 'chooseInvoiceTitle', - 'checkIsSupportSoterAuthentication', - 'startSoterAuthentication', - 'checkIsSoterEnrolledInDevice', - 'vibrate', - 'loadFontFace', - 'getExtConfig', - 'getExtConfigSync' + // 'startBeaconDiscovery', + // 'stopBeaconDiscovery', + // 'getBeacons', + // 'onBeaconUpdate', + // 'onBeaconServiceChange', + // 'addPhoneContact', + // 'getHCEState', + // 'startHCE', + // 'stopHCE', + // 'onHCEMessage', + // 'sendHCEMessage', + // 'startWifi', + // 'stopWifi', + // 'connectWifi', + // 'getWifiList', + // 'onGetWifiList', + // 'setWifiList', + // 'onWifiConnected', + // 'getConnectedWifi', + // 'setTopBarText', + // 'getPhoneNumber', + // 'chooseAddress', + // 'addCard', + // 'openCard', + // 'getWeRunData', + // 'launchApp', + // 'chooseInvoiceTitle', + // 'checkIsSupportSoterAuthentication', + // 'startSoterAuthentication', + // 'checkIsSoterEnrolledInDevice', + // 'vibrate', + // 'loadFontFace', + // 'getExtConfig', + // 'getExtConfigSync' ] export const canIUses = [ 'scanCode', diff --git a/src/platforms/mp-toutiao/runtime/api/protocols.js b/src/platforms/mp-toutiao/runtime/api/protocols.js index 25a4273f..de353897 100644 --- a/src/platforms/mp-toutiao/runtime/api/protocols.js +++ b/src/platforms/mp-toutiao/runtime/api/protocols.js @@ -2,64 +2,64 @@ import previewImage from '../../../mp-weixin/helpers/normalize-preview-image' // 不支持的 API 列表 const todos = [ - 'createCameraContext', - 'createLivePlayerContext', - 'getSavedFileInfo', - 'createMapContext', - 'onMemoryWarning', - 'onGyroscopeChange', - 'startGyroscope', - 'stopGyroscope', - 'setScreenBrightness', - 'getScreenBrightness', - 'addPhoneContact', - 'openBluetoothAdapter', - 'startBluetoothDevicesDiscovery', - 'onBluetoothDeviceFound', - 'stopBluetoothDevicesDiscovery', - 'onBluetoothAdapterStateChange', - 'getConnectedBluetoothDevices', - 'getBluetoothDevices', - 'getBluetoothAdapterState', - 'closeBluetoothAdapter', - 'writeBLECharacteristicValue', - 'readBLECharacteristicValue', - 'onBLEConnectionStateChange', - 'onBLECharacteristicValueChange', - 'notifyBLECharacteristicValueChange', - 'getBLEDeviceServices', - 'getBLEDeviceCharacteristics', - 'createBLEConnection', - 'closeBLEConnection', - 'onBeaconServiceChange', - 'onBeaconUpdate', - 'getBeacons', - 'startBeaconDiscovery', - 'stopBeaconDiscovery', - 'showNavigationBarLoading', - 'hideNavigationBarLoading', - 'setTabBarItem', - 'setTabBarStyle', - 'hideTabBar', - 'showTabBar', - 'setTabBarBadge', - 'removeTabBarBadge', - 'showTabBarRedDot', - 'hideTabBarRedDot', - 'setBackgroundColor', - 'setBackgroundTextStyle', - 'chooseInvoiceTitle', - 'addTemplate', - 'deleteTemplate', - 'getTemplateLibraryById', - 'getTemplateLibraryList', - 'getTemplateList', - 'sendTemplateMessage', - 'setEnableDebug', - 'onWindowResize', - 'offWindowResize', - 'createOffscreenCanvas', - 'vibrate' + // 'createCameraContext', + // 'createLivePlayerContext', + // 'getSavedFileInfo', + // 'createMapContext', + // 'onMemoryWarning', + // 'onGyroscopeChange', + // 'startGyroscope', + // 'stopGyroscope', + // 'setScreenBrightness', + // 'getScreenBrightness', + // 'addPhoneContact', + // 'openBluetoothAdapter', + // 'startBluetoothDevicesDiscovery', + // 'onBluetoothDeviceFound', + // 'stopBluetoothDevicesDiscovery', + // 'onBluetoothAdapterStateChange', + // 'getConnectedBluetoothDevices', + // 'getBluetoothDevices', + // 'getBluetoothAdapterState', + // 'closeBluetoothAdapter', + // 'writeBLECharacteristicValue', + // 'readBLECharacteristicValue', + // 'onBLEConnectionStateChange', + // 'onBLECharacteristicValueChange', + // 'notifyBLECharacteristicValueChange', + // 'getBLEDeviceServices', + // 'getBLEDeviceCharacteristics', + // 'createBLEConnection', + // 'closeBLEConnection', + // 'onBeaconServiceChange', + // 'onBeaconUpdate', + // 'getBeacons', + // 'startBeaconDiscovery', + // 'stopBeaconDiscovery', + // 'showNavigationBarLoading', + // 'hideNavigationBarLoading', + // 'setTabBarItem', + // 'setTabBarStyle', + // 'hideTabBar', + // 'showTabBar', + // 'setTabBarBadge', + // 'removeTabBarBadge', + // 'showTabBarRedDot', + // 'hideTabBarRedDot', + // 'setBackgroundColor', + // 'setBackgroundTextStyle', + // 'chooseInvoiceTitle', + // 'addTemplate', + // 'deleteTemplate', + // 'getTemplateLibraryById', + // 'getTemplateLibraryList', + // 'getTemplateList', + // 'sendTemplateMessage', + // 'setEnableDebug', + // 'onWindowResize', + // 'offWindowResize', + // 'createOffscreenCanvas', + // 'vibrate' ] // 存在兼容性的 API 列表 -- GitLab