diff --git a/e2e/ui-tests-app/package.json b/e2e/ui-tests-app/package.json index 295cc87f9..a4aa964fa 100644 --- a/e2e/ui-tests-app/package.json +++ b/e2e/ui-tests-app/package.json @@ -13,7 +13,7 @@ "license": "SEE LICENSE IN ", "repository": "", "dependencies": { - "@nativescript/core": "file:../../dist/nativescript-core-7.0.0-rc.9.tgz" + "@nativescript/core": "file:../../dist/nativescript-core-7.0.0-rc.11.tgz" }, "devDependencies": { "@testdeck/mocha": "0.0.6", diff --git a/nativescript-core/index.ts b/nativescript-core/index.ts index d291f2ced..a822921a2 100644 --- a/nativescript-core/index.ts +++ b/nativescript-core/index.ts @@ -2,9 +2,7 @@ // Init globals first import { initGlobal } from './globals'; -if (!(global).hasInitGlobal) { - initGlobal(); -} +initGlobal(); // Export all interfaces from "application" module export { ApplicationEventData, LaunchEventData, OrientationChangedEventData, UnhandledErrorEventData, DiscardedErrorEventData, CssChangedEventData, LoadAppCSSEventData, iOSApplication, AndroidApplication, AndroidActivityEventData, AndroidActivityBundleEventData, AndroidActivityRequestPermissionsEventData, AndroidActivityResultEventData, AndroidActivityNewIntentEventData, AndroidActivityBackPressedEventData } from './application'; diff --git a/nativescript-core/package.json b/nativescript-core/package.json index bde293017..7dcd8b14c 100644 --- a/nativescript-core/package.json +++ b/nativescript-core/package.json @@ -3,7 +3,7 @@ "main": "index", "types": "index.d.ts", "description": "NativeScript Core Modules", - "version": "7.0.0-rc.9", + "version": "7.0.0-rc.11", "homepage": "https://www.nativescript.org", "repository": { "type": "git", @@ -12,6 +12,7 @@ "files": [ "**/*.d.ts", "**/*.js", + "**/*.map", "**/platforms/ios/**", "**/platforms/android/**", "**/package.json", diff --git a/nativescript-core/tsconfig.json b/nativescript-core/tsconfig.json index 64c600e37..276f45be6 100644 --- a/nativescript-core/tsconfig.json +++ b/nativescript-core/tsconfig.json @@ -4,10 +4,10 @@ "noEmitHelpers": true, "target": "es5", "module": "commonjs", - "declaration": false, + "declaration": true, "noImplicitAny": false, "noImplicitUseStrict": true, - "removeComments": true, + "removeComments": false, "experimentalDecorators": true, "diagnostics": true, "sourceMap": true, diff --git a/nativescript-core/ui/core/view-base/index.ts b/nativescript-core/ui/core/view-base/index.ts index f08897994..8ad7c86e2 100644 --- a/nativescript-core/ui/core/view-base/index.ts +++ b/nativescript-core/ui/core/view-base/index.ts @@ -247,7 +247,7 @@ export abstract class ViewBase extends Observable implements ViewBaseDefinition public _suspendedUpdates: { [propertyName: string]: Property | CssProperty | CssAnimationProperty; }; - public _suspendNativeUpdatesCount: SuspendType; + public _suspendNativeUpdatesCount: number; public _isStyleScopeHost: boolean; public _automaticallyAdjustsScrollViewInsets: boolean; diff --git a/nativescript-core/ui/core/view/index.ios.ts b/nativescript-core/ui/core/view/index.ios.ts index 9d363ab67..b6dbb4f6c 100644 --- a/nativescript-core/ui/core/view/index.ios.ts +++ b/nativescript-core/ui/core/view/index.ios.ts @@ -386,8 +386,8 @@ export class View extends ViewCommon implements ViewDefinition { this._suspendCATransaction = false; } - public _isPresentationLayerUpdateSuspeneded() { - return this._suspendCATransaction || this._suspendNativeUpdatesCount; + public _isPresentationLayerUpdateSuspeneded(): boolean { + return this._suspendCATransaction || this._suspendNativeUpdatesCount > 0; } protected _showNativeModalView(parent: View, options: ShowModalOptions) { diff --git a/package.json b/package.json index 12775b23a..0904b2d73 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "NativeScript", "description": "NativeScript Core Modules", "homepage": "https://nativescript.org", - "version": "7.0.0-rc.9", + "version": "7.0.0-rc.11", "repository": { "type": "git", "url": "https://github.com/NativeScript/NativeScript" diff --git a/tests/package.json b/tests/package.json index 019791029..79eb6f9a0 100644 --- a/tests/package.json +++ b/tests/package.json @@ -16,7 +16,7 @@ "clean": "npx rimraf hooks node_modules platforms package-lock.json && npm i" }, "dependencies": { - "@nativescript/core": "file:../dist/nativescript-core-7.0.0-rc.9.tgz" + "@nativescript/core": "file:../dist/nativescript-core-7.0.0-rc.11.tgz" }, "devDependencies": { "circular-dependency-plugin": "~5.2.0",