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
@@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
import { Observable } from 'rxjs/Observable';
/**
@@ -39,6 +39,7 @@ import { Observable } from 'rxjs/Observable';
})
@Injectable()
export class BluetoothSerial extends IonicNativePlugin {
/**
* Connect to a Bluetooth device
* @param {string} macAddress_or_uuid Identifier of the remote device
@@ -49,9 +50,7 @@ export class BluetoothSerial extends IonicNativePlugin {
observable: true,
clearFunction: 'disconnect'
})
connect(macAddress_or_uuid: string): Observable<any> {
return;
}
connect(macAddress_or_uuid: string): Observable<any> { return; }
/**
* Connect insecurely to a Bluetooth device
@@ -63,18 +62,14 @@ export class BluetoothSerial extends IonicNativePlugin {
observable: true,
clearFunction: 'disconnect'
})
connectInsecure(macAddress: string): Observable<any> {
return;
}
connectInsecure(macAddress: string): Observable<any> { return; }
/**
* Disconnect from the connected device
* @returns {Promise<any>}
*/
@Cordova()
disconnect(): Promise<any> {
return;
}
disconnect(): Promise<any> { return; }
/**
* Writes data to the serial port
@@ -84,9 +79,7 @@ export class BluetoothSerial extends IonicNativePlugin {
@Cordova({
platforms: ['Android', 'iOS', 'Windows Phone']
})
write(data: any): Promise<any> {
return;
}
write(data: any): Promise<any> { return; }
/**
* Gets the number of bytes of data available
@@ -94,10 +87,7 @@ export class BluetoothSerial extends IonicNativePlugin {
*/
@Cordova({
platforms: ['Android', 'iOS', 'Windows Phone']
})
available(): Promise<any> {
return;
}
}) available(): Promise<any> { return; }
/**
* Reads data from the buffer
@@ -106,9 +96,7 @@ export class BluetoothSerial extends IonicNativePlugin {
@Cordova({
platforms: ['Android', 'iOS', 'Windows Phone']
})
read(): Promise<any> {
return;
}
read(): Promise<any> { return; }
/**
* Reads data from the buffer until it reaches a delimiter
@@ -118,9 +106,7 @@ export class BluetoothSerial extends IonicNativePlugin {
@Cordova({
platforms: ['Android', 'iOS', 'Windows Phone']
})
readUntil(delimiter: string): Promise<any> {
return;
}
readUntil(delimiter: string): Promise<any> { return; }
/**
* Subscribe to be notified when data is received
@@ -132,9 +118,7 @@ export class BluetoothSerial extends IonicNativePlugin {
observable: true,
clearFunction: 'unsubscribe'
})
subscribe(delimiter: string): Observable<any> {
return;
}
subscribe(delimiter: string): Observable<any> { return; }
/**
* Subscribe to be notified when data is received
@@ -145,9 +129,7 @@ export class BluetoothSerial extends IonicNativePlugin {
observable: true,
clearFunction: 'unsubscribeRawData'
})
subscribeRawData(): Observable<any> {
return;
}
subscribeRawData(): Observable<any> { return; }
/**
* Clears data in buffer
@@ -156,9 +138,7 @@ export class BluetoothSerial extends IonicNativePlugin {
@Cordova({
platforms: ['Android', 'iOS', 'Windows Phone']
})
clear(): Promise<any> {
return;
}
clear(): Promise<any> { return; }
/**
* Lists bonded devices
@@ -167,9 +147,7 @@ export class BluetoothSerial extends IonicNativePlugin {
@Cordova({
platforms: ['Android', 'iOS', 'Windows Phone']
})
list(): Promise<any> {
return;
}
list(): Promise<any> { return; }
/**
* Reports if bluetooth is enabled
@@ -178,9 +156,7 @@ export class BluetoothSerial extends IonicNativePlugin {
@Cordova({
platforms: ['Android', 'iOS', 'Windows Phone']
})
isEnabled(): Promise<any> {
return;
}
isEnabled(): Promise<any> { return; }
/**
* Reports the connection status
@@ -189,9 +165,7 @@ export class BluetoothSerial extends IonicNativePlugin {
@Cordova({
platforms: ['Android', 'iOS', 'Windows Phone']
})
isConnected(): Promise<any> {
return;
}
isConnected(): Promise<any> { return; }
/**
* Reads the RSSI from the connected peripheral
@@ -200,9 +174,7 @@ export class BluetoothSerial extends IonicNativePlugin {
@Cordova({
platforms: ['Android', 'iOS', 'Windows Phone']
})
readRSSI(): Promise<any> {
return;
}
readRSSI(): Promise<any> { return; }
/**
* Show the Bluetooth settings on the device
@@ -211,9 +183,7 @@ export class BluetoothSerial extends IonicNativePlugin {
@Cordova({
platforms: ['Android', 'iOS', 'Windows Phone']
})
showBluetoothSettings(): Promise<any> {
return;
}
showBluetoothSettings(): Promise<any> { return; }
/**
* Enable Bluetooth on the device
@@ -222,9 +192,7 @@ export class BluetoothSerial extends IonicNativePlugin {
@Cordova({
platforms: ['Android', 'iOS', 'Windows Phone']
})
enable(): Promise<any> {
return;
}
enable(): Promise<any> { return; }
/**
* Discover unpaired devices
@@ -233,9 +201,7 @@ export class BluetoothSerial extends IonicNativePlugin {
@Cordova({
platforms: ['Android', 'iOS', 'Windows Phone']
})
discoverUnpaired(): Promise<any> {
return;
}
discoverUnpaired(): Promise<any> { return; }
/**
* Subscribe to be notified on Bluetooth device discovery. Discovery process must be initiated with the `discoverUnpaired` function.
@@ -246,9 +212,7 @@ export class BluetoothSerial extends IonicNativePlugin {
observable: true,
clearFunction: 'clearDeviceDiscoveredListener'
})
setDeviceDiscoveredListener(): Observable<any> {
return;
}
setDeviceDiscoveredListener(): Observable<any> { return; }
/**
* Sets the human readable device name that is broadcasted to other devices
@@ -258,7 +222,7 @@ export class BluetoothSerial extends IonicNativePlugin {
platforms: ['Android'],
sync: true
})
setName(newName: string): void {}
setName(newName: string): void { }
/**
* Makes the device discoverable by other devices
@@ -268,5 +232,6 @@ export class BluetoothSerial extends IonicNativePlugin {
platforms: ['Android'],
sync: true
})
setDiscoverable(discoverableDuration: number): void {}
setDiscoverable(discoverableDuration: number): void { }
}