CB-8384 Add Windows section to Network Information plugin

This commit is contained in:
sgrebnov 2015-01-30 14:57:10 +03:00
parent 928efea0d4
commit fb608698e5
2 changed files with 9 additions and 1 deletions

View File

@ -145,7 +145,14 @@ xmlns:android="http://schemas.android.com/apk/res/android"
<!-- windows8 --> <!-- windows8 -->
<platform name="windows8"> <platform name="windows8">
<js-module src="src/windows8/NetworkInfoProxy.js" name="NetworkInfoProxy"> <js-module src="src/windows/NetworkInfoProxy.js" name="NetworkInfoProxy">
<merges target="" />
</js-module>
</platform>
<!-- windows -->
<platform name="windows">
<js-module src="src/windows/NetworkInfoProxy.js" name="NetworkInfoProxy">
<merges target="" /> <merges target="" />
</js-module> </js-module>
</platform> </platform>

View File

@ -47,6 +47,7 @@ module.exports = {
connectionType = Connection.NONE; connectionType = Connection.NONE;
} }
else { else {
// https://msdn.microsoft.com/en-us/library/windows/apps/windows.networking.connectivity.networkadapter.ianainterfacetype
switch (interfaceType) { switch (interfaceType) {
case 71: case 71:
connectionType = Connection.WIFI; connectionType = Connection.WIFI;