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