MOBILE-2302 core: Move all ionic native declarations to emulator

main
Dani Palou 2018-01-11 08:27:11 +01:00
parent 56edbdf5d2
commit bf9494f1ee
2 changed files with 8 additions and 8 deletions

View File

@ -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,

View File

@ -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],