import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { Diagnostic } from '@ionic-native/diagnostic';
import { IonicStorageModule } from '@ionic/storage';
import { HttpModule  } from '@angular/http';
import { Myservice } from '../providers/myservice';
import { PermissionsService } from '../providers/permissionservice';
import { Geolocation } from '@ionic-native/geolocation';
import { Ionic2RatingModule } from 'ionic2-rating';
import { FileTransfer, FileUploadOptions, FileTransferObject } from '@ionic-native/file-transfer';
import { File } from '@ionic-native/file';
import { ImagePicker } from '@ionic-native/image-picker';
import { OneSignal } from '@ionic-native/onesignal';
import { Network } from '@ionic-native/network';
import { TooltipsModule } from 'ionic-tooltips';
import { Badge } from '@ionic-native/badge';
import { LocationAccuracy } from '@ionic-native/location-accuracy';
import { PhotoViewer } from '@ionic-native/photo-viewer';

@NgModule({
  declarations: [
    MyApp
  ],
  imports: [
    BrowserModule,
	HttpModule, 
    IonicModule.forRoot(MyApp,{tabsPlacement:"bottom"}),
	IonicStorageModule.forRoot(),
	Ionic2RatingModule // Put ionic2-rating module here
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp
  ],
  providers: [
    StatusBar,
    SplashScreen,
	Myservice,
	Diagnostic,
	PermissionsService,
	Geolocation,
	FileTransfer,
	File,
	ImagePicker,
	Network,
	OneSignal,
	TooltipsModule,
	PhotoViewer,
	Badge,
	LocationAccuracy,
    {provide: ErrorHandler, useClass: IonicErrorHandler}
  ]
})
export class AppModule {}
