MOBILE-4081 core: Pass CoreNetwork & CorePlatform to plugins

main
Dani Palou 2022-06-16 08:59:32 +02:00
parent 680da49a32
commit f8ddaaeea2
2 changed files with 5 additions and 1 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;