修改屏幕亮度和图标
diff --git a/platforms/ios/ios.json b/platforms/ios/ios.json
index 3a70ab7..7b9d86f 100644
--- a/platforms/ios/ios.json
+++ b/platforms/ios/ios.json
@@ -79,6 +79,10 @@
{
"xml": "<preference name=\"CordovaWebViewEngine\" value=\"CDVWKWebViewEngine\" />",
"count": 1
+ },
+ {
+ "xml": "<feature name=\"Brightness\"><param name=\"ios-package\" value=\"Brightness\" /></feature>",
+ "count": 1
}
]
}
@@ -206,6 +210,9 @@
},
"cordova-plugin-wkwebview-engine": {
"PACKAGE_NAME": "$(PRODUCT_BUNDLE_IDENTIFIER)"
+ },
+ "cordova-plugin-brightness": {
+ "PACKAGE_NAME": "$(PRODUCT_BUNDLE_IDENTIFIER)"
}
},
"dependent_plugins": {},
@@ -561,6 +568,14 @@
"clobbers": [
"window.WkWebView"
]
+ },
+ {
+ "id": "cordova-plugin-brightness.Brightness",
+ "file": "plugins/cordova-plugin-brightness/www/brightness.js",
+ "pluginId": "cordova-plugin-brightness",
+ "clobbers": [
+ "cordova.plugins.brightness"
+ ]
}
],
"plugin_metadata": {
@@ -580,6 +595,7 @@
"cordova-plugin-jcore": "1.3.0",
"jpush-phonegap-plugin": "3.7.2",
"cordova-plugin-app-version": "0.1.9",
- "cordova-plugin-wkwebview-engine": "1.2.1"
+ "cordova-plugin-wkwebview-engine": "1.2.1",
+ "cordova-plugin-brightness": "0.1.5"
}
}