diff --git a/packages/core/__tests__/tsconfig.json b/packages/core/__tests__/tsconfig.json index 97e52b876..48350c360 100644 --- a/packages/core/__tests__/tsconfig.json +++ b/packages/core/__tests__/tsconfig.json @@ -30,6 +30,7 @@ } }, "include": [ + "../global-types.d.ts", "./**/*.ts" ], "exclude": [ diff --git a/packages/core/application/index.android.ts b/packages/core/application/index.android.ts index 773108d6d..7587f17af 100644 --- a/packages/core/application/index.android.ts +++ b/packages/core/application/index.android.ts @@ -476,24 +476,23 @@ function ensureBroadCastReceiverClass() { return; } - @NativeClass - class BroadcastReceiver extends android.content.BroadcastReceiver { - private _onReceiveCallback: (context: android.content.Context, intent: android.content.Intent) => void; + @NativeClass + class BroadcastReceiver extends android.content.BroadcastReceiver { + private _onReceiveCallback: (context: android.content.Context, intent: android.content.Intent) => void; - constructor(onReceiveCallback: (context: android.content.Context, intent: android.content.Intent) => void) { - super(); - this._onReceiveCallback = onReceiveCallback; + constructor(onReceiveCallback: (context: android.content.Context, intent: android.content.Intent) => void) { + super(); + this._onReceiveCallback = onReceiveCallback; - return global.__native(this); - } - - public onReceive(context: android.content.Context, intent: android.content.Intent) { - if (this._onReceiveCallback) { - this._onReceiveCallback(context, intent); - } - } - } + return global.__native(this); + } + public onReceive(context: android.content.Context, intent: android.content.Intent) { + if (this._onReceiveCallback) { + this._onReceiveCallback(context, intent); + } + } + } BroadcastReceiverClass = BroadcastReceiver; } diff --git a/packages/core/application/index.d.ts b/packages/core/application/index.d.ts index 909627aa3..fff9e1760 100644 --- a/packages/core/application/index.d.ts +++ b/packages/core/application/index.d.ts @@ -62,7 +62,7 @@ export let autoSystemAppearanceChanged: boolean; /** * enable/disable systemAppearanceChanged */ -export function setAutoSystemAppearanceChanged (value: boolean); +export function setAutoSystemAppearanceChanged(value: boolean); /** * Updates root view classes including those of modals diff --git a/packages/core/config/config.interface.ts b/packages/core/config/config.interface.ts index 57ccf5cc2..e63c30b9a 100644 --- a/packages/core/config/config.interface.ts +++ b/packages/core/config/config.interface.ts @@ -1,4 +1,4 @@ -import type {InstrumentationMode} from '../profiling' +import type { InstrumentationMode } from '../profiling'; interface IConfigPlatform { /** @@ -144,4 +144,3 @@ export interface NativeScriptConfig { */ cssParser?: 'rework' | 'nativescript' | 'css-tree'; } - diff --git a/packages/core/config/index.ts b/packages/core/config/index.ts index 19955812e..e8c38695e 100644 --- a/packages/core/config/index.ts +++ b/packages/core/config/index.ts @@ -1 +1 @@ -export * from './config.interface'; \ No newline at end of file +export * from './config.interface'; diff --git a/packages/core/connectivity/index.android.ts b/packages/core/connectivity/index.android.ts index 13ffbcc9e..0c9b29c56 100644 --- a/packages/core/connectivity/index.android.ts +++ b/packages/core/connectivity/index.android.ts @@ -1,4 +1,4 @@ -import {android as androidApp, getNativeApplication} from '../application'; +import { android as androidApp, getNativeApplication } from '../application'; export enum connectionType { none = 0, diff --git a/packages/core/globals/index.ts b/packages/core/globals/index.ts index a5771d05f..8e419af92 100644 --- a/packages/core/globals/index.ts +++ b/packages/core/globals/index.ts @@ -359,5 +359,5 @@ export function initGlobal() { } } if (!global.NativeScriptHasInitGlobal) { - initGlobal(); -} \ No newline at end of file + initGlobal(); +} diff --git a/packages/core/index.ts b/packages/core/index.ts index 6291561c7..77be3d80a 100644 --- a/packages/core/index.ts +++ b/packages/core/index.ts @@ -29,9 +29,9 @@ export const Application = { loadAppCss, addCss, on, - off, - notify, - hasListeners, + off, + notify, + hasListeners, run, orientation, getNativeApplication, @@ -135,11 +135,11 @@ export const Utils = { android: androidUtils, // legacy (a lot of plugins use the shorthand "ad" Utils.ad instead of Utils.android) ad: androidUtils, - ios: iosUtils, - setTimeout, - setInterval, - clearInterval, - clearTimeout, + ios: iosUtils, + setTimeout, + setInterval, + clearInterval, + clearTimeout, Source, ClassInfo, getClass, diff --git a/packages/core/inspector_modules.ios.ts b/packages/core/inspector_modules.ios.ts index 18deeeebf..b228c93d4 100644 --- a/packages/core/inspector_modules.ios.ts +++ b/packages/core/inspector_modules.ios.ts @@ -1,5 +1,5 @@ console.log('Loading inspector modules...'); -import './globals'; +import './globals'; require('./debugger/webinspector-network'); require('./debugger/webinspector-dom'); require('./debugger/webinspector-css'); diff --git a/packages/core/ui/bottom-navigation/index.android.ts b/packages/core/ui/bottom-navigation/index.android.ts index 5a2fefd91..3334d36a2 100644 --- a/packages/core/ui/bottom-navigation/index.android.ts +++ b/packages/core/ui/bottom-navigation/index.android.ts @@ -456,7 +456,7 @@ export class BottomNavigation extends TabNavigationBase { const fragmentManager = this._getFragmentManager(); const transaction = fragmentManager.beginTransaction(); const fragments = fragmentManager.getFragments().toArray(); - for (let i=0;i>fragmentManager.getFragments().toArray(); - for (let i=0;i>fragmentManager.getFragments().toArray(); - for (let i=0;i