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,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 PromptsOptions {
/**
* a function to pass the user's decision whether to remember their choice of app.
* This will be passed a single boolean value indicating the user's decision.
@@ -21,6 +22,7 @@ export interface PromptsOptions {
*/
bodyText?: string;
/**
* text to display for the Yes button.
* Defaults to "Yes" if not specified.
@@ -35,6 +37,7 @@ export interface PromptsOptions {
}
export interface RememberChoiceOptions {
/**
* whether to remember user choice of app for next time, instead of asking again for user choice.
* `"prompt"` - Prompt user to decide whether to remember choice.
@@ -46,6 +49,7 @@ export interface RememberChoiceOptions {
*/
enabled?: boolean | string;
/**
* a function which asks the user whether to remember their choice of app.
* If this is defined, then the default dialog prompt will not be shown, allowing for a custom UI for asking the user.
@@ -99,6 +103,7 @@ export interface AppSelectionOptions {
}
export interface LaunchNavigatorOptions {
/**
* A callback to invoke when the navigation app is successfully launched.
*/
@@ -167,6 +172,7 @@ export interface LaunchNavigatorOptions {
*/
launchModeAppleMaps?: string;
/**
* If true, and input location type(s) doesn't match those required by the app, use geocoding to obtain the address/coords as required. Defaults to true.
*/
@@ -179,6 +185,7 @@ export interface LaunchNavigatorOptions {
}
export interface UserChoice {
/**
* Indicates whether a user choice exists for a preferred navigator app.
* @param callback - function to pass result to: will receive a boolean argument.
@@ -216,13 +223,13 @@ export interface UserPrompted {
* Sets flag indicating user has already been prompted whether to remember their choice a preferred navigator app.
* @param callback - function to call once operation is complete.
*/
set: (callback: () => void) => void;
set: ( callback: () => void) => void;
/**
* Clears flag which indicates if user has already been prompted whether to remember their choice a preferred navigator app.
* @param callback - function to call once operation is complete.
*/
clear: (callback: () => void) => void;
clear: ( callback: () => void) => void;
}
export interface AppSelection {
@@ -274,6 +281,7 @@ export interface AppSelection {
})
@Injectable()
export class LaunchNavigator extends IonicNativePlugin {
APP: any = {
USER_SELECT: 'user_select',
APPLE_MAPS: 'apple_maps',
@@ -308,12 +316,7 @@ export class LaunchNavigator extends IonicNativePlugin {
successIndex: 2,
errorIndex: 3
})
navigate(
destination: string | number[],
options?: LaunchNavigatorOptions
): Promise<any> {
return;
}
navigate(destination: string | number[], options?: LaunchNavigatorOptions): Promise<any> { return; }
/**
* Determines if the given app is installed and available on the current device.
@@ -321,18 +324,14 @@ export class LaunchNavigator extends IonicNativePlugin {
* @returns {Promise<any>}
*/
@Cordova()
isAppAvailable(app: string): Promise<any> {
return;
}
isAppAvailable(app: string): Promise<any> { return; }
/**
* Returns a list indicating which apps are installed and available on the current device.
* @returns {Promise<string[]>}
*/
@Cordova()
availableApps(): Promise<string[]> {
return;
}
availableApps(): Promise<string[]> { return; }
/**
* Returns the display name of the specified app.
@@ -340,9 +339,7 @@ export class LaunchNavigator extends IonicNativePlugin {
* @returns {string}
*/
@Cordova({ sync: true })
getAppDisplayName(app: string): string {
return;
}
getAppDisplayName(app: string): string { return; }
/**
* Returns list of supported apps on a given platform.
@@ -350,9 +347,7 @@ export class LaunchNavigator extends IonicNativePlugin {
* @returns {string[]}
*/
@Cordova({ sync: true })
getAppsForPlatform(platform: string): string[] {
return;
}
getAppsForPlatform(platform: string): string[] { return; }
/**
* Indicates if an app on a given platform supports specification of transport mode.
@@ -361,9 +356,7 @@ export class LaunchNavigator extends IonicNativePlugin {
* @returns {boolean}
*/
@Cordova({ sync: true })
supportsTransportMode(app: string, platform: string): boolean {
return;
}
supportsTransportMode(app: string, platform: string): boolean { return; }
/**
* Returns the list of transport modes supported by an app on a given platform.
@@ -372,9 +365,7 @@ export class LaunchNavigator extends IonicNativePlugin {
* @returns {string[]}
*/
@Cordova({ sync: true })
getTransportModes(app: string, platform: string): string[] {
return;
}
getTransportModes(app: string, platform: string): string[] { return; }
/**
* @param app {string}
@@ -382,9 +373,7 @@ export class LaunchNavigator extends IonicNativePlugin {
* @returns {boolean}
*/
@Cordova({ sync: true })
supportsDestName(app: string, platform: string): boolean {
return;
}
supportsDestName(app: string, platform: string): boolean { return; }
/**
* Indicates if an app on a given platform supports specification of start location.
@@ -393,9 +382,7 @@ export class LaunchNavigator extends IonicNativePlugin {
* @returns {boolean}
*/
@Cordova({ sync: true })
supportsStart(app: string, platform: string): boolean {
return;
}
supportsStart(app: string, platform: string): boolean { return; }
/**
* @param app {string}
@@ -403,9 +390,7 @@ export class LaunchNavigator extends IonicNativePlugin {
* @returns {boolean}
*/
@Cordova({ sync: true })
supportsStartName(app: string, platform: string): boolean {
return;
}
supportsStartName(app: string, platform: string): boolean { return; }
/**
* Indicates if an app on a given platform supports specification of launch mode.
@@ -415,19 +400,14 @@ export class LaunchNavigator extends IonicNativePlugin {
* @returns {boolean}
*/
@Cordova({ sync: true })
supportsLaunchMode(app: string, platform: string): boolean {
return;
}
supportsLaunchMode(app: string, platform: string): boolean { return; }
/**
* @param destination {string | number[]}
* @param options {LaunchNavigatorOptions}
*/
@Cordova({ sync: true })
userSelect(
destination: string | number[],
options: LaunchNavigatorOptions
): void {}
userSelect(destination: string | number[], options: LaunchNavigatorOptions): void {}
appSelection: AppSelection;
}