From 71349655c0e0f1d0c62137fb9ecc2308ae904bbb Mon Sep 17 00:00:00 2001 From: Jason Kim Date: Mon, 10 Jul 2017 02:15:56 -0700 Subject: [PATCH] docs(image-resizer): update plugin source (#1781) * Update image-resizer index.ts Running original command "ionic cordova plugin add https://github.com/protonet/cordova-plugin-image-resizer.git" will throw a Cordova error shown below. Installing the plugin via the plugin cordova id (per the original repo's package.json) will allow this plugin to install correctly and work with the ionic native "image-resizer" An error occurred while running ionic cordova plugin add https://github.com/protonet/cordova-plugin-image-resizer.git ... (exit code 1): Error: Failed to fetch plugin https://github.com/protonet/cordova-plugin-image-resizer.git via registry ... * Update index.ts --- src/@ionic-native/plugins/image-resizer/index.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/@ionic-native/plugins/image-resizer/index.ts b/src/@ionic-native/plugins/image-resizer/index.ts index 09f96171a..2928e119c 100644 --- a/src/@ionic-native/plugins/image-resizer/index.ts +++ b/src/@ionic-native/plugins/image-resizer/index.ts @@ -42,11 +42,6 @@ export interface ImageResizerOptions { * @description * Cordova Plugin For Image Resize * - * Requires plugin `info.protonet.imageresizer` - use the Ionic CLI and type in the following command: - * `ionic cordova plugin add https://github.com/protonet/cordova-plugin-image-resizer.git` - * - * For more info, please see the https://github.com/protonet/cordova-plugin-image-resizer - * * @usage * ```typescript * import { ImageResizer, ImageResizerOptions } from '@ionic-native/image-resizer'; @@ -74,9 +69,9 @@ export interface ImageResizerOptions { */ @Plugin({ pluginName: 'ImageResizer', - plugin: 'https://github.com/protonet/cordova-plugin-image-resizer.git', + plugin: 'info.protonet.imageresizer', pluginRef: 'ImageResizer', - repo: 'https://github.com/protonet/cordova-plugin-image-resizer', + repo: 'https://github.com/JoschkaSchulz/cordova-plugin-image-resizer', platforms: ['Android', 'iOS', 'Windows'] }) @Injectable()