diff --git a/uni_modules/uni-getbatteryinfo/package.json b/uni_modules/uni-getbatteryinfo/package.json index 094b6ba10af62c8c059abc9b878820be1963484a..7cdaaeb618eec1a4c246ced3b606bb5a652c73c1 100644 --- a/uni_modules/uni-getbatteryinfo/package.json +++ b/uni_modules/uni-getbatteryinfo/package.json @@ -32,7 +32,12 @@ }, "uni_modules": { "uni-ext-api": { - "uni": ["getBatteryInfo", "getBatteryInfoSync"] + "uni": { + "getBatteryInfo": "getBatteryInfo", + "getBatteryInfoSync": { + "web": false + } + } }, "dependencies": [], "encrypt": [], diff --git a/uni_modules/uni-getbatteryinfo/utssdk/mp-alipay/index.js b/uni_modules/uni-getbatteryinfo/utssdk/mp-alipay/index.js index 4fdced2ee3aa9d80eafdffdc5f06d522c7a1f08a..473f1a07d3f5b227f9bb1caa1099ddfd99d254da 100644 --- a/uni_modules/uni-getbatteryinfo/utssdk/mp-alipay/index.js +++ b/uni_modules/uni-getbatteryinfo/utssdk/mp-alipay/index.js @@ -1,3 +1,6 @@ export function getBatteryInfo(options) { return my.getBatteryInfo(options) } +export function getBatteryInfoSync(options) { + return my.getBatteryInfoSync(options) +} diff --git a/uni_modules/uni-getbatteryinfo/utssdk/mp-baidu/index.js b/uni_modules/uni-getbatteryinfo/utssdk/mp-baidu/index.js index 5944a774bdc27de75cbe441c1af274dfef4ab8ac..1ee373a514964b33fd47e1bd59170fb22661c0d9 100644 --- a/uni_modules/uni-getbatteryinfo/utssdk/mp-baidu/index.js +++ b/uni_modules/uni-getbatteryinfo/utssdk/mp-baidu/index.js @@ -1,3 +1,6 @@ export function getBatteryInfo(options) { return swan.getBatteryInfo(options) } +export function getBatteryInfoSync(options) { + return swan.getBatteryInfoSync(options) +} diff --git a/uni_modules/uni-getbatteryinfo/utssdk/mp-qq/index.js b/uni_modules/uni-getbatteryinfo/utssdk/mp-qq/index.js index 06287bc468d46e1c12f79e455a934fcbea7c52c5..6eabfcff9737dcd28de56bdb67dbb9c96287dcb8 100644 --- a/uni_modules/uni-getbatteryinfo/utssdk/mp-qq/index.js +++ b/uni_modules/uni-getbatteryinfo/utssdk/mp-qq/index.js @@ -1,3 +1,6 @@ export function getBatteryInfo(options) { return qq.getBatteryInfo(options) } +export function getBatteryInfoSync(options) { + return qq.getBatteryInfoSync(options) +} diff --git a/uni_modules/uni-getbatteryinfo/utssdk/mp-weixin/index.js b/uni_modules/uni-getbatteryinfo/utssdk/mp-weixin/index.js index 5124b3de21a08a351d2d7eb631aaf96a600aa147..3bdfa9184b26d8df7a53aa9eb61c1ef37d66a8a9 100644 --- a/uni_modules/uni-getbatteryinfo/utssdk/mp-weixin/index.js +++ b/uni_modules/uni-getbatteryinfo/utssdk/mp-weixin/index.js @@ -1,3 +1,6 @@ export function getBatteryInfo(options) { return wx.getBatteryInfo(options) } +export function getBatteryInfoSync(options) { + return wx.getBatteryInfoSync(options) +} diff --git a/uni_modules/uni-memorywarning/package.json b/uni_modules/uni-memorywarning/package.json index aa015a936ea73d8161f8d52e97c5bb3da080584c..9bda0f8f3a00c636c1afcc32507cf221ac38d8ea 100644 --- a/uni_modules/uni-memorywarning/package.json +++ b/uni_modules/uni-memorywarning/package.json @@ -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 +} diff --git a/uni_modules/uni-usercapturescreen/package.json b/uni_modules/uni-usercapturescreen/package.json index f1e4ca2eaedcc64ede2d0c88fc5449574a426877..6b099cfa62b02781730789c0102b698f2305ddd3 100644 --- a/uni_modules/uni-usercapturescreen/package.json +++ b/uni_modules/uni-usercapturescreen/package.json @@ -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": [], diff --git a/uni_modules/uni-wifi/package.json b/uni_modules/uni-wifi/package.json index b44e757fe040858cc150902d83ea207a4e6df987..c4a2ce639111079ab7342a30884d2435be5f9ca3 100644 --- a/uni_modules/uni-wifi/package.json +++ b/uni_modules/uni-wifi/package.json @@ -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 +}