提交 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,18 +31,16 @@ ...@@ -31,18 +31,16 @@
"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": [],
"platforms": { "platforms": {
...@@ -58,10 +56,10 @@ ...@@ -58,10 +56,10 @@
"App": { "App": {
"app-android": { "app-android": {
"minVersion": "19" "minVersion": "19"
}, },
"app-ios": { "app-ios": {
"minVersion": "9" "minVersion": "9"
} }
}, },
"H5-mobile": { "H5-mobile": {
"Safari": "n", "Safari": "n",
...@@ -94,4 +92,4 @@ ...@@ -94,4 +92,4 @@
} }
} }
} }
} }
\ No newline at end of file
...@@ -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,21 +31,43 @@ ...@@ -31,21 +31,43 @@
"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": [],
"encrypt": [], "encrypt": [],
"platforms": { "platforms": {
...@@ -61,10 +83,10 @@ ...@@ -61,10 +83,10 @@
"App": { "App": {
"app-android": { "app-android": {
"minVersion": "19" "minVersion": "19"
}, },
"app-ios": { "app-ios": {
"minVersion": "9" "minVersion": "9"
} }
}, },
"H5-mobile": { "H5-mobile": {
"Safari": "n", "Safari": "n",
...@@ -97,4 +119,4 @@ ...@@ -97,4 +119,4 @@
} }
} }
} }
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册