From 7a7950f49cfa21c9d26aa8b85bf2e3d3f32047ea Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Thu, 31 Mar 2022 12:00:47 +0200 Subject: [PATCH] MOBILE-3833 dx: Expose app provider in devtools --- src/core/initializers/prepare-devtools.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/initializers/prepare-devtools.ts b/src/core/initializers/prepare-devtools.ts index adc324726..7f9d565bb 100644 --- a/src/core/initializers/prepare-devtools.ts +++ b/src/core/initializers/prepare-devtools.ts @@ -12,18 +12,21 @@ // See the License for the specific language governing permissions and // limitations under the License. +import { CoreApp, CoreAppProvider } from '@services/app'; import { CoreConfig, CoreConfigProvider } from '@services/config'; import { CoreDB, CoreDbProvider } from '@services/db'; import { CoreCustomURLSchemes, CoreCustomURLSchemesProvider } from '@services/urlschemes'; import { CoreConstants } from '../constants'; type DevelopmentWindow = Window & { + appProvider?: CoreAppProvider; configProvider?: CoreConfigProvider; dbProvider?: CoreDbProvider; urlSchemes?: CoreCustomURLSchemesProvider; }; function initializeDevelopmentWindow(window: DevelopmentWindow) { + window.appProvider = CoreApp.instance; window.configProvider = CoreConfig.instance; window.dbProvider = CoreDB.instance; window.urlSchemes = CoreCustomURLSchemes.instance;