From 02da37921275d119b592507c7cc9cc1da5f776d6 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Mon, 13 Sep 2021 13:43:31 -0500 Subject: [PATCH] Removed app-launcher - capacitor --- .../plugins/app-launcher/index.ts | 66 ------------------- 1 file changed, 66 deletions(-) delete mode 100644 src/@ionic-native/plugins/app-launcher/index.ts diff --git a/src/@ionic-native/plugins/app-launcher/index.ts b/src/@ionic-native/plugins/app-launcher/index.ts deleted file mode 100644 index 9356e1095..000000000 --- a/src/@ionic-native/plugins/app-launcher/index.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - -export interface AppLauncherOptions { - uri?: string; - packageName?: string; -} - -/** - * @name App Launcher - * @description - * Simple Cordova plugin to see if other apps are installed and launch them. - * - * @usage - * ```typescript - * import { AppLauncher, AppLauncherOptions } from '@ionic-native/app-launcher/ngx'; - * import { Platform } from '@ionic/angular'; - * - * constructor(private appLauncher: AppLauncher, private platform: Platform) { } - * - * ... - * - * const options: AppLauncherOptions = { - * } - * - * if(this.platform.is('ios')) { - * options.uri = 'fb://' - * } else { - * options.packageName = 'com.facebook.katana' - * } - * - * this.appLauncher.canLaunch(options) - * .then((canLaunch: boolean) => console.log('Facebook is available')) - * .catch((error: any) => console.error('Facebook is not available')); - * - * ``` - */ -@Plugin({ - pluginName: 'AppLauncher', - plugin: 'cordova-plugin-app-launcher', - pluginRef: 'window.plugins.launcher', - repo: 'https://github.com/nchutchind/cordova-plugin-app-launcher', - platforms: ['Android', 'iOS'], -}) -@Injectable() -export class AppLauncher extends IonicNativePlugin { - /** - * Check if any apps are installed that can launch via a specified URI or Package Name. - * @param options App Launcher options - * @return {Promise} Returns a promise that resolves if the app is installed - */ - @Cordova() - canLaunch(options: AppLauncherOptions): Promise { - return; - } - - /** - * Launches the app via a specified URI or Package Name - * @param options App Launcher options - * @return {Promise} Returns a promise that resolves the launched app - */ - @Cordova() - launch(options: AppLauncherOptions): Promise { - return; - } -}