From f305310bd7408582b44cdda8da5357ea81a35f40 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Mon, 19 Feb 2018 07:36:10 -0800 Subject: [PATCH] Removed unused http plugin --- config.xml | 3 +-- package.json | 9 +++------ src/app/app.module.ts | 4 ---- src/pages/stream/stream.ts | 4 +--- 4 files changed, 5 insertions(+), 15 deletions(-) diff --git a/config.xml b/config.xml index a6a6768..376b8a9 100644 --- a/config.xml +++ b/config.xml @@ -3,7 +3,7 @@ Goober Goober, a mobile app for pnut.io Morgan McMillian - + @@ -98,6 +98,5 @@ - diff --git a/package.json b/package.json index 91298c5..e583410 100644 --- a/package.json +++ b/package.json @@ -25,13 +25,10 @@ "@ionic-native/file-chooser": "^4.5.3", "@ionic-native/file-path": "^4.5.3", "@ionic-native/file-transfer": "^4.5.3", - "@ionic-native/http": "^4.5.3", "@ionic-native/splash-screen": "4.5.3", "@ionic-native/status-bar": "4.5.3", "@ionic/storage": "2.1.3", "com-darryncampbell-cordova-plugin-intent": "0.0.19", - "cordova-android": "~6.4.0", - "cordova-plugin-advanced-http": "^1.10.1", "cordova-plugin-console": "^1.1.0", "cordova-plugin-device": "^2.0.1", "cordova-plugin-file": "^6.0.1", @@ -53,7 +50,8 @@ "run": "^1.4.0", "rxjs": "5.5.6", "sw-toolbox": "3.6.0", - "zone.js": "0.8.20" + "zone.js": "0.8.20", + "cordova-android": "~6.4.0" }, "devDependencies": { "@ionic/app-scripts": "3.1.8", @@ -75,8 +73,7 @@ "cordova-plugin-splashscreen": {}, "cordova-plugin-device": {}, "cordova-plugin-console": {}, - "cordova-plugin-filepath": {}, - "cordova-plugin-advanced-http": {} + "cordova-plugin-filepath": {} }, "platforms": [ "android" diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 530e0e8..9c73034 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -15,8 +15,6 @@ import { Device } from '@ionic-native/device'; import { FileChooser } from '@ionic-native/file-chooser'; import { FilePath } from '@ionic-native/file-path'; import { FileTransfer, FileUploadOptions, FileTransferObject } from '@ionic-native/file-transfer'; -import { File } from '@ionic-native/file'; -import { HTTP } from '@ionic-native/http'; import { TimeagoPipe } from '../pipes/timeago/timeago'; import { ParserPipe } from '../pipes/parser/parser'; @@ -55,8 +53,6 @@ import { ParserPipe } from '../pipes/parser/parser'; FilePath, FileTransfer, FileTransferObject, - File, - HTTP, {provide: ErrorHandler, useClass: IonicErrorHandler} ] }) diff --git a/src/pages/stream/stream.ts b/src/pages/stream/stream.ts index e16deac..d2d45b2 100644 --- a/src/pages/stream/stream.ts +++ b/src/pages/stream/stream.ts @@ -5,8 +5,6 @@ import { Storage } from '@ionic/storage'; import { FileChooser } from '@ionic-native/file-chooser'; import { FilePath } from '@ionic-native/file-path'; import { FileTransfer, FileUploadOptions, FileTransferObject } from '@ionic-native/file-transfer'; -import { File } from '@ionic-native/file'; -import { HTTP } from '@ionic-native/http'; import { Events } from 'ionic-angular'; import * as pnut from 'pnut-butter'; @@ -370,7 +368,7 @@ export class NewPostModal { constructor(public navParams: NavParams, public viewCtrl: ViewController, public toastCtrl: ToastController, private fileChooser: FileChooser, private storage: Storage, public events: Events, private filePath: FilePath, - private transfer: FileTransfer, private file: File, private http: HTTP) { + private transfer: FileTransfer) { console.log(JSON.stringify(this.navParams)); this.myUsername = navParams.data.me; if (navParams.data.type === 'reply') {