From bc89bfd27fc10077fe237725492208ac526c0542 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Mon, 13 Sep 2021 12:59:42 -0500 Subject: [PATCH] Removed sim - broken --- src/@ionic-native/plugins/sim/index.ts | 74 -------------------------- 1 file changed, 74 deletions(-) delete mode 100644 src/@ionic-native/plugins/sim/index.ts diff --git a/src/@ionic-native/plugins/sim/index.ts b/src/@ionic-native/plugins/sim/index.ts deleted file mode 100644 index 56c7f61d4..000000000 --- a/src/@ionic-native/plugins/sim/index.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - -/** - * @name Sim - * @description - * Gets info from the Sim card like the carrier name, mcc, mnc and country code and other system dependent info. - * - * Requires Cordova plugin: `cordova-plugin-sim`. For more info, please see the [Cordova Sim docs](https://github.com/pbakondy/cordova-plugin-sim). - * - * @usage - * ```typescript - * import { Sim } from '@ionic-native/sim/ngx'; - * - * - * constructor(private sim: Sim) { } - * - * ... - * - * this.sim.getSimInfo().then( - * (info) => console.log('Sim info: ', info), - * (err) => console.log('Unable to get sim info: ', err) - * ); - * - * this.sim.hasReadPermission().then( - * (info) => console.log('Has permission: ', info) - * ); - * - * this.sim.requestReadPermission().then( - * () => console.log('Permission granted'), - * () => console.log('Permission denied') - * ); - * ``` - */ -@Plugin({ - pluginName: 'Sim', - plugin: 'cordova-plugin-sim', - pluginRef: 'plugins.sim', - repo: 'https://github.com/pbakondy/cordova-plugin-sim', - platforms: ['Android', 'iOS', 'Windows', 'Windows Phone'], -}) -@Injectable() -export class Sim extends IonicNativePlugin { - /** - * Returns info from the SIM card. - * @returns {Promise} - */ - @Cordova() - getSimInfo(): Promise { - return; - } - - /** - * Check permission - * @returns {Promise} - */ - @Cordova({ - platforms: ['Android'], - }) - hasReadPermission(): Promise { - return; - } - - /** - * Request permission - * @returns {Promise} - */ - @Cordova({ - platforms: ['Android'], - }) - requestReadPermission(): Promise { - return; - } -}