From f8ddaaeea2c9dc764675a1b6ca085b37df6c6593 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Thu, 16 Jun 2022 08:59:32 +0200 Subject: [PATCH] MOBILE-4081 core: Pass CoreNetwork & CorePlatform to plugins --- src/core/core.module.ts | 4 ++++ src/core/features/compile/services/compile.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/core.module.ts b/src/core/core.module.ts index 44ca6128e..2376f3db4 100644 --- a/src/core/core.module.ts +++ b/src/core/core.module.ts @@ -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[] = [ CoreAppProvider, @@ -69,6 +71,8 @@ export const CORE_SERVICES: Type[] = [ CoreLocalNotificationsProvider, CoreMimetypeUtilsProvider, CoreNavigatorService, + CoreNetworkService, + CorePlatformService, CorePluginFileDelegateService, CoreScreenService, CoreSitesProvider, diff --git a/src/core/features/compile/services/compile.ts b/src/core/features/compile/services/compile.ts index fc93a3b82..82fafd18b 100644 --- a/src/core/features/compile/services/compile.ts +++ b/src/core/features/compile/services/compile.ts @@ -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;