summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGhislain Loaec <gloaec@cadoles.com>2015-12-18 16:39:32 (GMT)
committerGhislain Loaec <gloaec@cadoles.com>2015-12-18 16:39:32 (GMT)
commitafee30b54b4f3ed4506987dfe4e86c3f1f18d523 (patch)
treea263ae25fdec74df4aa6d4f30f06c9333234e9f7
parent368eda6bb651cc222cb0ed91905ec314fe6c6993 (diff)
downloadmomo-afee30b54b4f3ed4506987dfe4e86c3f1f18d523.zip
momo-afee30b54b4f3ed4506987dfe4e86c3f1f18d523.tar.gz
momo-afee30b54b4f3ed4506987dfe4e86c3f1f18d523.tar.bz2
Add network status plugin - Ref #94031.0.9develop
-rw-r--r--README.md2
-rw-r--r--plugins/android.json11
2 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index 36f56dc..224f8d0 100644
--- a/README.md
+++ b/README.md
@@ -27,6 +27,7 @@ Install cordovas plugins:
phonegap plugin add cordova-plugin-zip
phonegap plugin add cordova-plugin-whitelist
phonegap plugin add cordova-plugin-statusbar
+ phonegap plugin add cordova-plugin-network-information
phonegap plugin add cordova-plugin-inappbrowser # optional
If plugin registry server seems to be down :'( use git instead ;)
@@ -36,6 +37,7 @@ If plugin registry server seems to be down :'( use git instead ;)
phonegap plugin add https://github.com/MobileChromeApps/cordova-plugin-zip.git
phonegap plugin add https://github.com/apache/cordova-plugin-whitelist.git
phonegap plugin add https://github.com/apache/cordova-plugin-statusbar.git
+ phonegap plugin add https://github.com/apache/cordova-plugin-network-information.git
phonegap plugin add https://github.com/apache/cordova-plugin-inappbrowser.git # optional
## Assets Management
diff --git a/plugins/android.json b/plugins/android.json
index c824100..c1ba5d2 100644
--- a/plugins/android.json
+++ b/plugins/android.json
@@ -31,6 +31,10 @@
"count": 1
},
{
+ "xml": "<feature name=\"NetworkStatus\"><param name=\"android-package\" value=\"org.apache.cordova.networkinformation.NetworkManager\" /></feature>",
+ "count": 1
+ },
+ {
"xml": "<feature name=\"StatusBar\"><param name=\"android-package\" value=\"org.apache.cordova.statusbar.StatusBar\" /><param name=\"onload\" value=\"true\" /></feature>",
"count": 1
},
@@ -53,6 +57,10 @@
{
"xml": "<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\" />",
"count": 2
+ },
+ {
+ "xml": "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\" />",
+ "count": 1
}
]
}
@@ -69,6 +77,9 @@
"cordova-plugin-inappbrowser": {
"PACKAGE_NAME": "com.cadoles.momo"
},
+ "cordova-plugin-network-information": {
+ "PACKAGE_NAME": "com.cadoles.momo"
+ },
"cordova-plugin-statusbar": {
"PACKAGE_NAME": "com.cadoles.momo"
},