@dolphinweex/weex-harmony-transform 0.1.5 → 0.1.6
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.
- package/package.json +1 -1
- package/src/adapter.ts +3 -0
- package/weexTransform.js +2 -2
package/package.json
CHANGED
package/src/adapter.ts
CHANGED
|
@@ -255,6 +255,9 @@ let bridgeModule = {
|
|
|
255
255
|
setIdleTimerDisabled:function(options, callback){
|
|
256
256
|
weexModule.callNative('bridgeModule.setIdleTimerDisabled',{ 'options': options }, callback)
|
|
257
257
|
},
|
|
258
|
+
showControlPanelPage:function(options, callback, failCallback) {
|
|
259
|
+
weexModule.callNative('bridgeModule.showControlPanelPage', { 'options': options }, callback, undefined, failCallback)
|
|
260
|
+
},
|
|
258
261
|
}
|
|
259
262
|
|
|
260
263
|
let deviceInfo = {
|
package/weexTransform.js
CHANGED
|
@@ -25,7 +25,7 @@ module.exports = function({ types: t }) {
|
|
|
25
25
|
callee.object.name === 'weex'
|
|
26
26
|
) {
|
|
27
27
|
if (process.env.ISHARMONY === 'true') {
|
|
28
|
-
console.log('Transform harmony process.env.ISHARMONY:' + process.env.ISHARMONY);
|
|
28
|
+
// console.log('Transform harmony process.env.ISHARMONY:' + process.env.ISHARMONY);
|
|
29
29
|
// callee.object = t.identifier('weexExt')
|
|
30
30
|
|
|
31
31
|
const parentPath = astPath.parentPath?.parentPath
|
|
@@ -72,7 +72,7 @@ module.exports = function({ types: t }) {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
} else {
|
|
75
|
-
console.log('Transform not harmony process.env.ISHARMONY:' + process.env.ISHARMONY);
|
|
75
|
+
// console.log('Transform not harmony process.env.ISHARMONY:' + process.env.ISHARMONY);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
}
|