提交 c3382e9d 编写于 作者: 雪洛's avatar 雪洛

update: 去除小程序平台不支持的api限制

上级 92e11416
// 不支持的 API 列表 // 不支持的 API 列表
const todos = [ const todos = [
'getRecorderManager', // 'getRecorderManager',
'getBackgroundAudioManager', // 'getBackgroundAudioManager',
'createInnerAudioContext', // 'createInnerAudioContext',
'createCameraContext', // 'createCameraContext',
'createLivePlayerContext', // 'createLivePlayerContext',
'startAccelerometer', // 'startAccelerometer',
'startCompass', // 'startCompass',
'authorize', // 'authorize',
'chooseInvoiceTitle', // 'chooseInvoiceTitle',
'addTemplate', // 'addTemplate',
'deleteTemplate', // 'deleteTemplate',
'getTemplateLibraryById', // 'getTemplateLibraryById',
'getTemplateLibraryList', // 'getTemplateLibraryList',
'getTemplateList', // 'getTemplateList',
'sendTemplateMessage', // 'sendTemplateMessage',
'setEnableDebug', // 'setEnableDebug',
'getExtConfig', // 'getExtConfig',
'getExtConfigSync', // 'getExtConfigSync',
'onWindowResize', // 'onWindowResize',
'offWindowResize' // 'offWindowResize'
] ]
// 存在兼容性的 API 列表 // 存在兼容性的 API 列表
......
import previewImage from '../../../mp-weixin/helpers/normalize-preview-image' import previewImage from '../../../mp-weixin/helpers/normalize-preview-image'
// 不支持的 API 列表 // 不支持的 API 列表
const todos = [ const todos = [
'hideKeyboard', // 'hideKeyboard',
'onGyroscopeChange', // 'onGyroscopeChange',
'startGyroscope', // 'startGyroscope',
'stopGyroscope', // 'stopGyroscope',
'openBluetoothAdapter', // 'openBluetoothAdapter',
'startBluetoothDevicesDiscovery', // 'startBluetoothDevicesDiscovery',
'onBluetoothDeviceFound', // 'onBluetoothDeviceFound',
'stopBluetoothDevicesDiscovery', // 'stopBluetoothDevicesDiscovery',
'onBluetoothAdapterStateChange', // 'onBluetoothAdapterStateChange',
'getConnectedBluetoothDevices', // 'getConnectedBluetoothDevices',
'getBluetoothDevices', // 'getBluetoothDevices',
'getBluetoothAdapterState', // 'getBluetoothAdapterState',
'closeBluetoothAdapter', // 'closeBluetoothAdapter',
'writeBLECharacteristicValue', // 'writeBLECharacteristicValue',
'readBLECharacteristicValue', // 'readBLECharacteristicValue',
'onBLEConnectionStateChange', // 'onBLEConnectionStateChange',
'onBLECharacteristicValueChange', // 'onBLECharacteristicValueChange',
'notifyBLECharacteristicValueChange', // 'notifyBLECharacteristicValueChange',
'getBLEDeviceServices', // 'getBLEDeviceServices',
'getBLEDeviceCharacteristics', // 'getBLEDeviceCharacteristics',
'createBLEConnection', // 'createBLEConnection',
'closeBLEConnection', // 'closeBLEConnection',
'onBeaconServiceChange', // 'onBeaconServiceChange',
'onBeaconUpdate', // 'onBeaconUpdate',
'getBeacons', // 'getBeacons',
'startBeaconDiscovery', // 'startBeaconDiscovery',
'stopBeaconDiscovery', // 'stopBeaconDiscovery',
'hideShareMenu', // 'hideShareMenu',
'onWindowResize', // 'onWindowResize',
'offWindowResize', // 'offWindowResize',
'vibrate' // 'vibrate'
] ]
// 存在兼容性的 API 列表 // 存在兼容性的 API 列表
......
...@@ -3,40 +3,40 @@ export const protocols = { ...@@ -3,40 +3,40 @@ export const protocols = {
previewImage previewImage
} }
export const todos = [ export const todos = [
'startBeaconDiscovery', // 'startBeaconDiscovery',
'stopBeaconDiscovery', // 'stopBeaconDiscovery',
'getBeacons', // 'getBeacons',
'onBeaconUpdate', // 'onBeaconUpdate',
'onBeaconServiceChange', // 'onBeaconServiceChange',
'addPhoneContact', // 'addPhoneContact',
'getHCEState', // 'getHCEState',
'startHCE', // 'startHCE',
'stopHCE', // 'stopHCE',
'onHCEMessage', // 'onHCEMessage',
'sendHCEMessage', // 'sendHCEMessage',
'startWifi', // 'startWifi',
'stopWifi', // 'stopWifi',
'connectWifi', // 'connectWifi',
'getWifiList', // 'getWifiList',
'onGetWifiList', // 'onGetWifiList',
'setWifiList', // 'setWifiList',
'onWifiConnected', // 'onWifiConnected',
'getConnectedWifi', // 'getConnectedWifi',
'setTopBarText', // 'setTopBarText',
'getPhoneNumber', // 'getPhoneNumber',
'chooseAddress', // 'chooseAddress',
'addCard', // 'addCard',
'openCard', // 'openCard',
'getWeRunData', // 'getWeRunData',
'launchApp', // 'launchApp',
'chooseInvoiceTitle', // 'chooseInvoiceTitle',
'checkIsSupportSoterAuthentication', // 'checkIsSupportSoterAuthentication',
'startSoterAuthentication', // 'startSoterAuthentication',
'checkIsSoterEnrolledInDevice', // 'checkIsSoterEnrolledInDevice',
'vibrate', // 'vibrate',
'loadFontFace', // 'loadFontFace',
'getExtConfig', // 'getExtConfig',
'getExtConfigSync' // 'getExtConfigSync'
] ]
export const canIUses = [ export const canIUses = [
'scanCode', 'scanCode',
......
...@@ -2,64 +2,64 @@ import previewImage from '../../../mp-weixin/helpers/normalize-preview-image' ...@@ -2,64 +2,64 @@ import previewImage from '../../../mp-weixin/helpers/normalize-preview-image'
// 不支持的 API 列表 // 不支持的 API 列表
const todos = [ const todos = [
'createCameraContext', // 'createCameraContext',
'createLivePlayerContext', // 'createLivePlayerContext',
'getSavedFileInfo', // 'getSavedFileInfo',
'createMapContext', // 'createMapContext',
'onMemoryWarning', // 'onMemoryWarning',
'onGyroscopeChange', // 'onGyroscopeChange',
'startGyroscope', // 'startGyroscope',
'stopGyroscope', // 'stopGyroscope',
'setScreenBrightness', // 'setScreenBrightness',
'getScreenBrightness', // 'getScreenBrightness',
'addPhoneContact', // 'addPhoneContact',
'openBluetoothAdapter', // 'openBluetoothAdapter',
'startBluetoothDevicesDiscovery', // 'startBluetoothDevicesDiscovery',
'onBluetoothDeviceFound', // 'onBluetoothDeviceFound',
'stopBluetoothDevicesDiscovery', // 'stopBluetoothDevicesDiscovery',
'onBluetoothAdapterStateChange', // 'onBluetoothAdapterStateChange',
'getConnectedBluetoothDevices', // 'getConnectedBluetoothDevices',
'getBluetoothDevices', // 'getBluetoothDevices',
'getBluetoothAdapterState', // 'getBluetoothAdapterState',
'closeBluetoothAdapter', // 'closeBluetoothAdapter',
'writeBLECharacteristicValue', // 'writeBLECharacteristicValue',
'readBLECharacteristicValue', // 'readBLECharacteristicValue',
'onBLEConnectionStateChange', // 'onBLEConnectionStateChange',
'onBLECharacteristicValueChange', // 'onBLECharacteristicValueChange',
'notifyBLECharacteristicValueChange', // 'notifyBLECharacteristicValueChange',
'getBLEDeviceServices', // 'getBLEDeviceServices',
'getBLEDeviceCharacteristics', // 'getBLEDeviceCharacteristics',
'createBLEConnection', // 'createBLEConnection',
'closeBLEConnection', // 'closeBLEConnection',
'onBeaconServiceChange', // 'onBeaconServiceChange',
'onBeaconUpdate', // 'onBeaconUpdate',
'getBeacons', // 'getBeacons',
'startBeaconDiscovery', // 'startBeaconDiscovery',
'stopBeaconDiscovery', // 'stopBeaconDiscovery',
'showNavigationBarLoading', // 'showNavigationBarLoading',
'hideNavigationBarLoading', // 'hideNavigationBarLoading',
'setTabBarItem', // 'setTabBarItem',
'setTabBarStyle', // 'setTabBarStyle',
'hideTabBar', // 'hideTabBar',
'showTabBar', // 'showTabBar',
'setTabBarBadge', // 'setTabBarBadge',
'removeTabBarBadge', // 'removeTabBarBadge',
'showTabBarRedDot', // 'showTabBarRedDot',
'hideTabBarRedDot', // 'hideTabBarRedDot',
'setBackgroundColor', // 'setBackgroundColor',
'setBackgroundTextStyle', // 'setBackgroundTextStyle',
'chooseInvoiceTitle', // 'chooseInvoiceTitle',
'addTemplate', // 'addTemplate',
'deleteTemplate', // 'deleteTemplate',
'getTemplateLibraryById', // 'getTemplateLibraryById',
'getTemplateLibraryList', // 'getTemplateLibraryList',
'getTemplateList', // 'getTemplateList',
'sendTemplateMessage', // 'sendTemplateMessage',
'setEnableDebug', // 'setEnableDebug',
'onWindowResize', // 'onWindowResize',
'offWindowResize', // 'offWindowResize',
'createOffscreenCanvas', // 'createOffscreenCanvas',
'vibrate' // 'vibrate'
] ]
// 存在兼容性的 API 列表 // 存在兼容性的 API 列表
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册