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

补充平台差异

上级 ecb292dc
......@@ -32,7 +32,12 @@
},
"uni_modules": {
"uni-ext-api": {
"uni": ["getBatteryInfo", "getBatteryInfoSync"]
"uni": {
"getBatteryInfo": "getBatteryInfo",
"getBatteryInfoSync": {
"web": false
}
}
},
"dependencies": [],
"encrypt": [],
......
export function getBatteryInfo(options) {
return my.getBatteryInfo(options)
}
export function getBatteryInfoSync(options) {
return my.getBatteryInfoSync(options)
}
export function getBatteryInfo(options) {
return swan.getBatteryInfo(options)
}
export function getBatteryInfoSync(options) {
return swan.getBatteryInfoSync(options)
}
export function getBatteryInfo(options) {
return qq.getBatteryInfo(options)
}
export function getBatteryInfoSync(options) {
return qq.getBatteryInfoSync(options)
}
export function getBatteryInfo(options) {
return wx.getBatteryInfo(options)
}
export function getBatteryInfoSync(options) {
return wx.getBatteryInfoSync(options)
}
......@@ -5,7 +5,7 @@
"description": "UTS 实现内存警告监听",
"keywords": [
"onMemoryWarning"
],
],
"repository": "",
"engines": {
"HBuilderX": "^3.6.11"
......@@ -31,18 +31,16 @@
"npmurl": ""
},
"uni_modules": {
"uni-ext-api":{
"uni": {
"onMemoryWarning": "onMemoryWarning",
"offMemoryWarning":"offMemoryWarning"
},
"mp-weixin":false,
"mp-alipay":false,
"mp-baidu":false,
"mp-qq":false,
"mp-kuaishou":false,
"mp-jd":false
},
"uni-ext-api": {
"uni": {
"onMemoryWarning": {
"web": false
},
"offMemoryWarning": {
"web": false
}
}
},
"dependencies": [],
"encrypt": [],
"platforms": {
......@@ -58,10 +56,10 @@
"App": {
"app-android": {
"minVersion": "19"
},
},
"app-ios": {
"minVersion": "9"
}
}
},
"H5-mobile": {
"Safari": "n",
......@@ -94,4 +92,4 @@
}
}
}
}
\ No newline at end of file
}
......@@ -33,9 +33,16 @@
"uni_modules": {
"uni-ext-api":{
"uni": {
"onUserCaptureScreen": "onUserCaptureScreen",
"offUserCaptureScreen": "offUserCaptureScreen",
"setUserCaptureScreen": "setUserCaptureScreen"
"onUserCaptureScreen": {
"web": false
},
"offUserCaptureScreen": {
"web": false
},
"setUserCaptureScreen": {
"web": false,
"mp-weixin": false
}
}
},
"dependencies": [],
......
......@@ -5,7 +5,7 @@
"description": "wifi管理",
"keywords": [
"wifi"
],
],
"repository": "",
"engines": {
"HBuilderX": "^3.6.11"
......@@ -31,21 +31,43 @@
"npmurl": ""
},
"uni_modules": {
"uni-ext-api":{
"uni": {
"startWifi": "startWifi",
"stopWifi": "stopWifi",
"connectWifi":"connectWifi",
"getConnectedWifi": "getConnectedWifi",
"getWifiList":"getWifiList",
"onGetWifiList":"onGetWifiList",
"offGetWifiList":"offGetWifiList",
"onWifiConnected":"onWifiConnected",
"offWifiConnected":"offWifiConnected",
"onWifiConnectedWithPartialInfo":"onWifiConnectedWithPartialInfo",
"offWifiConnectedWithPartialInfo":"offWifiConnectedWithPartialInfo"
}
},
"uni-ext-api": {
"uni": {
"startWifi": {
"web": false
},
"stopWifi": {
"web": false
},
"connectWifi": {
"web": false
},
"getConnectedWifi": {
"web": false
},
"getWifiList": {
"web": false
},
"onGetWifiList": {
"web": false
},
"offGetWifiList": {
"web": false
},
"onWifiConnected": {
"web": false
},
"offWifiConnected": {
"web": false
},
"onWifiConnectedWithPartialInfo": {
"web": false
},
"offWifiConnectedWithPartialInfo": {
"web": false
}
}
},
"dependencies": [],
"encrypt": [],
"platforms": {
......@@ -61,10 +83,10 @@
"App": {
"app-android": {
"minVersion": "19"
},
},
"app-ios": {
"minVersion": "9"
}
}
},
"H5-mobile": {
"Safari": "n",
......@@ -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.
先完成此消息的编辑!
想要评论请 注册