import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {RouteReuseStrategy} from '@angular/router';

import {IonicModule, IonicRouteStrategy} from '@ionic/angular';
import {SplashScreen} from '@ionic-native/splash-screen/ngx';
import {StatusBar} from '@ionic-native/status-bar/ngx';

import {AppRoutingModule} from './app-routing.module';
import {AppComponent} from './app.component';
import {BackButtonService} from "../provide/backButton.service";
import {CommonService} from "../provide/common.service";
import {EmitService} from "../provide/emit.service";
import {AppVersion} from "@ionic-native/app-version/ngx";
import {File} from "@ionic-native/file/ngx";
import {Badge} from "@ionic-native/badge/ngx";
import {FileTransfer,FileTransferObject} from "@ionic-native/file-transfer/ngx";
import {FileOpener} from "@ionic-native/file-opener/ngx";
import {IonicStorageModule} from "@ionic/storage";
import {AppMainModule} from "./app.main.module";

@NgModule({
    declarations: [AppComponent],
    entryComponents: [],
    imports: [
        AppMainModule,
        BrowserModule,
        AppRoutingModule,
        IonicModule.forRoot(),
        IonicStorageModule.forRoot()
    ],
    providers: [
        StatusBar,
        SplashScreen,
        BackButtonService,
        CommonService,
        EmitService,
        AppVersion,
        File,
        Badge,
        FileTransfer,
        FileOpener,
        FileTransferObject,
        {provide: RouteReuseStrategy, useClass: IonicRouteStrategy}
    ],
    bootstrap: [AppComponent]
})
export class AppModule {
}
