Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/dcloudio/uni-app into alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Sep 23, 2019
2 parents f51b016 + ab5f0d4 commit a219207
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions packages/uni-mp-toutiao/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,21 +386,16 @@ var previewImage = {

// 不支持的 API 列表
const todos = [
'getBackgroundAudioManager',
'createCameraContext',
'createLivePlayerContext',
'getSavedFileInfo',
'openDocument',
'chooseLocation',
'createMapContext',
'canIUse',
'onMemoryWarning',
'onGyroscopeChange',
'startGyroscope',
'stopGyroscope',
'setScreenBrightness',
'getScreenBrightness',
'onUserCaptureScreen',
'addPhoneContact',
'openBluetoothAdapter',
'startBluetoothDevicesDiscovery',
Expand Down Expand Up @@ -439,8 +434,6 @@ const todos = [
'setBackgroundColor',
'setBackgroundTextStyle',
'chooseInvoiceTitle',
'navigateToMiniProgram',
'navigateBackMiniProgram',
'addTemplate',
'deleteTemplate',
'getTemplateLibraryById',
Expand All @@ -450,13 +443,12 @@ const todos = [
'setEnableDebug',
'onWindowResize',
'offWindowResize',
'compressImage',
'createOffscreenCanvas',
'vibrate'
];

// 存在兼容性的 API 列表
// 头条小程序不支持canIUses
// 头条小程序自1.35.0+支持canIUses
const canIUses = [
// 'createIntersectionObserver',
// 'getSavedFileList',
Expand All @@ -472,6 +464,13 @@ const canIUses = [
// 'onSocketClose',
// 'getExtConfig',
// 'getExtConfigSync',
// 'navigateToMiniProgram',
// 'navigateBackMiniProgram',
// 'compressImage',
// 'chooseLocation',
// 'openDocument',
// 'onUserCaptureScreen',
// 'getBackgroundAudioManager',
];

// 需要做转换的 API 列表
Expand Down

0 comments on commit a219207

Please sign in to comment.