MOBILE-2302 core: Move all ionic native declarations to emulator
parent
56edbdf5d2
commit
bf9494f1ee
|
@ -18,10 +18,6 @@ import { IonicApp, IonicModule, Platform } from 'ionic-angular';
|
|||
import { HttpModule } from '@angular/http';
|
||||
import { HttpClient, HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
||||
|
||||
import { SplashScreen } from '@ionic-native/splash-screen';
|
||||
import { StatusBar } from '@ionic-native/status-bar';
|
||||
import { SQLite } from '@ionic-native/sqlite';
|
||||
import { Keyboard } from '@ionic-native/keyboard';
|
||||
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
||||
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
||||
|
||||
|
@ -98,10 +94,6 @@ export function createTranslateLoader(http: HttpClient) {
|
|||
useClass: CoreInterceptor,
|
||||
multi: true,
|
||||
},
|
||||
StatusBar,
|
||||
SplashScreen,
|
||||
SQLite,
|
||||
Keyboard,
|
||||
CoreLoggerProvider,
|
||||
CoreDbProvider,
|
||||
CoreAppProvider,
|
||||
|
|
|
@ -20,8 +20,12 @@ import { File } from '@ionic-native/file';
|
|||
import { FileTransfer } from '@ionic-native/file-transfer';
|
||||
import { Globalization } from '@ionic-native/globalization';
|
||||
import { InAppBrowser } from '@ionic-native/in-app-browser';
|
||||
import { Keyboard } from '@ionic-native/keyboard';
|
||||
import { LocalNotifications } from '@ionic-native/local-notifications';
|
||||
import { Network } from '@ionic-native/network';
|
||||
import { SplashScreen } from '@ionic-native/splash-screen';
|
||||
import { StatusBar } from '@ionic-native/status-bar';
|
||||
import { SQLite } from '@ionic-native/sqlite';
|
||||
import { Zip } from '@ionic-native/zip';
|
||||
|
||||
import { ClipboardMock } from './providers/clipboard';
|
||||
|
@ -86,6 +90,7 @@ import { CoreInitDelegate } from '../../providers/init';
|
|||
return !appProvider.isDesktop() ? new InAppBrowser() : new InAppBrowserMock(appProvider, fileProvider, urlUtils);
|
||||
}
|
||||
},
|
||||
Keyboard,
|
||||
{
|
||||
provide: LocalNotifications,
|
||||
deps: [CoreAppProvider, CoreUtilsProvider],
|
||||
|
@ -102,6 +107,9 @@ import { CoreInitDelegate } from '../../providers/init';
|
|||
return platform.is('cordova') ? new Network() : new NetworkMock();
|
||||
}
|
||||
},
|
||||
SplashScreen,
|
||||
StatusBar,
|
||||
SQLite,
|
||||
{
|
||||
provide: Zip,
|
||||
deps: [CoreAppProvider, File, CoreMimetypeUtilsProvider, CoreTextUtilsProvider],
|
||||
|
|
Loading…
Reference in New Issue