Merge pull request #3322 from dpalou/MOBILE-4081

MOBILE-4081 core: Don't inject Ionic Network for plugins
main
Pau Ferrer Ocaña 2022-06-16 09:23:16 +02:00 committed by GitHub
commit 99f3c7a4f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -50,6 +50,8 @@ import { CoreUpdateManagerProvider } from '@services/update-manager';
import { CoreUrlUtilsProvider } from '@services/utils/url';
import { CoreUtilsProvider } from '@services/utils/utils';
import { CoreWSProvider } from '@services/ws';
import { CoreNetworkService } from '@services/network';
import { CorePlatformService } from '@services/platform';
export const CORE_SERVICES: Type<unknown>[] = [
CoreAppProvider,
@ -69,6 +71,8 @@ export const CORE_SERVICES: Type<unknown>[] = [
CoreLocalNotificationsProvider,
CoreMimetypeUtilsProvider,
CoreNavigatorService,
CoreNetworkService,
CorePlatformService,
CorePluginFileDelegateService,
CoreScreenService,
CoreSitesProvider,

View File

@ -344,7 +344,7 @@ export class CoreCompileProvider {
instance['CoreLoggerProvider'] = CoreLogger;
instance['moment'] = moment;
instance['Md5'] = Md5;
instance['Network'] = CoreNetwork.instance;
instance['Network'] = CoreNetwork.instance; // @deprecated on 4.1, plugins should use CoreNetworkService instead.
instance['CoreSyncBaseProvider'] = CoreSyncBaseProvider;
instance['CoreArray'] = CoreArray;
instance['CoreComponentsRegistry'] = CoreComponentsRegistry;

View File

@ -36,7 +36,6 @@ import { Keyboard } from '@ionic-native/keyboard/ngx';
import { LocalNotifications } from '@ionic-native/local-notifications/ngx';
import { Media } from '@ionic-native/media/ngx';
import { MediaCapture } from '@ionic-native/media-capture/ngx';
import { Network } from '@ionic-native/network/ngx';
import { Push } from '@ionic-native/push/ngx';
import { QRScanner } from '@ionic-native/qr-scanner/ngx';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
@ -62,7 +61,6 @@ export const IONIC_NATIVE_SERVICES = [
LocalNotifications,
Media,
MediaCapture,
Network,
Push,
QRScanner,
SplashScreen,