diff --git a/apps/automated/tsconfig.json b/apps/automated/tsconfig.json index 6230aa69d..96f8482ec 100644 --- a/apps/automated/tsconfig.json +++ b/apps/automated/tsconfig.json @@ -4,7 +4,9 @@ "diagnostics": false, "paths": { "~/*": ["src/*"], - "tns-core-modules/*": ["@nativescript/core/*"] + "tns-core-modules/*": ["@nativescript/core/*"], + "@nativescript/core": ["../../packages/core/index.ts"], + "@nativescript/core/*": ["../../packages/core/*"] } } } diff --git a/migrations.json b/migrations.json new file mode 100644 index 000000000..224faaef7 --- /dev/null +++ b/migrations.json @@ -0,0 +1,20 @@ +{ + "migrations": [ + { + "version": "15.7.0-beta.0", + "description": "Split global configuration files into individual project.json files. This migration has been added automatically to the beginning of your migration set to retroactively make them work with the new version of Nx.", + "cli": "nx", + "implementation": "./src/migrations/update-15-7-0/split-configuration-into-project-json-files", + "package": "@nrwl/workspace", + "name": "15-7-0-split-configuration-into-project-json-files" + }, + { + "version": "15.7.0-beta.0", + "description": "Split global configuration files (e.g., workspace.json) into individual project.json files.", + "cli": "nx", + "implementation": "./src/migrations/update-15-7-0/split-configuration-into-project-json-files", + "package": "@nrwl/workspace", + "name": "15-7-0-split-configuration-into-project-json-files" + } + ] +} diff --git a/package.json b/package.json index f5a4a69f1..c878a9b3f 100644 --- a/package.json +++ b/package.json @@ -24,11 +24,11 @@ "devDependencies": { "@nativescript/hook": "^2.0.0", "@nativescript/nx": "~4.2.0", - "@nrwl/cli": "15.6.3", - "@nrwl/eslint-plugin-nx": "15.6.3", - "@nrwl/jest": "15.6.3", - "@nrwl/node": "15.6.3", - "@nrwl/workspace": "15.6.3", + "@nrwl/cli": "15.7.0", + "@nrwl/eslint-plugin-nx": "15.7.0", + "@nrwl/jest": "15.7.0", + "@nrwl/node": "15.7.0", + "@nrwl/workspace": "15.7.0", "@nstudio/focus": "^15.0.0", "@nstudio/nps-i": "~2.0.0", "@prettier/plugin-xml": "^2.2.0", @@ -51,7 +51,7 @@ "module-alias": "^2.2.2", "nativescript": "~8.4.0", "nativescript-typedoc-theme": "1.1.0", - "nx": "15.6.3", + "nx": "15.7.0", "parse-css": "git+https://github.com/tabatkins/parse-css.git", "parserlib": "^1.1.1", "prettier": "^2.6.2", diff --git a/packages/core/application/index.ios.ts b/packages/core/application/index.ios.ts index 0e5a06fd3..db9c6cc22 100644 --- a/packages/core/application/index.ios.ts +++ b/packages/core/application/index.ios.ts @@ -247,9 +247,8 @@ export class iOSApplication implements iOSApplicationDefinition { cssFile: getCssFileName(), }); - // this._window will be undefined when NS app is embedded in a native one if (this._window) { - if (args.root !== null) { + if (args.root !== null && !NativeScriptEmbedder.sharedInstance().delegate) { this.setWindowContent(args.root); } } else { diff --git a/packages/core/ui/list-view/list-view-common.ts b/packages/core/ui/list-view/list-view-common.ts index 25180a78f..04f1bbddb 100644 --- a/packages/core/ui/list-view/list-view-common.ts +++ b/packages/core/ui/list-view/list-view-common.ts @@ -10,6 +10,7 @@ import { Observable, EventData } from '../../data/observable'; import { ObservableArray, ChangedData } from '../../data/observable-array'; import { addWeakEventListener, removeWeakEventListener } from '../core/weak-event-listener'; import { CoreTypes } from '../../core-types'; +import { isFunction } from '../../utils/types'; const autoEffectiveRowHeight = -1; @@ -28,8 +29,13 @@ export abstract class ListViewBase extends ContainerView implements ListViewDefi key: 'default', createView: () => { if (__UI_USE_EXTERNAL_RENDERER__) { - } else if (this.itemTemplate) { - return Builder.parse(this.itemTemplate, this); + if (isFunction(this.itemTemplate)) { + return (