@dolphinweex/weex-harmony-transform 0.1.41 → 0.1.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/adapter.js +19 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dolphinweex/weex-harmony-transform",
3
- "version": "0.1.41",
3
+ "version": "0.1.43",
4
4
  "description": "weex harmony adapter",
5
5
  "main": "index.js",
6
6
  "files": [
package/src/adapter.js CHANGED
@@ -266,6 +266,9 @@ let bridgeModule = {
266
266
  getDeviceUUID:function(options, callback){
267
267
  weexModule.callNative('bridgeModule.getDeviceUUID',{ 'options': options }, callback)
268
268
  },
269
+ setPageOrientation:function(options, callback){
270
+ weexModule.callNative('bridgeModule.getDeviceUUID',{ 'options': options }, callback)
271
+ },
269
272
  startDownloadFile:function(options, callback, failCallback){
270
273
  weexModule.callNative('bridgeModule.startDownloadFile',{ 'options': options }, callback, undefined, failCallback)
271
274
  },
@@ -308,6 +311,12 @@ let bridgeModule = {
308
311
  getFileList:function(options, callback, failCallback) {
309
312
  weexModule.callNative('bridgeModule.getFileList', { 'options': options }, callback, undefined, failCallback)
310
313
  },
314
+ checkDeviceOTAUpdate:function(options, callback){
315
+ weexModule.callNative(`bridgeModule.checkDeviceOTAUpdate`,{ 'options': options }, callback, undefined, failCallback);
316
+ },
317
+ checkInstalledThirdPlatform:function(options, callback){
318
+ weexModule.callNative(`bridgeModule.checkInstalledThirdPlatform`,{ 'options': options }, callback, undefined, failCallback);
319
+ },
311
320
  }
312
321
 
313
322
  let aiSpeechModule = {
@@ -469,7 +478,10 @@ let iotLinkVideoModule = {
469
478
  },
470
479
  // 截取当前视频画面并保存到指定目录
471
480
  captureImage: function(options, callback, failCallback) {
472
- weexModule.callNative('iotLinkVideoModule.captureImage', { 'options': options }, callback, undefined, failCallback)
481
+ if(options.refId){
482
+ options.refId.captureImage(options, callback, failCallback)
483
+ }
484
+ // weexModule.callNative('iotLinkVideoModule.captureImage', { 'options': options }, callback, undefined, failCallback)
473
485
  },
474
486
  // 根据deviceName获取播放链接
475
487
  getUrlForHttpFlv: function(options, callback, failCallback) {
@@ -526,7 +538,9 @@ let ipcLiveModule = {
526
538
  weexModule.callNative('ipcLiveModule.changeMicrophoneStatus', { 'options': options }, callback, undefined, failCallback)
527
539
  },
528
540
  captureImage: function(options, callback, failCallback) {
529
- weexModule.callNative('ipcLiveModule.captureImage', { 'options': options }, callback, undefined, failCallback)
541
+ if(options.refId){
542
+ options.refId.captureImage(options, callback, failCallback)
543
+ }
530
544
  },
531
545
  getUrlForHttpFlv: function(options, callback, failCallback) {
532
546
  weexModule.callNative('ipcLiveModule.getUrlForHttpFlv', { 'options': options }, callback, undefined, failCallback)
@@ -857,6 +871,9 @@ let mideaAudio = {
857
871
  }
858
872
  let singleBlueToothModule = {
859
873
  name: 'singleBlueToothModule',
874
+ searchSubDevice: function (param, callback, failCallback) {
875
+ weexModule.callNative('singleBlueToothModule.searchSubDevice', { 'options': param }, callback, undefined, failCallback)
876
+ },
860
877
  getBlueStatus: function (param, callback, failCallback) {
861
878
  weexModule.callNative('singleBlueToothModule.getBlueStatus', { 'options': param }, callback, undefined, failCallback)
862
879
  },