From 83c34bb7d2045c016ce695edc2eaf9065e3ebd39 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Mon, 13 Sep 2021 09:57:52 -0500 Subject: [PATCH] Remove File Encryption - Archived --- .../plugins/file-encryption/index.ts | 54 ------------------- 1 file changed, 54 deletions(-) delete mode 100644 src/@ionic-native/plugins/file-encryption/index.ts diff --git a/src/@ionic-native/plugins/file-encryption/index.ts b/src/@ionic-native/plugins/file-encryption/index.ts deleted file mode 100644 index 37986d15c..000000000 --- a/src/@ionic-native/plugins/file-encryption/index.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - -/** - * @name File Encryption - * @description - * Simple file encryption for Cordova. - * - * @usage - * ```typescript - * import { FileEncryption } from '@ionic-native/file-encryption/ngx'; - * - * - * constructor(private fileEncryption: FileEncryption) { } - * - * ... - * - * this.fileEncryption.decrypt('assets/json/topSecret.json', 'secretKey'); - * - * this.fileEncryption.encrypt('assets/json/topSecret.json', 'secretKey'); - * - * ``` - */ -@Plugin({ - pluginName: 'FileEncryption', - plugin: 'cordova-safe', - pluginRef: 'cordova.plugins.disusered', - repo: 'https://github.com/disusered/cordova-safe', - platforms: ['Android', 'iOS'], -}) -@Injectable() -export class FileEncryption extends IonicNativePlugin { - /** - * Encrypt a file - * @param {string} file A string representing a local URI - * @param {string} key A key for the crypto operations - * @return {Promise} Returns a promise that resolves when something happens - */ - @Cordova() - encrypt(file: string, key: string): Promise { - return; - } - - /** - * Decrypt a file - * @param {string} file A string representing a local URI - * @param {string} key A key for the crypto operations - * @return {Promise} Returns a promise that resolves when something happens - */ - @Cordova() - decrypt(file: string, key: string): Promise { - return; - } -}