提交 7bf53618 编写于 作者: Y yurj26

补充平台差异

上级 ecb292dc
...@@ -32,7 +32,12 @@ ...@@ -32,7 +32,12 @@
}, },
"uni_modules": { "uni_modules": {
"uni-ext-api": { "uni-ext-api": {
"uni": ["getBatteryInfo", "getBatteryInfoSync"] "uni": {
"getBatteryInfo": "getBatteryInfo",
"getBatteryInfoSync": {
"web": false
}
}
}, },
"dependencies": [], "dependencies": [],
"encrypt": [], "encrypt": [],
......
export function getBatteryInfo(options) { export function getBatteryInfo(options) {
return my.getBatteryInfo(options) return my.getBatteryInfo(options)
} }
export function getBatteryInfoSync(options) {
return my.getBatteryInfoSync(options)
}
export function getBatteryInfo(options) { export function getBatteryInfo(options) {
return swan.getBatteryInfo(options) return swan.getBatteryInfo(options)
} }
export function getBatteryInfoSync(options) {
return swan.getBatteryInfoSync(options)
}
export function getBatteryInfo(options) { export function getBatteryInfo(options) {
return qq.getBatteryInfo(options) return qq.getBatteryInfo(options)
} }
export function getBatteryInfoSync(options) {
return qq.getBatteryInfoSync(options)
}
export function getBatteryInfo(options) { export function getBatteryInfo(options) {
return wx.getBatteryInfo(options) return wx.getBatteryInfo(options)
} }
export function getBatteryInfoSync(options) {
return wx.getBatteryInfoSync(options)
}
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"description": "UTS 实现内存警告监听", "description": "UTS 实现内存警告监听",
"keywords": [ "keywords": [
"onMemoryWarning" "onMemoryWarning"
], ],
"repository": "", "repository": "",
"engines": { "engines": {
"HBuilderX": "^3.6.11" "HBuilderX": "^3.6.11"
...@@ -31,17 +31,15 @@ ...@@ -31,17 +31,15 @@
"npmurl": "" "npmurl": ""
}, },
"uni_modules": { "uni_modules": {
"uni-ext-api":{ "uni-ext-api": {
"uni": { "uni": {
"onMemoryWarning": "onMemoryWarning", "onMemoryWarning": {
"offMemoryWarning":"offMemoryWarning" "web": false
}, },
"mp-weixin":false, "offMemoryWarning": {
"mp-alipay":false, "web": false
"mp-baidu":false, }
"mp-qq":false, }
"mp-kuaishou":false,
"mp-jd":false
}, },
"dependencies": [], "dependencies": [],
"encrypt": [], "encrypt": [],
......
...@@ -33,9 +33,16 @@ ...@@ -33,9 +33,16 @@
"uni_modules": { "uni_modules": {
"uni-ext-api":{ "uni-ext-api":{
"uni": { "uni": {
"onUserCaptureScreen": "onUserCaptureScreen", "onUserCaptureScreen": {
"offUserCaptureScreen": "offUserCaptureScreen", "web": false
"setUserCaptureScreen": "setUserCaptureScreen" },
"offUserCaptureScreen": {
"web": false
},
"setUserCaptureScreen": {
"web": false,
"mp-weixin": false
}
} }
}, },
"dependencies": [], "dependencies": [],
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"description": "wifi管理", "description": "wifi管理",
"keywords": [ "keywords": [
"wifi" "wifi"
], ],
"repository": "", "repository": "",
"engines": { "engines": {
"HBuilderX": "^3.6.11" "HBuilderX": "^3.6.11"
...@@ -31,19 +31,41 @@ ...@@ -31,19 +31,41 @@
"npmurl": "" "npmurl": ""
}, },
"uni_modules": { "uni_modules": {
"uni-ext-api":{ "uni-ext-api": {
"uni": { "uni": {
"startWifi": "startWifi", "startWifi": {
"stopWifi": "stopWifi", "web": false
"connectWifi":"connectWifi", },
"getConnectedWifi": "getConnectedWifi", "stopWifi": {
"getWifiList":"getWifiList", "web": false
"onGetWifiList":"onGetWifiList", },
"offGetWifiList":"offGetWifiList", "connectWifi": {
"onWifiConnected":"onWifiConnected", "web": false
"offWifiConnected":"offWifiConnected", },
"onWifiConnectedWithPartialInfo":"onWifiConnectedWithPartialInfo", "getConnectedWifi": {
"offWifiConnectedWithPartialInfo":"offWifiConnectedWithPartialInfo" "web": false
},
"getWifiList": {
"web": false
},
"onGetWifiList": {
"web": false
},
"offGetWifiList": {
"web": false
},
"onWifiConnected": {
"web": false
},
"offWifiConnected": {
"web": false
},
"onWifiConnectedWithPartialInfo": {
"web": false
},
"offWifiConnectedWithPartialInfo": {
"web": false
}
} }
}, },
"dependencies": [], "dependencies": [],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册