Revert "chore(package): bump dependencies and lint rules"

This reverts commit 21ad4734fa.
This commit is contained in:
Daniel
2018-03-16 22:04:01 +01:00
parent 21ad4734fa
commit 6c938bfdb7
178 changed files with 4221 additions and 10592 deletions
+43 -98
View File
@@ -1,7 +1,8 @@
import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
export interface HotspotConnectionInfo {
/**
* The service set identifier (SSID) of the current 802.11 network.
*/
@@ -26,9 +27,11 @@ export interface HotspotConnectionInfo {
* Each configured network has a unique small integer ID, used to identify the network when performing operations on the supplicant.
*/
networkID: string;
}
export interface HotspotNetwork {
/**
* Human readable network name
*/
@@ -58,8 +61,10 @@ export interface HotspotNetwork {
* Describes the authentication, key management, and encryption schemes supported by the access point.
*/
capabilities: string;
}
export interface HotspotNetworkConfig {
/**
* Device IP Address
*/
@@ -79,9 +84,11 @@ export interface HotspotNetworkConfig {
* Gateway MAC Address
*/
gatewayMacAddress: string;
}
export interface HotspotDevice {
/**
* Hotspot IP Address
*/
@@ -91,6 +98,7 @@ export interface HotspotDevice {
* Hotspot MAC Address
*/
mac: string;
}
/**
@@ -126,21 +134,18 @@ export interface HotspotDevice {
})
@Injectable()
export class Hotspot extends IonicNativePlugin {
/**
* @returns {Promise<boolean>}
*/
@Cordova()
isAvailable(): Promise<boolean> {
return;
}
/**
* @returns {Promise<boolean>}
*/
@Cordova()
toggleWifi(): Promise<boolean> {
return;
}
isAvailable(): Promise<boolean> { return; }
/**
* @returns {Promise<boolean>}
*/
@Cordova()
toggleWifi(): Promise<boolean> { return; }
/**
* Configures and starts hotspot with SSID and Password
@@ -152,9 +157,7 @@ export class Hotspot extends IonicNativePlugin {
* @returns {Promise<void>} - Promise to call once hotspot is started, or reject upon failure
*/
@Cordova()
createHotspot(ssid: string, mode: string, password: string): Promise<void> {
return;
}
createHotspot(ssid: string, mode: string, password: string): Promise<void> { return; }
/**
* Turns on Access Point
@@ -162,9 +165,7 @@ export class Hotspot extends IonicNativePlugin {
* @returns {Promise<boolean>} - true if AP is started
*/
@Cordova()
startHotspot(): Promise<boolean> {
return;
}
startHotspot(): Promise<boolean> { return; }
/**
* Configures hotspot with SSID and Password
@@ -176,13 +177,7 @@ export class Hotspot extends IonicNativePlugin {
* @returns {Promise<void>} - Promise to call when hotspot is configured, or reject upon failure
*/
@Cordova()
configureHotspot(
ssid: string,
mode: string,
password: string
): Promise<void> {
return;
}
configureHotspot(ssid: string, mode: string, password: string): Promise<void> { return; }
/**
* Turns off Access Point
@@ -190,9 +185,7 @@ export class Hotspot extends IonicNativePlugin {
* @returns {Promise<boolean>} - Promise to turn off the hotspot, true on success, false on failure
*/
@Cordova()
stopHotspot(): Promise<boolean> {
return;
}
stopHotspot(): Promise<boolean> { return; }
/**
* Checks if hotspot is enabled
@@ -200,17 +193,13 @@ export class Hotspot extends IonicNativePlugin {
* @returns {Promise<void>} - Promise that hotspot is enabled, rejected if it is not enabled
*/
@Cordova()
isHotspotEnabled(): Promise<void> {
return;
}
isHotspotEnabled(): Promise<void> { return; }
/**
* @returns {Promise<Array<HotspotDevice>>}
*/
@Cordova()
getAllHotspotDevices(): Promise<Array<HotspotDevice>> {
return;
}
getAllHotspotDevices(): Promise<Array<HotspotDevice>> { return; }
/**
* Connect to a WiFi network
@@ -224,9 +213,7 @@ export class Hotspot extends IonicNativePlugin {
* Promise that connection to the WiFi network was successfull, rejected if unsuccessful
*/
@Cordova()
connectToWifi(ssid: string, password: string): Promise<void> {
return;
}
connectToWifi(ssid: string, password: string): Promise<void> { return; }
/**
* Connect to a WiFi network
@@ -244,14 +231,7 @@ export class Hotspot extends IonicNativePlugin {
* Promise that connection to the WiFi network was successfull, rejected if unsuccessful
*/
@Cordova()
connectToWifiAuthEncrypt(
ssid: string,
password: string,
authentication: string,
encryption: Array<string>
): Promise<void> {
return;
}
connectToWifiAuthEncrypt(ssid: string, password: string, authentication: string, encryption: Array<string>): Promise<void> { return; }
/**
* Add a WiFi network
@@ -267,9 +247,7 @@ export class Hotspot extends IonicNativePlugin {
* Promise that adding the WiFi network was successfull, rejected if unsuccessful
*/
@Cordova()
addWifiNetwork(ssid: string, mode: string, password: string): Promise<void> {
return;
}
addWifiNetwork(ssid: string, mode: string, password: string): Promise<void> { return; }
/**
* Remove a WiFi network
@@ -281,105 +259,79 @@ export class Hotspot extends IonicNativePlugin {
* Promise that removing the WiFi network was successfull, rejected if unsuccessful
*/
@Cordova()
removeWifiNetwork(ssid: string): Promise<void> {
return;
}
removeWifiNetwork(ssid: string): Promise<void> { return; }
/**
* @returns {Promise<boolean>}
*/
@Cordova()
isConnectedToInternet(): Promise<boolean> {
return;
}
isConnectedToInternet(): Promise<boolean> { return; }
/**
* @returns {Promise<boolean>}
*/
@Cordova()
isConnectedToInternetViaWifi(): Promise<boolean> {
return;
}
isConnectedToInternetViaWifi(): Promise<boolean> { return; }
/**
* @returns {Promise<boolean>}
*/
@Cordova()
isWifiOn(): Promise<boolean> {
return;
}
isWifiOn(): Promise<boolean> { return; }
/**
* @returns {Promise<boolean>}
*/
@Cordova()
isWifiSupported(): Promise<boolean> {
return;
}
isWifiSupported(): Promise<boolean> { return; }
/**
* @returns {Promise<boolean>}
*/
@Cordova()
isWifiDirectSupported(): Promise<boolean> {
return;
}
isWifiDirectSupported(): Promise<boolean> { return; }
/**
* @returns {Promise<Array<HotspotNetwork>>}
*/
@Cordova()
scanWifi(): Promise<Array<HotspotNetwork>> {
return;
}
scanWifi(): Promise<Array<HotspotNetwork>> { return; }
/**
* @returns {Promise<Array<HotspotNetwork>>}
*/
@Cordova()
scanWifiByLevel(): Promise<Array<HotspotNetwork>> {
return;
}
scanWifiByLevel(): Promise<Array<HotspotNetwork>> { return; }
/**
* @returns {Promise<any>}
*/
@Cordova()
startWifiPeriodicallyScan(interval: number, duration: number): Promise<any> {
return;
}
startWifiPeriodicallyScan(interval: number, duration: number): Promise<any> { return; }
/**
* @returns {Promise<any>}
*/
@Cordova()
stopWifiPeriodicallyScan(): Promise<any> {
return;
}
stopWifiPeriodicallyScan(): Promise<any> { return; }
/**
* @returns {Promise<HotspotNetworkConfig>}
*/
@Cordova()
getNetConfig(): Promise<HotspotNetworkConfig> {
return;
}
getNetConfig(): Promise<HotspotNetworkConfig> { return; }
/**
* @returns {Promise<HotspotConnectionInfo>}
*/
@Cordova()
getConnectionInfo(): Promise<HotspotConnectionInfo> {
return;
}
getConnectionInfo(): Promise<HotspotConnectionInfo> { return; }
/**
* @returns {Promise<string>}
*/
@Cordova()
pingHost(ip: string): Promise<string> {
return;
}
pingHost(ip: string): Promise<string> { return; }
/**
* Gets MAC Address associated with IP Address from ARP File
@@ -389,9 +341,7 @@ export class Hotspot extends IonicNativePlugin {
* @returns {Promise<string>} - A Promise for the MAC Address
*/
@Cordova()
getMacAddressOfHost(ip: string): Promise<string> {
return;
}
getMacAddressOfHost(ip: string): Promise<string> { return; }
/**
* Checks if IP is live using DNS
@@ -401,9 +351,7 @@ export class Hotspot extends IonicNativePlugin {
* @returns {Promise<boolean>} - A Promise for whether the IP Address is reachable
*/
@Cordova()
isDnsLive(ip: string): Promise<boolean> {
return;
}
isDnsLive(ip: string): Promise<boolean> { return; }
/**
* Checks if IP is live using socket And PORT
@@ -413,9 +361,7 @@ export class Hotspot extends IonicNativePlugin {
* @returns {Promise<boolean>} - A Promise for whether the IP Address is reachable
*/
@Cordova()
isPortLive(ip: string): Promise<boolean> {
return;
}
isPortLive(ip: string): Promise<boolean> { return; }
/**
* Checks if device is rooted
@@ -423,7 +369,6 @@ export class Hotspot extends IonicNativePlugin {
* @returns {Promise<boolean>} - A Promise for whether the device is rooted
*/
@Cordova()
isRooted(): Promise<boolean> {
return;
}
isRooted(): Promise<boolean> { return; }
}