From 67bf6b40f1231967e30dbec21ea460a01f5d0705 Mon Sep 17 00:00:00 2001 From: vakrilov Date: Wed, 28 Aug 2019 17:03:45 +0300 Subject: [PATCH 01/60] chore: move tns-core-modules to nativescript-core --- .gitignore | 14 +++----------- .travis.yml | 2 +- .../application-settings/Readme.md | 0 .../application-settings-common.ts | 0 .../application-settings.android.ts | 0 .../application-settings/application-settings.d.ts | 0 .../application-settings.ios.ts | 0 .../application-settings/package.json | 0 .../application/Readme.md | 0 .../application/application-common.ts | 0 .../application/application.android.ts | 0 .../application/application.d.ts | 0 .../application/application.ios.ts | 0 .../application/package.json | 0 .../bundle-entry-points.ts | 0 .../color/color-common.ts | 0 .../color/color.android.ts | 0 .../color/color.d.ts | 0 .../color/color.ios.ts | 0 .../color/known-colors.d.ts | 0 .../color/known-colors.ts | 0 .../color/package.json | 0 .../connectivity/connectivity.android.ts | 0 .../connectivity/connectivity.d.ts | 0 .../connectivity/connectivity.ios.ts | 0 .../connectivity/package.json | 0 .../console/console.ts | 0 .../console/package.json | 0 .../css-value/LICENSE | 0 .../css-value/Readme.md | 0 .../css-value/UPGRADING.md | 0 .../css-value/index.js | 0 .../css-value/package.json | 0 .../css-value/reworkcss-value.d.ts | 0 .../css/LICENSE | 0 .../css/Readme.md | 0 .../css/index.js | 0 .../css/lib/parse/index.js | 0 .../css/package.json | 0 .../css/parser.ts | 0 .../css/reworkcss.d.ts | 0 .../data/observable-array/observable-array.d.ts | 0 .../data/observable-array/observable-array.ts | 0 .../data/observable-array/package.json | 0 .../data/observable/observable.d.ts | 0 .../data/observable/observable.ts | 0 .../data/observable/package.json | 0 .../data/package.json | 0 .../data/virtual-array/package.json | 0 .../data/virtual-array/virtual-array.d.ts | 0 .../data/virtual-array/virtual-array.ts | 0 .../debugger/InspectorBackendCommands.ios.ts | 0 .../debugger/css-agent.d.ts | 0 .../debugger/debugger.ts | 0 .../debugger/devtools-elements.android.ts | 0 .../debugger/devtools-elements.common.ts | 0 .../debugger/devtools-elements.d.ts | 0 .../debugger/devtools-elements.ios.ts | 0 .../debugger/dom-node.d.ts | 0 .../debugger/dom-node.ts | 0 .../debugger/package.json | 0 .../debugger/webinspector-css.ios.ts | 0 .../debugger/webinspector-dom.ios.ts | 0 .../debugger/webinspector-network.ios.ts | 0 .../fetch/LICENSE | 0 .../fetch/README.md | 0 .../fetch/fetch.js | 0 .../fetch/package.json | 0 .../file-name-resolver/file-name-resolver.d.ts | 0 .../file-name-resolver/file-name-resolver.ts | 0 .../file-system/file-name-resolver/package.json | 0 .../file-system/file-system-access.android.ts | 0 .../file-system/file-system-access.d.ts | 0 .../file-system/file-system-access.ios.ts | 0 .../file-system/file-system.d.ts | 0 .../file-system/file-system.ts | 0 .../file-system/package.json | 0 .../fps-meter/fps-meter.d.ts | 0 .../fps-meter/fps-meter.ts | 0 .../fps-meter/fps-native.android.ts | 0 .../fps-meter/fps-native.d.ts | 0 .../fps-meter/fps-native.ios.ts | 0 .../fps-meter/package.json | 0 .../globals/Readme.md | 0 .../globals/core/globals-core.ts | 0 .../globals/core/package.json | 0 .../globals/decorators.ts | 0 .../globals/globals.d.ts | 0 .../globals/globals.ts | 0 .../globals/package.json | 0 .../globals/polyfills/dialogs/dialogs.ts | 0 .../globals/polyfills/dialogs/package.json | 0 .../globals/polyfills/fetch/fetch.ts | 0 .../globals/polyfills/fetch/package.json | 0 .../polyfills/polyfill-helpers/package.json | 0 .../polyfills/polyfill-helpers/polyfill-helpers.ts | 0 .../globals/polyfills/timers/package.json | 0 .../globals/polyfills/timers/timers.ts | 0 .../globals/polyfills/xhr/package.json | 0 .../globals/polyfills/xhr/xhr.ts | 0 .../globals/register-module-helpers.ts | 0 .../globals/ts-helpers.ts | 0 .../http/Readme.md | 0 .../http/http-request/http-request-common.ts | 0 .../http/http-request/http-request.android.ts | 0 .../http/http-request/http-request.d.ts | 0 .../http/http-request/http-request.ios.ts | 0 .../http/http-request/package.json | 0 .../http/http.d.ts | 0 .../http/http.ts | 0 .../http/package.json | 0 .../image-asset/image-asset-common.ts | 0 .../image-asset/image-asset.android.ts | 0 .../image-asset/image-asset.d.ts | 0 .../image-asset/image-asset.ios.ts | 0 .../image-asset/package.json | 0 .../image-source/Readme.md | 0 .../image-source/image-source.android.ts | 0 .../image-source/image-source.d.ts | 0 .../image-source/image-source.ios.ts | 0 .../image-source/package.json | 0 .../inspector_modules.ios.ts | 0 .../js-libs/easysax/LICENSE | 0 .../js-libs/easysax/README.md | 0 .../js-libs/easysax/easysax.d.ts | 0 .../js-libs/easysax/easysax.js | 0 .../js-libs/easysax/package.json | 0 .../js-libs/esprima/LICENSE.BSD | 0 .../js-libs/esprima/README.md | 0 .../js-libs/esprima/esprima.d.ts | 0 .../js-libs/esprima/esprima.js | 0 .../js-libs/esprima/package.json | 0 .../js-libs/polymer-expressions/LICENSE | 0 .../js-libs/polymer-expressions/README.md | 0 .../js-libs/polymer-expressions/package.json | 0 .../js-libs/polymer-expressions/path-parser.js | 0 .../polymer-expressions/polymer-expressions.d.ts | 0 .../polymer-expressions/polymer-expressions.js | 0 .../matrix/matrix.d.ts | 0 .../matrix/matrix.ts | 0 .../matrix/package.json | 0 .../module-name-resolver/module-name-resolver.d.ts | 0 .../module-name-resolver/module-name-resolver.ts | 0 .../non-bundle-workflow-compat.ts | 0 .../module-name-resolver/package.json | 0 .../qualifier-matcher/package.json | 0 .../qualifier-matcher/qualifier-matcher.d.ts | 0 .../qualifier-matcher/qualifier-matcher.ts | 0 .../module.d.ts | 0 .../nativescript-error.d.ts | 0 .../package.json | 0 .../platform/package.json | 0 .../platform/platform.android.ts | 0 .../platform/platform.d.ts | 0 .../platform/platform.ios.ts | 0 .../platforms/README.md | 0 .../platforms/ios/Podfile | 0 .../platforms/ios/src/NativeScriptEmbedder.h | 0 .../platforms/ios/src/NativeScriptEmbedder.m | 0 .../platforms/ios/src/module.modulemap | 0 .../ios/typings/objc!MaterialComponents.d.ts | 0 .../profiling/package.json | 0 .../profiling/profiling.d.ts | 0 .../profiling/profiling.ts | 0 .../references.d.ts | 0 .../text/formatted-string.d.ts | 0 .../text/formatted-string.ts | 0 .../text/package.json | 0 .../text/span.d.ts | 0 .../text/span.ts | 0 .../text/text.android.ts | 0 .../text/text.d.ts | 0 .../text/text.ios.ts | 0 .../timer/Readme.md | 0 .../timer/package.json | 0 .../timer/timer.android.ts | 0 .../timer/timer.d.ts | 0 .../timer/timer.ios.ts | 0 .../tns-core-modules.d.ts | 0 .../trace/Readme.md | 0 .../trace/package.json | 0 .../trace/trace.d.ts | 0 .../trace/trace.ts | 0 .../tsconfig.json | 0 .../ui/action-bar/action-bar-common.ts | 0 .../ui/action-bar/action-bar.android.ts | 0 .../ui/action-bar/action-bar.d.ts | 0 .../ui/action-bar/action-bar.ios.ts | 0 .../ui/action-bar/package.json | 0 .../activity-indicator-common.ts | 0 .../activity-indicator.android.ts | 0 .../ui/activity-indicator/activity-indicator.d.ts | 0 .../activity-indicator/activity-indicator.ios.ts | 0 .../ui/activity-indicator/package.json | 0 .../ui/animation/animation-common.ts | 0 .../ui/animation/animation.android.ts | 0 .../ui/animation/animation.d.ts | 0 .../ui/animation/animation.ios.ts | 0 .../ui/animation/keyframe-animation.d.ts | 0 .../ui/animation/keyframe-animation.ts | 0 .../ui/animation/package.json | 0 .../ui/border/border.d.ts | 0 .../ui/border/border.ts | 0 .../ui/border/package.json | 0 .../bottom-navigation/bottom-navigation.android.ts | 0 .../ui/bottom-navigation/bottom-navigation.d.ts | 0 .../ui/bottom-navigation/bottom-navigation.ios.ts | 0 .../ui/bottom-navigation/package.json | 0 .../ui/builder/binding-builder.d.ts | 0 .../ui/builder/binding-builder.ts | 0 .../ui/builder/builder.d.ts | 0 .../ui/builder/builder.ts | 0 .../component-builder/component-builder.d.ts | 0 .../builder/component-builder/component-builder.ts | 0 .../ui/builder/component-builder/package.json | 0 .../ui/builder/module-name-sanitizer.d.ts | 0 .../ui/builder/module-name-sanitizer.ts | 0 .../ui/builder/package.json | 0 .../ui/button/button-common.ts | 0 .../ui/button/button.android.ts | 0 .../ui/button/button.d.ts | 0 .../ui/button/button.ios.ts | 0 .../ui/button/package.json | 0 .../ui/content-view/content-view.d.ts | 0 .../ui/content-view/content-view.ts | 0 .../ui/content-view/package.json | 0 .../ui/core/bindable/bindable.d.ts | 0 .../ui/core/bindable/bindable.ts | 0 .../ui/core/bindable/package.json | 0 .../control-state-change/control-state-change.d.ts | 0 .../control-state-change.ios.ts | 0 .../ui/core/control-state-change/package.json | 0 .../ui/core/properties/package.json | 0 .../ui/core/properties/properties.d.ts | 0 .../ui/core/properties/properties.ts | 0 .../ui/core/view-base/package.json | 0 .../ui/core/view-base/view-base.d.ts | 0 .../ui/core/view-base/view-base.ts | 0 .../ui/core/view/package.json | 0 .../ui/core/view/view-common.ts | 0 .../ui/core/view/view.android.ts | 0 .../ui/core/view/view.d.ts | 0 .../ui/core/view/view.ios.ts | 0 .../ui/core/weak-event-listener/package.json | 0 .../weak-event-listener/weak-event-listener.d.ts | 0 .../weak-event-listener/weak-event-listener.ts | 0 .../ui/date-picker/date-picker-common.ts | 0 .../ui/date-picker/date-picker.android.ts | 0 .../ui/date-picker/date-picker.d.ts | 0 .../ui/date-picker/date-picker.ios.ts | 0 .../ui/date-picker/package.json | 0 .../ui/dialogs/Readme.md | 0 .../ui/dialogs/dialogs-common.ts | 0 .../ui/dialogs/dialogs.android.ts | 0 .../ui/dialogs/dialogs.d.ts | 0 .../ui/dialogs/dialogs.ios.ts | 0 .../ui/dialogs/package.json | 0 .../editable-text-base-common.ts | 0 .../editable-text-base.android.ts | 0 .../ui/editable-text-base/editable-text-base.d.ts | 0 .../editable-text-base/editable-text-base.ios.ts | 0 .../ui/editable-text-base/package.json | 0 .../ui/enums/enums.d.ts | 0 .../ui/enums/enums.ts | 0 .../ui/enums/package.json | 0 .../ui/frame/Readme.md | 0 .../ui/frame/activity.android.ts | 0 .../ui/frame/fragment.android.ts | 0 .../ui/frame/fragment.transitions.android.ts | 0 .../ui/frame/fragment.transitions.d.ts | 0 .../ui/frame/fragment.transitions.ios.ts | 0 .../ui/frame/fragment.transitions.types.ts | 0 .../ui/frame/frame-common.ts | 0 .../ui/frame/frame-stack.ts | 0 .../ui/frame/frame.android.ts | 0 .../ui/frame/frame.d.ts | 0 .../ui/frame/frame.ios.ts | 0 .../ui/frame/package.json | 0 .../ui/frame/transition-definitions.android.d.ts | 0 .../ui/gestures/gestures-common.ts | 0 .../ui/gestures/gestures.android.ts | 0 .../ui/gestures/gestures.d.ts | 0 .../ui/gestures/gestures.ios.ts | 0 .../ui/gestures/package.json | 0 .../ui/html-view/html-view-common.ts | 0 .../ui/html-view/html-view.android.ts | 0 .../ui/html-view/html-view.d.ts | 0 .../ui/html-view/html-view.ios.ts | 0 .../ui/html-view/package.json | 0 .../ui/image-cache/image-cache-common.ts | 0 .../ui/image-cache/image-cache.android.ts | 0 .../ui/image-cache/image-cache.d.ts | 0 .../ui/image-cache/image-cache.ios.ts | 0 .../ui/image-cache/package.json | 0 .../ui/image/image-common.ts | 0 .../ui/image/image.android.ts | 0 .../ui/image/image.d.ts | 0 .../ui/image/image.ios.ts | 0 .../ui/image/package.json | 0 .../ui/label/label.android.ts | 0 .../ui/label/label.d.ts | 0 .../ui/label/label.ios.ts | 0 .../ui/label/package.json | 0 .../absolute-layout/absolute-layout-common.ts | 0 .../absolute-layout/absolute-layout.android.ts | 0 .../layouts/absolute-layout/absolute-layout.d.ts | 0 .../layouts/absolute-layout/absolute-layout.ios.ts | 0 .../ui/layouts/absolute-layout/package.json | 0 .../ui/layouts/dock-layout/dock-layout-common.ts | 0 .../ui/layouts/dock-layout/dock-layout.android.ts | 0 .../ui/layouts/dock-layout/dock-layout.d.ts | 0 .../ui/layouts/dock-layout/dock-layout.ios.ts | 0 .../ui/layouts/dock-layout/package.json | 0 .../flexbox-layout/flexbox-layout-common.ts | 0 .../flexbox-layout/flexbox-layout.android.ts | 0 .../ui/layouts/flexbox-layout/flexbox-layout.d.ts | 0 .../layouts/flexbox-layout/flexbox-layout.ios.ts | 0 .../ui/layouts/flexbox-layout/package.json | 0 .../ui/layouts/grid-layout/grid-layout-common.ts | 0 .../ui/layouts/grid-layout/grid-layout.android.ts | 0 .../ui/layouts/grid-layout/grid-layout.d.ts | 0 .../ui/layouts/grid-layout/grid-layout.ios.ts | 0 .../ui/layouts/grid-layout/package.json | 0 .../ui/layouts/layout-base-common.ts | 0 .../ui/layouts/layout-base.android.ts | 0 .../ui/layouts/layout-base.d.ts | 0 .../ui/layouts/layout-base.ios.ts | 0 .../ui/layouts/stack-layout/package.json | 0 .../ui/layouts/stack-layout/stack-layout-common.ts | 0 .../layouts/stack-layout/stack-layout.android.ts | 0 .../ui/layouts/stack-layout/stack-layout.d.ts | 0 .../ui/layouts/stack-layout/stack-layout.ios.ts | 0 .../ui/layouts/wrap-layout/package.json | 0 .../ui/layouts/wrap-layout/wrap-layout-common.ts | 0 .../ui/layouts/wrap-layout/wrap-layout.android.ts | 0 .../ui/layouts/wrap-layout/wrap-layout.d.ts | 0 .../ui/layouts/wrap-layout/wrap-layout.ios.ts | 0 .../ui/list-picker/list-picker-common.ts | 0 .../ui/list-picker/list-picker.android.ts | 0 .../ui/list-picker/list-picker.d.ts | 0 .../ui/list-picker/list-picker.ios.ts | 0 .../ui/list-picker/package.json | 0 .../ui/list-view/Readme.md | 0 .../ui/list-view/list-view-common.ts | 0 .../ui/list-view/list-view.android.ts | 0 .../ui/list-view/list-view.d.ts | 0 .../ui/list-view/list-view.ios.ts | 0 .../ui/list-view/package.json | 0 .../ui/package.json | 0 .../ui/page/package.json | 0 .../ui/page/page-common.ts | 0 .../ui/page/page.android.ts | 0 .../ui/page/page.d.ts | 0 .../ui/page/page.ios.ts | 0 .../ui/placeholder/package.json | 0 .../ui/placeholder/placeholder.android.ts | 0 .../ui/placeholder/placeholder.d.ts | 0 .../ui/placeholder/placeholder.ts | 0 .../ui/progress/package.json | 0 .../ui/progress/progress-common.ts | 0 .../ui/progress/progress.android.ts | 0 .../ui/progress/progress.d.ts | 0 .../ui/progress/progress.ios.ts | 0 .../ui/proxy-view-container/package.json | 0 .../proxy-view-container/proxy-view-container.d.ts | 0 .../proxy-view-container/proxy-view-container.ts | 0 .../ui/repeater/package.json | 0 .../ui/repeater/repeater.d.ts | 0 .../ui/repeater/repeater.ts | 0 .../ui/scroll-view/package.json | 0 .../ui/scroll-view/scroll-view-common.ts | 0 .../ui/scroll-view/scroll-view.android.ts | 0 .../ui/scroll-view/scroll-view.d.ts | 0 .../ui/scroll-view/scroll-view.ios.ts | 0 .../ui/search-bar/package.json | 0 .../ui/search-bar/search-bar-common.ts | 0 .../ui/search-bar/search-bar.android.ts | 0 .../ui/search-bar/search-bar.d.ts | 0 .../ui/search-bar/search-bar.ios.ts | 0 .../ui/segmented-bar/package.json | 0 .../ui/segmented-bar/segmented-bar-common.ts | 0 .../ui/segmented-bar/segmented-bar.android.ts | 0 .../ui/segmented-bar/segmented-bar.d.ts | 0 .../ui/segmented-bar/segmented-bar.ios.ts | 0 .../ui/slider/package.json | 0 .../ui/slider/slider-common.ts | 0 .../ui/slider/slider.android.ts | 0 .../ui/slider/slider.d.ts | 0 .../ui/slider/slider.ios.ts | 0 .../ui/styling/background-common.ts | 0 .../ui/styling/background.android.ts | 0 .../ui/styling/background.d.ts | 0 .../ui/styling/background.ios.ts | 0 .../ui/styling/converters.ts | 0 .../ui/styling/css-animation-parser.ts | 0 .../ui/styling/css-selector/css-selector.d.ts | 0 .../ui/styling/css-selector/css-selector.ts | 0 .../ui/styling/css-selector/package.json | 0 .../ui/styling/font-common.ts | 0 .../ui/styling/font.android.ts | 0 .../ui/styling/font.d.ts | 0 .../ui/styling/font.ios.ts | 0 .../ui/styling/gradient.d.ts | 0 .../ui/styling/linear-gradient.ts | 0 .../ui/styling/package.json | 0 .../ui/styling/style-properties.d.ts | 0 .../ui/styling/style-properties.ts | 0 .../ui/styling/style-scope.d.ts | 0 .../ui/styling/style-scope.ts | 0 .../ui/styling/style/package.json | 0 .../ui/styling/style/style.d.ts | 0 .../ui/styling/style/style.ts | 0 .../ui/switch/package.json | 0 .../ui/switch/switch-common.ts | 0 .../ui/switch/switch.android.ts | 0 .../ui/switch/switch.d.ts | 0 .../ui/switch/switch.ios.ts | 0 .../tab-content-item/package.json | 0 .../tab-content-item/tab-content-item-common.ts | 0 .../tab-content-item/tab-content-item.android.ts | 0 .../tab-content-item/tab-content-item.d.ts | 0 .../tab-content-item/tab-content-item.ios.ts | 0 .../tab-navigation-base/package.json | 0 .../tab-navigation-base/tab-navigation-base.d.ts | 0 .../tab-navigation-base/tab-navigation-base.ts | 0 .../tab-strip-item/package.json | 0 .../tab-strip-item/tab-strip-item.d.ts | 0 .../tab-strip-item/tab-strip-item.ts | 0 .../ui/tab-navigation-base/tab-strip/package.json | 0 .../tab-navigation-base/tab-strip/tab-strip.d.ts | 0 .../ui/tab-navigation-base/tab-strip/tab-strip.ts | 0 .../ui/tab-view/package.json | 0 .../ui/tab-view/tab-view-common.ts | 0 .../ui/tab-view/tab-view.android.ts | 0 .../ui/tab-view/tab-view.d.ts | 0 .../ui/tab-view/tab-view.ios.ts | 0 .../ui/tabs/package.json | 0 .../ui/tabs/tabs-common.ts | 0 .../ui/tabs/tabs.android.ts | 0 .../ui/tabs/tabs.d.ts | 0 .../ui/tabs/tabs.ios.ts | 0 .../ui/text-base/package.json | 0 .../ui/text-base/text-base-common.ts | 0 .../ui/text-base/text-base.android.ts | 0 .../ui/text-base/text-base.d.ts | 0 .../ui/text-base/text-base.ios.ts | 0 .../ui/text-field/package.json | 0 .../ui/text-field/text-field-common.ts | 0 .../ui/text-field/text-field.android.ts | 0 .../ui/text-field/text-field.d.ts | 0 .../ui/text-field/text-field.ios.ts | 0 .../ui/text-view/package.json | 0 .../ui/text-view/text-view.android.ts | 0 .../ui/text-view/text-view.d.ts | 0 .../ui/text-view/text-view.ios.ts | 0 .../ui/time-picker/package.json | 0 .../ui/time-picker/time-picker-common.ts | 0 .../ui/time-picker/time-picker.android.ts | 0 .../ui/time-picker/time-picker.d.ts | 0 .../ui/time-picker/time-picker.ios.ts | 0 .../ui/transition/fade-transition.android.ts | 0 .../ui/transition/fade-transition.d.ts | 0 .../ui/transition/fade-transition.ios.ts | 0 .../ui/transition/flip-transition.android.ts | 0 .../ui/transition/flip-transition.d.ts | 0 .../ui/transition/package.json | 0 .../ui/transition/slide-transition.android.ts | 0 .../ui/transition/slide-transition.d.ts | 0 .../ui/transition/slide-transition.ios.ts | 0 .../ui/transition/transition.android.ts | 0 .../ui/transition/transition.d.ts | 0 .../ui/transition/transition.ios.ts | 0 .../ui/utils.android.ts | 0 .../ui/utils.d.ts | 0 .../ui/utils.ios.ts | 0 .../ui/web-view/package.json | 0 .../ui/web-view/web-view-common.ts | 0 .../ui/web-view/web-view.android.ts | 0 .../ui/web-view/web-view.d.ts | 0 .../ui/web-view/web-view.ios.ts | 0 .../utils/debug.d.ts | 0 .../utils/debug.ts | 0 .../utils/lazy.d.ts | 0 .../utils/lazy.ts | 0 .../utils/mainthread-helper.android.ts | 0 .../utils/mainthread-helper.d.ts | 0 .../utils/mainthread-helper.ios.ts | 0 .../utils/module-merge.ts | 0 .../utils/number-utils.ts | 0 .../utils/package.json | 0 .../utils/types.d.ts | 0 .../utils/types.ts | 0 .../utils/utils-common.ts | 0 .../utils/utils.android.ts | 0 .../utils/utils.d.ts | 0 .../utils/utils.ios.ts | 0 .../xhr/Readme.md | 0 .../xhr/package.json | 0 {tns-core-modules => nativescript-core}/xhr/xhr.ts | 0 .../xml/Readme.md | 0 .../xml/package.json | 0 .../xml/xml.d.ts | 0 {tns-core-modules => nativescript-core}/xml/xml.js | 0 {tns-core-modules => nativescript-core}/xml/xml.ts | 0 tns-platform-declarations/tsconfig.json | 5 +---- 505 files changed, 5 insertions(+), 16 deletions(-) rename {tns-core-modules => nativescript-core}/application-settings/Readme.md (100%) rename {tns-core-modules => nativescript-core}/application-settings/application-settings-common.ts (100%) rename {tns-core-modules => nativescript-core}/application-settings/application-settings.android.ts (100%) rename {tns-core-modules => nativescript-core}/application-settings/application-settings.d.ts (100%) rename {tns-core-modules => nativescript-core}/application-settings/application-settings.ios.ts (100%) rename {tns-core-modules => nativescript-core}/application-settings/package.json (100%) rename {tns-core-modules => nativescript-core}/application/Readme.md (100%) rename {tns-core-modules => nativescript-core}/application/application-common.ts (100%) rename {tns-core-modules => nativescript-core}/application/application.android.ts (100%) rename {tns-core-modules => nativescript-core}/application/application.d.ts (100%) rename {tns-core-modules => nativescript-core}/application/application.ios.ts (100%) rename {tns-core-modules => nativescript-core}/application/package.json (100%) rename {tns-core-modules => nativescript-core}/bundle-entry-points.ts (100%) rename {tns-core-modules => nativescript-core}/color/color-common.ts (100%) rename {tns-core-modules => nativescript-core}/color/color.android.ts (100%) rename {tns-core-modules => nativescript-core}/color/color.d.ts (100%) rename {tns-core-modules => nativescript-core}/color/color.ios.ts (100%) rename {tns-core-modules => nativescript-core}/color/known-colors.d.ts (100%) rename {tns-core-modules => nativescript-core}/color/known-colors.ts (100%) rename {tns-core-modules => nativescript-core}/color/package.json (100%) rename {tns-core-modules => nativescript-core}/connectivity/connectivity.android.ts (100%) rename {tns-core-modules => nativescript-core}/connectivity/connectivity.d.ts (100%) rename {tns-core-modules => nativescript-core}/connectivity/connectivity.ios.ts (100%) rename {tns-core-modules => nativescript-core}/connectivity/package.json (100%) rename {tns-core-modules => nativescript-core}/console/console.ts (100%) rename {tns-core-modules => nativescript-core}/console/package.json (100%) rename {tns-core-modules => nativescript-core}/css-value/LICENSE (100%) rename {tns-core-modules => nativescript-core}/css-value/Readme.md (100%) rename {tns-core-modules => nativescript-core}/css-value/UPGRADING.md (100%) rename {tns-core-modules => nativescript-core}/css-value/index.js (100%) rename {tns-core-modules => nativescript-core}/css-value/package.json (100%) rename {tns-core-modules => nativescript-core}/css-value/reworkcss-value.d.ts (100%) rename {tns-core-modules => nativescript-core}/css/LICENSE (100%) rename {tns-core-modules => nativescript-core}/css/Readme.md (100%) rename {tns-core-modules => nativescript-core}/css/index.js (100%) rename {tns-core-modules => nativescript-core}/css/lib/parse/index.js (100%) rename {tns-core-modules => nativescript-core}/css/package.json (100%) rename {tns-core-modules => nativescript-core}/css/parser.ts (100%) rename {tns-core-modules => nativescript-core}/css/reworkcss.d.ts (100%) rename {tns-core-modules => nativescript-core}/data/observable-array/observable-array.d.ts (100%) rename {tns-core-modules => nativescript-core}/data/observable-array/observable-array.ts (100%) rename {tns-core-modules => nativescript-core}/data/observable-array/package.json (100%) rename {tns-core-modules => nativescript-core}/data/observable/observable.d.ts (100%) rename {tns-core-modules => nativescript-core}/data/observable/observable.ts (100%) rename {tns-core-modules => nativescript-core}/data/observable/package.json (100%) rename {tns-core-modules => nativescript-core}/data/package.json (100%) rename {tns-core-modules => nativescript-core}/data/virtual-array/package.json (100%) rename {tns-core-modules => nativescript-core}/data/virtual-array/virtual-array.d.ts (100%) rename {tns-core-modules => nativescript-core}/data/virtual-array/virtual-array.ts (100%) rename {tns-core-modules => nativescript-core}/debugger/InspectorBackendCommands.ios.ts (100%) rename {tns-core-modules => nativescript-core}/debugger/css-agent.d.ts (100%) rename {tns-core-modules => nativescript-core}/debugger/debugger.ts (100%) rename {tns-core-modules => nativescript-core}/debugger/devtools-elements.android.ts (100%) rename {tns-core-modules => nativescript-core}/debugger/devtools-elements.common.ts (100%) rename {tns-core-modules => nativescript-core}/debugger/devtools-elements.d.ts (100%) rename {tns-core-modules => nativescript-core}/debugger/devtools-elements.ios.ts (100%) rename {tns-core-modules => nativescript-core}/debugger/dom-node.d.ts (100%) rename {tns-core-modules => nativescript-core}/debugger/dom-node.ts (100%) rename {tns-core-modules => nativescript-core}/debugger/package.json (100%) rename {tns-core-modules => nativescript-core}/debugger/webinspector-css.ios.ts (100%) rename {tns-core-modules => nativescript-core}/debugger/webinspector-dom.ios.ts (100%) rename {tns-core-modules => nativescript-core}/debugger/webinspector-network.ios.ts (100%) rename {tns-core-modules => nativescript-core}/fetch/LICENSE (100%) rename {tns-core-modules => nativescript-core}/fetch/README.md (100%) rename {tns-core-modules => nativescript-core}/fetch/fetch.js (100%) rename {tns-core-modules => nativescript-core}/fetch/package.json (100%) rename {tns-core-modules => nativescript-core}/file-system/file-name-resolver/file-name-resolver.d.ts (100%) rename {tns-core-modules => nativescript-core}/file-system/file-name-resolver/file-name-resolver.ts (100%) rename {tns-core-modules => nativescript-core}/file-system/file-name-resolver/package.json (100%) rename {tns-core-modules => nativescript-core}/file-system/file-system-access.android.ts (100%) rename {tns-core-modules => nativescript-core}/file-system/file-system-access.d.ts (100%) rename {tns-core-modules => nativescript-core}/file-system/file-system-access.ios.ts (100%) rename {tns-core-modules => nativescript-core}/file-system/file-system.d.ts (100%) rename {tns-core-modules => nativescript-core}/file-system/file-system.ts (100%) rename {tns-core-modules => nativescript-core}/file-system/package.json (100%) rename {tns-core-modules => nativescript-core}/fps-meter/fps-meter.d.ts (100%) rename {tns-core-modules => nativescript-core}/fps-meter/fps-meter.ts (100%) rename {tns-core-modules => nativescript-core}/fps-meter/fps-native.android.ts (100%) rename {tns-core-modules => nativescript-core}/fps-meter/fps-native.d.ts (100%) rename {tns-core-modules => nativescript-core}/fps-meter/fps-native.ios.ts (100%) rename {tns-core-modules => nativescript-core}/fps-meter/package.json (100%) rename {tns-core-modules => nativescript-core}/globals/Readme.md (100%) rename {tns-core-modules => nativescript-core}/globals/core/globals-core.ts (100%) rename {tns-core-modules => nativescript-core}/globals/core/package.json (100%) rename {tns-core-modules => nativescript-core}/globals/decorators.ts (100%) rename {tns-core-modules => nativescript-core}/globals/globals.d.ts (100%) rename {tns-core-modules => nativescript-core}/globals/globals.ts (100%) rename {tns-core-modules => nativescript-core}/globals/package.json (100%) rename {tns-core-modules => nativescript-core}/globals/polyfills/dialogs/dialogs.ts (100%) rename {tns-core-modules => nativescript-core}/globals/polyfills/dialogs/package.json (100%) rename {tns-core-modules => nativescript-core}/globals/polyfills/fetch/fetch.ts (100%) rename {tns-core-modules => nativescript-core}/globals/polyfills/fetch/package.json (100%) rename {tns-core-modules => nativescript-core}/globals/polyfills/polyfill-helpers/package.json (100%) rename {tns-core-modules => nativescript-core}/globals/polyfills/polyfill-helpers/polyfill-helpers.ts (100%) rename {tns-core-modules => nativescript-core}/globals/polyfills/timers/package.json (100%) rename {tns-core-modules => nativescript-core}/globals/polyfills/timers/timers.ts (100%) rename {tns-core-modules => nativescript-core}/globals/polyfills/xhr/package.json (100%) rename {tns-core-modules => nativescript-core}/globals/polyfills/xhr/xhr.ts (100%) rename {tns-core-modules => nativescript-core}/globals/register-module-helpers.ts (100%) rename {tns-core-modules => nativescript-core}/globals/ts-helpers.ts (100%) rename {tns-core-modules => nativescript-core}/http/Readme.md (100%) rename {tns-core-modules => nativescript-core}/http/http-request/http-request-common.ts (100%) rename {tns-core-modules => nativescript-core}/http/http-request/http-request.android.ts (100%) rename {tns-core-modules => nativescript-core}/http/http-request/http-request.d.ts (100%) rename {tns-core-modules => nativescript-core}/http/http-request/http-request.ios.ts (100%) rename {tns-core-modules => nativescript-core}/http/http-request/package.json (100%) rename {tns-core-modules => nativescript-core}/http/http.d.ts (100%) rename {tns-core-modules => nativescript-core}/http/http.ts (100%) rename {tns-core-modules => nativescript-core}/http/package.json (100%) rename {tns-core-modules => nativescript-core}/image-asset/image-asset-common.ts (100%) rename {tns-core-modules => nativescript-core}/image-asset/image-asset.android.ts (100%) rename {tns-core-modules => nativescript-core}/image-asset/image-asset.d.ts (100%) rename {tns-core-modules => nativescript-core}/image-asset/image-asset.ios.ts (100%) rename {tns-core-modules => nativescript-core}/image-asset/package.json (100%) rename {tns-core-modules => nativescript-core}/image-source/Readme.md (100%) rename {tns-core-modules => nativescript-core}/image-source/image-source.android.ts (100%) rename {tns-core-modules => nativescript-core}/image-source/image-source.d.ts (100%) rename {tns-core-modules => nativescript-core}/image-source/image-source.ios.ts (100%) rename {tns-core-modules => nativescript-core}/image-source/package.json (100%) rename {tns-core-modules => nativescript-core}/inspector_modules.ios.ts (100%) rename {tns-core-modules => nativescript-core}/js-libs/easysax/LICENSE (100%) rename {tns-core-modules => nativescript-core}/js-libs/easysax/README.md (100%) rename {tns-core-modules => nativescript-core}/js-libs/easysax/easysax.d.ts (100%) rename {tns-core-modules => nativescript-core}/js-libs/easysax/easysax.js (100%) rename {tns-core-modules => nativescript-core}/js-libs/easysax/package.json (100%) rename {tns-core-modules => nativescript-core}/js-libs/esprima/LICENSE.BSD (100%) rename {tns-core-modules => nativescript-core}/js-libs/esprima/README.md (100%) rename {tns-core-modules => nativescript-core}/js-libs/esprima/esprima.d.ts (100%) rename {tns-core-modules => nativescript-core}/js-libs/esprima/esprima.js (100%) rename {tns-core-modules => nativescript-core}/js-libs/esprima/package.json (100%) rename {tns-core-modules => nativescript-core}/js-libs/polymer-expressions/LICENSE (100%) rename {tns-core-modules => nativescript-core}/js-libs/polymer-expressions/README.md (100%) rename {tns-core-modules => nativescript-core}/js-libs/polymer-expressions/package.json (100%) rename {tns-core-modules => nativescript-core}/js-libs/polymer-expressions/path-parser.js (100%) rename {tns-core-modules => nativescript-core}/js-libs/polymer-expressions/polymer-expressions.d.ts (100%) rename {tns-core-modules => nativescript-core}/js-libs/polymer-expressions/polymer-expressions.js (100%) rename {tns-core-modules => nativescript-core}/matrix/matrix.d.ts (100%) rename {tns-core-modules => nativescript-core}/matrix/matrix.ts (100%) rename {tns-core-modules => nativescript-core}/matrix/package.json (100%) rename {tns-core-modules => nativescript-core}/module-name-resolver/module-name-resolver.d.ts (100%) rename {tns-core-modules => nativescript-core}/module-name-resolver/module-name-resolver.ts (100%) rename {tns-core-modules => nativescript-core}/module-name-resolver/non-bundle-workflow-compat.ts (100%) rename {tns-core-modules => nativescript-core}/module-name-resolver/package.json (100%) rename {tns-core-modules => nativescript-core}/module-name-resolver/qualifier-matcher/package.json (100%) rename {tns-core-modules => nativescript-core}/module-name-resolver/qualifier-matcher/qualifier-matcher.d.ts (100%) rename {tns-core-modules => nativescript-core}/module-name-resolver/qualifier-matcher/qualifier-matcher.ts (100%) rename {tns-core-modules => nativescript-core}/module.d.ts (100%) rename {tns-core-modules => nativescript-core}/nativescript-error.d.ts (100%) rename {tns-core-modules => nativescript-core}/package.json (100%) rename {tns-core-modules => nativescript-core}/platform/package.json (100%) rename {tns-core-modules => nativescript-core}/platform/platform.android.ts (100%) rename {tns-core-modules => nativescript-core}/platform/platform.d.ts (100%) rename {tns-core-modules => nativescript-core}/platform/platform.ios.ts (100%) rename {tns-core-modules => nativescript-core}/platforms/README.md (100%) rename {tns-core-modules => nativescript-core}/platforms/ios/Podfile (100%) rename {tns-core-modules => nativescript-core}/platforms/ios/src/NativeScriptEmbedder.h (100%) rename {tns-core-modules => nativescript-core}/platforms/ios/src/NativeScriptEmbedder.m (100%) rename {tns-core-modules => nativescript-core}/platforms/ios/src/module.modulemap (100%) rename {tns-core-modules => nativescript-core}/platforms/ios/typings/objc!MaterialComponents.d.ts (100%) rename {tns-core-modules => nativescript-core}/profiling/package.json (100%) rename {tns-core-modules => nativescript-core}/profiling/profiling.d.ts (100%) rename {tns-core-modules => nativescript-core}/profiling/profiling.ts (100%) rename {tns-core-modules => nativescript-core}/references.d.ts (100%) rename {tns-core-modules => nativescript-core}/text/formatted-string.d.ts (100%) rename {tns-core-modules => nativescript-core}/text/formatted-string.ts (100%) rename {tns-core-modules => nativescript-core}/text/package.json (100%) rename {tns-core-modules => nativescript-core}/text/span.d.ts (100%) rename {tns-core-modules => nativescript-core}/text/span.ts (100%) rename {tns-core-modules => nativescript-core}/text/text.android.ts (100%) rename {tns-core-modules => nativescript-core}/text/text.d.ts (100%) rename {tns-core-modules => nativescript-core}/text/text.ios.ts (100%) rename {tns-core-modules => nativescript-core}/timer/Readme.md (100%) rename {tns-core-modules => nativescript-core}/timer/package.json (100%) rename {tns-core-modules => nativescript-core}/timer/timer.android.ts (100%) rename {tns-core-modules => nativescript-core}/timer/timer.d.ts (100%) rename {tns-core-modules => nativescript-core}/timer/timer.ios.ts (100%) rename {tns-core-modules => nativescript-core}/tns-core-modules.d.ts (100%) rename {tns-core-modules => nativescript-core}/trace/Readme.md (100%) rename {tns-core-modules => nativescript-core}/trace/package.json (100%) rename {tns-core-modules => nativescript-core}/trace/trace.d.ts (100%) rename {tns-core-modules => nativescript-core}/trace/trace.ts (100%) rename {tns-core-modules => nativescript-core}/tsconfig.json (100%) rename {tns-core-modules => nativescript-core}/ui/action-bar/action-bar-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/action-bar/action-bar.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/action-bar/action-bar.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/action-bar/action-bar.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/action-bar/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/activity-indicator/activity-indicator-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/activity-indicator/activity-indicator.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/activity-indicator/activity-indicator.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/activity-indicator/activity-indicator.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/activity-indicator/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/animation/animation-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/animation/animation.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/animation/animation.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/animation/animation.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/animation/keyframe-animation.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/animation/keyframe-animation.ts (100%) rename {tns-core-modules => nativescript-core}/ui/animation/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/border/border.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/border/border.ts (100%) rename {tns-core-modules => nativescript-core}/ui/border/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/bottom-navigation/bottom-navigation.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/bottom-navigation/bottom-navigation.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/bottom-navigation/bottom-navigation.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/bottom-navigation/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/builder/binding-builder.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/builder/binding-builder.ts (100%) rename {tns-core-modules => nativescript-core}/ui/builder/builder.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/builder/builder.ts (100%) rename {tns-core-modules => nativescript-core}/ui/builder/component-builder/component-builder.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/builder/component-builder/component-builder.ts (100%) rename {tns-core-modules => nativescript-core}/ui/builder/component-builder/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/builder/module-name-sanitizer.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/builder/module-name-sanitizer.ts (100%) rename {tns-core-modules => nativescript-core}/ui/builder/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/button/button-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/button/button.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/button/button.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/button/button.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/button/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/content-view/content-view.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/content-view/content-view.ts (100%) rename {tns-core-modules => nativescript-core}/ui/content-view/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/core/bindable/bindable.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/core/bindable/bindable.ts (100%) rename {tns-core-modules => nativescript-core}/ui/core/bindable/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/core/control-state-change/control-state-change.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/core/control-state-change/control-state-change.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/core/control-state-change/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/core/properties/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/core/properties/properties.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/core/properties/properties.ts (100%) rename {tns-core-modules => nativescript-core}/ui/core/view-base/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/core/view-base/view-base.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/core/view-base/view-base.ts (100%) rename {tns-core-modules => nativescript-core}/ui/core/view/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/core/view/view-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/core/view/view.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/core/view/view.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/core/view/view.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/core/weak-event-listener/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/core/weak-event-listener/weak-event-listener.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/core/weak-event-listener/weak-event-listener.ts (100%) rename {tns-core-modules => nativescript-core}/ui/date-picker/date-picker-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/date-picker/date-picker.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/date-picker/date-picker.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/date-picker/date-picker.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/date-picker/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/dialogs/Readme.md (100%) rename {tns-core-modules => nativescript-core}/ui/dialogs/dialogs-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/dialogs/dialogs.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/dialogs/dialogs.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/dialogs/dialogs.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/dialogs/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/editable-text-base/editable-text-base-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/editable-text-base/editable-text-base.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/editable-text-base/editable-text-base.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/editable-text-base/editable-text-base.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/editable-text-base/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/enums/enums.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/enums/enums.ts (100%) rename {tns-core-modules => nativescript-core}/ui/enums/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/frame/Readme.md (100%) rename {tns-core-modules => nativescript-core}/ui/frame/activity.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/frame/fragment.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/frame/fragment.transitions.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/frame/fragment.transitions.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/frame/fragment.transitions.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/frame/fragment.transitions.types.ts (100%) rename {tns-core-modules => nativescript-core}/ui/frame/frame-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/frame/frame-stack.ts (100%) rename {tns-core-modules => nativescript-core}/ui/frame/frame.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/frame/frame.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/frame/frame.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/frame/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/frame/transition-definitions.android.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/gestures/gestures-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/gestures/gestures.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/gestures/gestures.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/gestures/gestures.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/gestures/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/html-view/html-view-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/html-view/html-view.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/html-view/html-view.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/html-view/html-view.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/html-view/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/image-cache/image-cache-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/image-cache/image-cache.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/image-cache/image-cache.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/image-cache/image-cache.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/image-cache/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/image/image-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/image/image.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/image/image.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/image/image.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/image/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/label/label.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/label/label.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/label/label.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/label/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/absolute-layout/absolute-layout-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/absolute-layout/absolute-layout.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/absolute-layout/absolute-layout.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/absolute-layout/absolute-layout.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/absolute-layout/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/dock-layout/dock-layout-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/dock-layout/dock-layout.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/dock-layout/dock-layout.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/dock-layout/dock-layout.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/dock-layout/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/flexbox-layout/flexbox-layout-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/flexbox-layout/flexbox-layout.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/flexbox-layout/flexbox-layout.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/flexbox-layout/flexbox-layout.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/flexbox-layout/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/grid-layout/grid-layout-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/grid-layout/grid-layout.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/grid-layout/grid-layout.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/grid-layout/grid-layout.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/grid-layout/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/layout-base-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/layout-base.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/layout-base.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/layout-base.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/stack-layout/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/stack-layout/stack-layout-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/stack-layout/stack-layout.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/stack-layout/stack-layout.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/stack-layout/stack-layout.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/wrap-layout/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/wrap-layout/wrap-layout-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/wrap-layout/wrap-layout.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/wrap-layout/wrap-layout.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/layouts/wrap-layout/wrap-layout.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/list-picker/list-picker-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/list-picker/list-picker.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/list-picker/list-picker.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/list-picker/list-picker.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/list-picker/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/list-view/Readme.md (100%) rename {tns-core-modules => nativescript-core}/ui/list-view/list-view-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/list-view/list-view.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/list-view/list-view.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/list-view/list-view.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/list-view/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/page/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/page/page-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/page/page.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/page/page.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/page/page.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/placeholder/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/placeholder/placeholder.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/placeholder/placeholder.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/placeholder/placeholder.ts (100%) rename {tns-core-modules => nativescript-core}/ui/progress/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/progress/progress-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/progress/progress.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/progress/progress.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/progress/progress.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/proxy-view-container/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/proxy-view-container/proxy-view-container.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/proxy-view-container/proxy-view-container.ts (100%) rename {tns-core-modules => nativescript-core}/ui/repeater/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/repeater/repeater.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/repeater/repeater.ts (100%) rename {tns-core-modules => nativescript-core}/ui/scroll-view/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/scroll-view/scroll-view-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/scroll-view/scroll-view.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/scroll-view/scroll-view.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/scroll-view/scroll-view.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/search-bar/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/search-bar/search-bar-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/search-bar/search-bar.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/search-bar/search-bar.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/search-bar/search-bar.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/segmented-bar/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/segmented-bar/segmented-bar-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/segmented-bar/segmented-bar.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/segmented-bar/segmented-bar.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/segmented-bar/segmented-bar.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/slider/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/slider/slider-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/slider/slider.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/slider/slider.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/slider/slider.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/styling/background-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/styling/background.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/styling/background.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/styling/background.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/styling/converters.ts (100%) rename {tns-core-modules => nativescript-core}/ui/styling/css-animation-parser.ts (100%) rename {tns-core-modules => nativescript-core}/ui/styling/css-selector/css-selector.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/styling/css-selector/css-selector.ts (100%) rename {tns-core-modules => nativescript-core}/ui/styling/css-selector/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/styling/font-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/styling/font.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/styling/font.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/styling/font.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/styling/gradient.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/styling/linear-gradient.ts (100%) rename {tns-core-modules => nativescript-core}/ui/styling/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/styling/style-properties.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/styling/style-properties.ts (100%) rename {tns-core-modules => nativescript-core}/ui/styling/style-scope.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/styling/style-scope.ts (100%) rename {tns-core-modules => nativescript-core}/ui/styling/style/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/styling/style/style.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/styling/style/style.ts (100%) rename {tns-core-modules => nativescript-core}/ui/switch/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/switch/switch-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/switch/switch.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/switch/switch.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/switch/switch.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/tab-navigation-base/tab-content-item/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/tab-navigation-base/tab-content-item/tab-content-item-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/tab-navigation-base/tab-content-item/tab-content-item.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/tab-navigation-base/tab-content-item/tab-content-item.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/tab-navigation-base/tab-content-item/tab-content-item.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/tab-navigation-base/tab-navigation-base/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/tab-navigation-base/tab-navigation-base/tab-navigation-base.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/tab-navigation-base/tab-navigation-base/tab-navigation-base.ts (100%) rename {tns-core-modules => nativescript-core}/ui/tab-navigation-base/tab-strip-item/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/tab-navigation-base/tab-strip-item/tab-strip-item.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/tab-navigation-base/tab-strip-item/tab-strip-item.ts (100%) rename {tns-core-modules => nativescript-core}/ui/tab-navigation-base/tab-strip/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/tab-navigation-base/tab-strip/tab-strip.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/tab-navigation-base/tab-strip/tab-strip.ts (100%) rename {tns-core-modules => nativescript-core}/ui/tab-view/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/tab-view/tab-view-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/tab-view/tab-view.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/tab-view/tab-view.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/tab-view/tab-view.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/tabs/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/tabs/tabs-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/tabs/tabs.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/tabs/tabs.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/tabs/tabs.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/text-base/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/text-base/text-base-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/text-base/text-base.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/text-base/text-base.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/text-base/text-base.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/text-field/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/text-field/text-field-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/text-field/text-field.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/text-field/text-field.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/text-field/text-field.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/text-view/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/text-view/text-view.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/text-view/text-view.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/text-view/text-view.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/time-picker/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/time-picker/time-picker-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/time-picker/time-picker.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/time-picker/time-picker.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/time-picker/time-picker.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/transition/fade-transition.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/transition/fade-transition.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/transition/fade-transition.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/transition/flip-transition.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/transition/flip-transition.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/transition/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/transition/slide-transition.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/transition/slide-transition.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/transition/slide-transition.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/transition/transition.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/transition/transition.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/transition/transition.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/utils.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/utils.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/utils.ios.ts (100%) rename {tns-core-modules => nativescript-core}/ui/web-view/package.json (100%) rename {tns-core-modules => nativescript-core}/ui/web-view/web-view-common.ts (100%) rename {tns-core-modules => nativescript-core}/ui/web-view/web-view.android.ts (100%) rename {tns-core-modules => nativescript-core}/ui/web-view/web-view.d.ts (100%) rename {tns-core-modules => nativescript-core}/ui/web-view/web-view.ios.ts (100%) rename {tns-core-modules => nativescript-core}/utils/debug.d.ts (100%) rename {tns-core-modules => nativescript-core}/utils/debug.ts (100%) rename {tns-core-modules => nativescript-core}/utils/lazy.d.ts (100%) rename {tns-core-modules => nativescript-core}/utils/lazy.ts (100%) rename {tns-core-modules => nativescript-core}/utils/mainthread-helper.android.ts (100%) rename {tns-core-modules => nativescript-core}/utils/mainthread-helper.d.ts (100%) rename {tns-core-modules => nativescript-core}/utils/mainthread-helper.ios.ts (100%) rename {tns-core-modules => nativescript-core}/utils/module-merge.ts (100%) rename {tns-core-modules => nativescript-core}/utils/number-utils.ts (100%) rename {tns-core-modules => nativescript-core}/utils/package.json (100%) rename {tns-core-modules => nativescript-core}/utils/types.d.ts (100%) rename {tns-core-modules => nativescript-core}/utils/types.ts (100%) rename {tns-core-modules => nativescript-core}/utils/utils-common.ts (100%) rename {tns-core-modules => nativescript-core}/utils/utils.android.ts (100%) rename {tns-core-modules => nativescript-core}/utils/utils.d.ts (100%) rename {tns-core-modules => nativescript-core}/utils/utils.ios.ts (100%) rename {tns-core-modules => nativescript-core}/xhr/Readme.md (100%) rename {tns-core-modules => nativescript-core}/xhr/package.json (100%) rename {tns-core-modules => nativescript-core}/xhr/xhr.ts (100%) rename {tns-core-modules => nativescript-core}/xml/Readme.md (100%) rename {tns-core-modules => nativescript-core}/xml/package.json (100%) rename {tns-core-modules => nativescript-core}/xml/xml.d.ts (100%) rename {tns-core-modules => nativescript-core}/xml/xml.js (100%) rename {tns-core-modules => nativescript-core}/xml/xml.ts (100%) diff --git a/.gitignore b/.gitignore index 1137bd715a..48b1e1c60b 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ libs node_modules package platforms +!nativescript-core/platforms !tns-core-modules/platforms reports tags @@ -23,6 +24,7 @@ package-lock.json *.launch .settings/ .atom +.ctags-exclude # IDE - VSCode .vscode/* @@ -53,21 +55,11 @@ tscommand*.tmp.txt *.js # https://github.com/NativeScript/nativescript-dev-webpack/issues/932 !tns-core-modules/xml/xml.js +!nativescript-core/xml/xml.js !tests/hooks/**/*.* !js-libs/**/*.* !css/**/*.* !css-value/**/*.* !fetch/**/*.* -!apps/TelerikNEXT/lib/**/*.* !build/**/*.* .vs/ - -.baseDir.ts -.ctags-exclude - -TestRunResult.txt -.testsapprun - -tns-core-modules.base.d.ts -tns-core-modules.d.ts -tns-core-modules.es6.d.ts diff --git a/.travis.yml b/.travis.yml index f1db566d3f..72a04a310b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ script: - node_modules/.bin/webpack --env.android - node_modules/.bin/webpack --env.ios # modules transpilation -- cd ../tns-core-modules && npm i && cd .. +- cd ../nativescript-core && npm i && cd .. - npm install - npm run tsc - npm run tslint diff --git a/tns-core-modules/application-settings/Readme.md b/nativescript-core/application-settings/Readme.md similarity index 100% rename from tns-core-modules/application-settings/Readme.md rename to nativescript-core/application-settings/Readme.md diff --git a/tns-core-modules/application-settings/application-settings-common.ts b/nativescript-core/application-settings/application-settings-common.ts similarity index 100% rename from tns-core-modules/application-settings/application-settings-common.ts rename to nativescript-core/application-settings/application-settings-common.ts diff --git a/tns-core-modules/application-settings/application-settings.android.ts b/nativescript-core/application-settings/application-settings.android.ts similarity index 100% rename from tns-core-modules/application-settings/application-settings.android.ts rename to nativescript-core/application-settings/application-settings.android.ts diff --git a/tns-core-modules/application-settings/application-settings.d.ts b/nativescript-core/application-settings/application-settings.d.ts similarity index 100% rename from tns-core-modules/application-settings/application-settings.d.ts rename to nativescript-core/application-settings/application-settings.d.ts diff --git a/tns-core-modules/application-settings/application-settings.ios.ts b/nativescript-core/application-settings/application-settings.ios.ts similarity index 100% rename from tns-core-modules/application-settings/application-settings.ios.ts rename to nativescript-core/application-settings/application-settings.ios.ts diff --git a/tns-core-modules/application-settings/package.json b/nativescript-core/application-settings/package.json similarity index 100% rename from tns-core-modules/application-settings/package.json rename to nativescript-core/application-settings/package.json diff --git a/tns-core-modules/application/Readme.md b/nativescript-core/application/Readme.md similarity index 100% rename from tns-core-modules/application/Readme.md rename to nativescript-core/application/Readme.md diff --git a/tns-core-modules/application/application-common.ts b/nativescript-core/application/application-common.ts similarity index 100% rename from tns-core-modules/application/application-common.ts rename to nativescript-core/application/application-common.ts diff --git a/tns-core-modules/application/application.android.ts b/nativescript-core/application/application.android.ts similarity index 100% rename from tns-core-modules/application/application.android.ts rename to nativescript-core/application/application.android.ts diff --git a/tns-core-modules/application/application.d.ts b/nativescript-core/application/application.d.ts similarity index 100% rename from tns-core-modules/application/application.d.ts rename to nativescript-core/application/application.d.ts diff --git a/tns-core-modules/application/application.ios.ts b/nativescript-core/application/application.ios.ts similarity index 100% rename from tns-core-modules/application/application.ios.ts rename to nativescript-core/application/application.ios.ts diff --git a/tns-core-modules/application/package.json b/nativescript-core/application/package.json similarity index 100% rename from tns-core-modules/application/package.json rename to nativescript-core/application/package.json diff --git a/tns-core-modules/bundle-entry-points.ts b/nativescript-core/bundle-entry-points.ts similarity index 100% rename from tns-core-modules/bundle-entry-points.ts rename to nativescript-core/bundle-entry-points.ts diff --git a/tns-core-modules/color/color-common.ts b/nativescript-core/color/color-common.ts similarity index 100% rename from tns-core-modules/color/color-common.ts rename to nativescript-core/color/color-common.ts diff --git a/tns-core-modules/color/color.android.ts b/nativescript-core/color/color.android.ts similarity index 100% rename from tns-core-modules/color/color.android.ts rename to nativescript-core/color/color.android.ts diff --git a/tns-core-modules/color/color.d.ts b/nativescript-core/color/color.d.ts similarity index 100% rename from tns-core-modules/color/color.d.ts rename to nativescript-core/color/color.d.ts diff --git a/tns-core-modules/color/color.ios.ts b/nativescript-core/color/color.ios.ts similarity index 100% rename from tns-core-modules/color/color.ios.ts rename to nativescript-core/color/color.ios.ts diff --git a/tns-core-modules/color/known-colors.d.ts b/nativescript-core/color/known-colors.d.ts similarity index 100% rename from tns-core-modules/color/known-colors.d.ts rename to nativescript-core/color/known-colors.d.ts diff --git a/tns-core-modules/color/known-colors.ts b/nativescript-core/color/known-colors.ts similarity index 100% rename from tns-core-modules/color/known-colors.ts rename to nativescript-core/color/known-colors.ts diff --git a/tns-core-modules/color/package.json b/nativescript-core/color/package.json similarity index 100% rename from tns-core-modules/color/package.json rename to nativescript-core/color/package.json diff --git a/tns-core-modules/connectivity/connectivity.android.ts b/nativescript-core/connectivity/connectivity.android.ts similarity index 100% rename from tns-core-modules/connectivity/connectivity.android.ts rename to nativescript-core/connectivity/connectivity.android.ts diff --git a/tns-core-modules/connectivity/connectivity.d.ts b/nativescript-core/connectivity/connectivity.d.ts similarity index 100% rename from tns-core-modules/connectivity/connectivity.d.ts rename to nativescript-core/connectivity/connectivity.d.ts diff --git a/tns-core-modules/connectivity/connectivity.ios.ts b/nativescript-core/connectivity/connectivity.ios.ts similarity index 100% rename from tns-core-modules/connectivity/connectivity.ios.ts rename to nativescript-core/connectivity/connectivity.ios.ts diff --git a/tns-core-modules/connectivity/package.json b/nativescript-core/connectivity/package.json similarity index 100% rename from tns-core-modules/connectivity/package.json rename to nativescript-core/connectivity/package.json diff --git a/tns-core-modules/console/console.ts b/nativescript-core/console/console.ts similarity index 100% rename from tns-core-modules/console/console.ts rename to nativescript-core/console/console.ts diff --git a/tns-core-modules/console/package.json b/nativescript-core/console/package.json similarity index 100% rename from tns-core-modules/console/package.json rename to nativescript-core/console/package.json diff --git a/tns-core-modules/css-value/LICENSE b/nativescript-core/css-value/LICENSE similarity index 100% rename from tns-core-modules/css-value/LICENSE rename to nativescript-core/css-value/LICENSE diff --git a/tns-core-modules/css-value/Readme.md b/nativescript-core/css-value/Readme.md similarity index 100% rename from tns-core-modules/css-value/Readme.md rename to nativescript-core/css-value/Readme.md diff --git a/tns-core-modules/css-value/UPGRADING.md b/nativescript-core/css-value/UPGRADING.md similarity index 100% rename from tns-core-modules/css-value/UPGRADING.md rename to nativescript-core/css-value/UPGRADING.md diff --git a/tns-core-modules/css-value/index.js b/nativescript-core/css-value/index.js similarity index 100% rename from tns-core-modules/css-value/index.js rename to nativescript-core/css-value/index.js diff --git a/tns-core-modules/css-value/package.json b/nativescript-core/css-value/package.json similarity index 100% rename from tns-core-modules/css-value/package.json rename to nativescript-core/css-value/package.json diff --git a/tns-core-modules/css-value/reworkcss-value.d.ts b/nativescript-core/css-value/reworkcss-value.d.ts similarity index 100% rename from tns-core-modules/css-value/reworkcss-value.d.ts rename to nativescript-core/css-value/reworkcss-value.d.ts diff --git a/tns-core-modules/css/LICENSE b/nativescript-core/css/LICENSE similarity index 100% rename from tns-core-modules/css/LICENSE rename to nativescript-core/css/LICENSE diff --git a/tns-core-modules/css/Readme.md b/nativescript-core/css/Readme.md similarity index 100% rename from tns-core-modules/css/Readme.md rename to nativescript-core/css/Readme.md diff --git a/tns-core-modules/css/index.js b/nativescript-core/css/index.js similarity index 100% rename from tns-core-modules/css/index.js rename to nativescript-core/css/index.js diff --git a/tns-core-modules/css/lib/parse/index.js b/nativescript-core/css/lib/parse/index.js similarity index 100% rename from tns-core-modules/css/lib/parse/index.js rename to nativescript-core/css/lib/parse/index.js diff --git a/tns-core-modules/css/package.json b/nativescript-core/css/package.json similarity index 100% rename from tns-core-modules/css/package.json rename to nativescript-core/css/package.json diff --git a/tns-core-modules/css/parser.ts b/nativescript-core/css/parser.ts similarity index 100% rename from tns-core-modules/css/parser.ts rename to nativescript-core/css/parser.ts diff --git a/tns-core-modules/css/reworkcss.d.ts b/nativescript-core/css/reworkcss.d.ts similarity index 100% rename from tns-core-modules/css/reworkcss.d.ts rename to nativescript-core/css/reworkcss.d.ts diff --git a/tns-core-modules/data/observable-array/observable-array.d.ts b/nativescript-core/data/observable-array/observable-array.d.ts similarity index 100% rename from tns-core-modules/data/observable-array/observable-array.d.ts rename to nativescript-core/data/observable-array/observable-array.d.ts diff --git a/tns-core-modules/data/observable-array/observable-array.ts b/nativescript-core/data/observable-array/observable-array.ts similarity index 100% rename from tns-core-modules/data/observable-array/observable-array.ts rename to nativescript-core/data/observable-array/observable-array.ts diff --git a/tns-core-modules/data/observable-array/package.json b/nativescript-core/data/observable-array/package.json similarity index 100% rename from tns-core-modules/data/observable-array/package.json rename to nativescript-core/data/observable-array/package.json diff --git a/tns-core-modules/data/observable/observable.d.ts b/nativescript-core/data/observable/observable.d.ts similarity index 100% rename from tns-core-modules/data/observable/observable.d.ts rename to nativescript-core/data/observable/observable.d.ts diff --git a/tns-core-modules/data/observable/observable.ts b/nativescript-core/data/observable/observable.ts similarity index 100% rename from tns-core-modules/data/observable/observable.ts rename to nativescript-core/data/observable/observable.ts diff --git a/tns-core-modules/data/observable/package.json b/nativescript-core/data/observable/package.json similarity index 100% rename from tns-core-modules/data/observable/package.json rename to nativescript-core/data/observable/package.json diff --git a/tns-core-modules/data/package.json b/nativescript-core/data/package.json similarity index 100% rename from tns-core-modules/data/package.json rename to nativescript-core/data/package.json diff --git a/tns-core-modules/data/virtual-array/package.json b/nativescript-core/data/virtual-array/package.json similarity index 100% rename from tns-core-modules/data/virtual-array/package.json rename to nativescript-core/data/virtual-array/package.json diff --git a/tns-core-modules/data/virtual-array/virtual-array.d.ts b/nativescript-core/data/virtual-array/virtual-array.d.ts similarity index 100% rename from tns-core-modules/data/virtual-array/virtual-array.d.ts rename to nativescript-core/data/virtual-array/virtual-array.d.ts diff --git a/tns-core-modules/data/virtual-array/virtual-array.ts b/nativescript-core/data/virtual-array/virtual-array.ts similarity index 100% rename from tns-core-modules/data/virtual-array/virtual-array.ts rename to nativescript-core/data/virtual-array/virtual-array.ts diff --git a/tns-core-modules/debugger/InspectorBackendCommands.ios.ts b/nativescript-core/debugger/InspectorBackendCommands.ios.ts similarity index 100% rename from tns-core-modules/debugger/InspectorBackendCommands.ios.ts rename to nativescript-core/debugger/InspectorBackendCommands.ios.ts diff --git a/tns-core-modules/debugger/css-agent.d.ts b/nativescript-core/debugger/css-agent.d.ts similarity index 100% rename from tns-core-modules/debugger/css-agent.d.ts rename to nativescript-core/debugger/css-agent.d.ts diff --git a/tns-core-modules/debugger/debugger.ts b/nativescript-core/debugger/debugger.ts similarity index 100% rename from tns-core-modules/debugger/debugger.ts rename to nativescript-core/debugger/debugger.ts diff --git a/tns-core-modules/debugger/devtools-elements.android.ts b/nativescript-core/debugger/devtools-elements.android.ts similarity index 100% rename from tns-core-modules/debugger/devtools-elements.android.ts rename to nativescript-core/debugger/devtools-elements.android.ts diff --git a/tns-core-modules/debugger/devtools-elements.common.ts b/nativescript-core/debugger/devtools-elements.common.ts similarity index 100% rename from tns-core-modules/debugger/devtools-elements.common.ts rename to nativescript-core/debugger/devtools-elements.common.ts diff --git a/tns-core-modules/debugger/devtools-elements.d.ts b/nativescript-core/debugger/devtools-elements.d.ts similarity index 100% rename from tns-core-modules/debugger/devtools-elements.d.ts rename to nativescript-core/debugger/devtools-elements.d.ts diff --git a/tns-core-modules/debugger/devtools-elements.ios.ts b/nativescript-core/debugger/devtools-elements.ios.ts similarity index 100% rename from tns-core-modules/debugger/devtools-elements.ios.ts rename to nativescript-core/debugger/devtools-elements.ios.ts diff --git a/tns-core-modules/debugger/dom-node.d.ts b/nativescript-core/debugger/dom-node.d.ts similarity index 100% rename from tns-core-modules/debugger/dom-node.d.ts rename to nativescript-core/debugger/dom-node.d.ts diff --git a/tns-core-modules/debugger/dom-node.ts b/nativescript-core/debugger/dom-node.ts similarity index 100% rename from tns-core-modules/debugger/dom-node.ts rename to nativescript-core/debugger/dom-node.ts diff --git a/tns-core-modules/debugger/package.json b/nativescript-core/debugger/package.json similarity index 100% rename from tns-core-modules/debugger/package.json rename to nativescript-core/debugger/package.json diff --git a/tns-core-modules/debugger/webinspector-css.ios.ts b/nativescript-core/debugger/webinspector-css.ios.ts similarity index 100% rename from tns-core-modules/debugger/webinspector-css.ios.ts rename to nativescript-core/debugger/webinspector-css.ios.ts diff --git a/tns-core-modules/debugger/webinspector-dom.ios.ts b/nativescript-core/debugger/webinspector-dom.ios.ts similarity index 100% rename from tns-core-modules/debugger/webinspector-dom.ios.ts rename to nativescript-core/debugger/webinspector-dom.ios.ts diff --git a/tns-core-modules/debugger/webinspector-network.ios.ts b/nativescript-core/debugger/webinspector-network.ios.ts similarity index 100% rename from tns-core-modules/debugger/webinspector-network.ios.ts rename to nativescript-core/debugger/webinspector-network.ios.ts diff --git a/tns-core-modules/fetch/LICENSE b/nativescript-core/fetch/LICENSE similarity index 100% rename from tns-core-modules/fetch/LICENSE rename to nativescript-core/fetch/LICENSE diff --git a/tns-core-modules/fetch/README.md b/nativescript-core/fetch/README.md similarity index 100% rename from tns-core-modules/fetch/README.md rename to nativescript-core/fetch/README.md diff --git a/tns-core-modules/fetch/fetch.js b/nativescript-core/fetch/fetch.js similarity index 100% rename from tns-core-modules/fetch/fetch.js rename to nativescript-core/fetch/fetch.js diff --git a/tns-core-modules/fetch/package.json b/nativescript-core/fetch/package.json similarity index 100% rename from tns-core-modules/fetch/package.json rename to nativescript-core/fetch/package.json diff --git a/tns-core-modules/file-system/file-name-resolver/file-name-resolver.d.ts b/nativescript-core/file-system/file-name-resolver/file-name-resolver.d.ts similarity index 100% rename from tns-core-modules/file-system/file-name-resolver/file-name-resolver.d.ts rename to nativescript-core/file-system/file-name-resolver/file-name-resolver.d.ts diff --git a/tns-core-modules/file-system/file-name-resolver/file-name-resolver.ts b/nativescript-core/file-system/file-name-resolver/file-name-resolver.ts similarity index 100% rename from tns-core-modules/file-system/file-name-resolver/file-name-resolver.ts rename to nativescript-core/file-system/file-name-resolver/file-name-resolver.ts diff --git a/tns-core-modules/file-system/file-name-resolver/package.json b/nativescript-core/file-system/file-name-resolver/package.json similarity index 100% rename from tns-core-modules/file-system/file-name-resolver/package.json rename to nativescript-core/file-system/file-name-resolver/package.json diff --git a/tns-core-modules/file-system/file-system-access.android.ts b/nativescript-core/file-system/file-system-access.android.ts similarity index 100% rename from tns-core-modules/file-system/file-system-access.android.ts rename to nativescript-core/file-system/file-system-access.android.ts diff --git a/tns-core-modules/file-system/file-system-access.d.ts b/nativescript-core/file-system/file-system-access.d.ts similarity index 100% rename from tns-core-modules/file-system/file-system-access.d.ts rename to nativescript-core/file-system/file-system-access.d.ts diff --git a/tns-core-modules/file-system/file-system-access.ios.ts b/nativescript-core/file-system/file-system-access.ios.ts similarity index 100% rename from tns-core-modules/file-system/file-system-access.ios.ts rename to nativescript-core/file-system/file-system-access.ios.ts diff --git a/tns-core-modules/file-system/file-system.d.ts b/nativescript-core/file-system/file-system.d.ts similarity index 100% rename from tns-core-modules/file-system/file-system.d.ts rename to nativescript-core/file-system/file-system.d.ts diff --git a/tns-core-modules/file-system/file-system.ts b/nativescript-core/file-system/file-system.ts similarity index 100% rename from tns-core-modules/file-system/file-system.ts rename to nativescript-core/file-system/file-system.ts diff --git a/tns-core-modules/file-system/package.json b/nativescript-core/file-system/package.json similarity index 100% rename from tns-core-modules/file-system/package.json rename to nativescript-core/file-system/package.json diff --git a/tns-core-modules/fps-meter/fps-meter.d.ts b/nativescript-core/fps-meter/fps-meter.d.ts similarity index 100% rename from tns-core-modules/fps-meter/fps-meter.d.ts rename to nativescript-core/fps-meter/fps-meter.d.ts diff --git a/tns-core-modules/fps-meter/fps-meter.ts b/nativescript-core/fps-meter/fps-meter.ts similarity index 100% rename from tns-core-modules/fps-meter/fps-meter.ts rename to nativescript-core/fps-meter/fps-meter.ts diff --git a/tns-core-modules/fps-meter/fps-native.android.ts b/nativescript-core/fps-meter/fps-native.android.ts similarity index 100% rename from tns-core-modules/fps-meter/fps-native.android.ts rename to nativescript-core/fps-meter/fps-native.android.ts diff --git a/tns-core-modules/fps-meter/fps-native.d.ts b/nativescript-core/fps-meter/fps-native.d.ts similarity index 100% rename from tns-core-modules/fps-meter/fps-native.d.ts rename to nativescript-core/fps-meter/fps-native.d.ts diff --git a/tns-core-modules/fps-meter/fps-native.ios.ts b/nativescript-core/fps-meter/fps-native.ios.ts similarity index 100% rename from tns-core-modules/fps-meter/fps-native.ios.ts rename to nativescript-core/fps-meter/fps-native.ios.ts diff --git a/tns-core-modules/fps-meter/package.json b/nativescript-core/fps-meter/package.json similarity index 100% rename from tns-core-modules/fps-meter/package.json rename to nativescript-core/fps-meter/package.json diff --git a/tns-core-modules/globals/Readme.md b/nativescript-core/globals/Readme.md similarity index 100% rename from tns-core-modules/globals/Readme.md rename to nativescript-core/globals/Readme.md diff --git a/tns-core-modules/globals/core/globals-core.ts b/nativescript-core/globals/core/globals-core.ts similarity index 100% rename from tns-core-modules/globals/core/globals-core.ts rename to nativescript-core/globals/core/globals-core.ts diff --git a/tns-core-modules/globals/core/package.json b/nativescript-core/globals/core/package.json similarity index 100% rename from tns-core-modules/globals/core/package.json rename to nativescript-core/globals/core/package.json diff --git a/tns-core-modules/globals/decorators.ts b/nativescript-core/globals/decorators.ts similarity index 100% rename from tns-core-modules/globals/decorators.ts rename to nativescript-core/globals/decorators.ts diff --git a/tns-core-modules/globals/globals.d.ts b/nativescript-core/globals/globals.d.ts similarity index 100% rename from tns-core-modules/globals/globals.d.ts rename to nativescript-core/globals/globals.d.ts diff --git a/tns-core-modules/globals/globals.ts b/nativescript-core/globals/globals.ts similarity index 100% rename from tns-core-modules/globals/globals.ts rename to nativescript-core/globals/globals.ts diff --git a/tns-core-modules/globals/package.json b/nativescript-core/globals/package.json similarity index 100% rename from tns-core-modules/globals/package.json rename to nativescript-core/globals/package.json diff --git a/tns-core-modules/globals/polyfills/dialogs/dialogs.ts b/nativescript-core/globals/polyfills/dialogs/dialogs.ts similarity index 100% rename from tns-core-modules/globals/polyfills/dialogs/dialogs.ts rename to nativescript-core/globals/polyfills/dialogs/dialogs.ts diff --git a/tns-core-modules/globals/polyfills/dialogs/package.json b/nativescript-core/globals/polyfills/dialogs/package.json similarity index 100% rename from tns-core-modules/globals/polyfills/dialogs/package.json rename to nativescript-core/globals/polyfills/dialogs/package.json diff --git a/tns-core-modules/globals/polyfills/fetch/fetch.ts b/nativescript-core/globals/polyfills/fetch/fetch.ts similarity index 100% rename from tns-core-modules/globals/polyfills/fetch/fetch.ts rename to nativescript-core/globals/polyfills/fetch/fetch.ts diff --git a/tns-core-modules/globals/polyfills/fetch/package.json b/nativescript-core/globals/polyfills/fetch/package.json similarity index 100% rename from tns-core-modules/globals/polyfills/fetch/package.json rename to nativescript-core/globals/polyfills/fetch/package.json diff --git a/tns-core-modules/globals/polyfills/polyfill-helpers/package.json b/nativescript-core/globals/polyfills/polyfill-helpers/package.json similarity index 100% rename from tns-core-modules/globals/polyfills/polyfill-helpers/package.json rename to nativescript-core/globals/polyfills/polyfill-helpers/package.json diff --git a/tns-core-modules/globals/polyfills/polyfill-helpers/polyfill-helpers.ts b/nativescript-core/globals/polyfills/polyfill-helpers/polyfill-helpers.ts similarity index 100% rename from tns-core-modules/globals/polyfills/polyfill-helpers/polyfill-helpers.ts rename to nativescript-core/globals/polyfills/polyfill-helpers/polyfill-helpers.ts diff --git a/tns-core-modules/globals/polyfills/timers/package.json b/nativescript-core/globals/polyfills/timers/package.json similarity index 100% rename from tns-core-modules/globals/polyfills/timers/package.json rename to nativescript-core/globals/polyfills/timers/package.json diff --git a/tns-core-modules/globals/polyfills/timers/timers.ts b/nativescript-core/globals/polyfills/timers/timers.ts similarity index 100% rename from tns-core-modules/globals/polyfills/timers/timers.ts rename to nativescript-core/globals/polyfills/timers/timers.ts diff --git a/tns-core-modules/globals/polyfills/xhr/package.json b/nativescript-core/globals/polyfills/xhr/package.json similarity index 100% rename from tns-core-modules/globals/polyfills/xhr/package.json rename to nativescript-core/globals/polyfills/xhr/package.json diff --git a/tns-core-modules/globals/polyfills/xhr/xhr.ts b/nativescript-core/globals/polyfills/xhr/xhr.ts similarity index 100% rename from tns-core-modules/globals/polyfills/xhr/xhr.ts rename to nativescript-core/globals/polyfills/xhr/xhr.ts diff --git a/tns-core-modules/globals/register-module-helpers.ts b/nativescript-core/globals/register-module-helpers.ts similarity index 100% rename from tns-core-modules/globals/register-module-helpers.ts rename to nativescript-core/globals/register-module-helpers.ts diff --git a/tns-core-modules/globals/ts-helpers.ts b/nativescript-core/globals/ts-helpers.ts similarity index 100% rename from tns-core-modules/globals/ts-helpers.ts rename to nativescript-core/globals/ts-helpers.ts diff --git a/tns-core-modules/http/Readme.md b/nativescript-core/http/Readme.md similarity index 100% rename from tns-core-modules/http/Readme.md rename to nativescript-core/http/Readme.md diff --git a/tns-core-modules/http/http-request/http-request-common.ts b/nativescript-core/http/http-request/http-request-common.ts similarity index 100% rename from tns-core-modules/http/http-request/http-request-common.ts rename to nativescript-core/http/http-request/http-request-common.ts diff --git a/tns-core-modules/http/http-request/http-request.android.ts b/nativescript-core/http/http-request/http-request.android.ts similarity index 100% rename from tns-core-modules/http/http-request/http-request.android.ts rename to nativescript-core/http/http-request/http-request.android.ts diff --git a/tns-core-modules/http/http-request/http-request.d.ts b/nativescript-core/http/http-request/http-request.d.ts similarity index 100% rename from tns-core-modules/http/http-request/http-request.d.ts rename to nativescript-core/http/http-request/http-request.d.ts diff --git a/tns-core-modules/http/http-request/http-request.ios.ts b/nativescript-core/http/http-request/http-request.ios.ts similarity index 100% rename from tns-core-modules/http/http-request/http-request.ios.ts rename to nativescript-core/http/http-request/http-request.ios.ts diff --git a/tns-core-modules/http/http-request/package.json b/nativescript-core/http/http-request/package.json similarity index 100% rename from tns-core-modules/http/http-request/package.json rename to nativescript-core/http/http-request/package.json diff --git a/tns-core-modules/http/http.d.ts b/nativescript-core/http/http.d.ts similarity index 100% rename from tns-core-modules/http/http.d.ts rename to nativescript-core/http/http.d.ts diff --git a/tns-core-modules/http/http.ts b/nativescript-core/http/http.ts similarity index 100% rename from tns-core-modules/http/http.ts rename to nativescript-core/http/http.ts diff --git a/tns-core-modules/http/package.json b/nativescript-core/http/package.json similarity index 100% rename from tns-core-modules/http/package.json rename to nativescript-core/http/package.json diff --git a/tns-core-modules/image-asset/image-asset-common.ts b/nativescript-core/image-asset/image-asset-common.ts similarity index 100% rename from tns-core-modules/image-asset/image-asset-common.ts rename to nativescript-core/image-asset/image-asset-common.ts diff --git a/tns-core-modules/image-asset/image-asset.android.ts b/nativescript-core/image-asset/image-asset.android.ts similarity index 100% rename from tns-core-modules/image-asset/image-asset.android.ts rename to nativescript-core/image-asset/image-asset.android.ts diff --git a/tns-core-modules/image-asset/image-asset.d.ts b/nativescript-core/image-asset/image-asset.d.ts similarity index 100% rename from tns-core-modules/image-asset/image-asset.d.ts rename to nativescript-core/image-asset/image-asset.d.ts diff --git a/tns-core-modules/image-asset/image-asset.ios.ts b/nativescript-core/image-asset/image-asset.ios.ts similarity index 100% rename from tns-core-modules/image-asset/image-asset.ios.ts rename to nativescript-core/image-asset/image-asset.ios.ts diff --git a/tns-core-modules/image-asset/package.json b/nativescript-core/image-asset/package.json similarity index 100% rename from tns-core-modules/image-asset/package.json rename to nativescript-core/image-asset/package.json diff --git a/tns-core-modules/image-source/Readme.md b/nativescript-core/image-source/Readme.md similarity index 100% rename from tns-core-modules/image-source/Readme.md rename to nativescript-core/image-source/Readme.md diff --git a/tns-core-modules/image-source/image-source.android.ts b/nativescript-core/image-source/image-source.android.ts similarity index 100% rename from tns-core-modules/image-source/image-source.android.ts rename to nativescript-core/image-source/image-source.android.ts diff --git a/tns-core-modules/image-source/image-source.d.ts b/nativescript-core/image-source/image-source.d.ts similarity index 100% rename from tns-core-modules/image-source/image-source.d.ts rename to nativescript-core/image-source/image-source.d.ts diff --git a/tns-core-modules/image-source/image-source.ios.ts b/nativescript-core/image-source/image-source.ios.ts similarity index 100% rename from tns-core-modules/image-source/image-source.ios.ts rename to nativescript-core/image-source/image-source.ios.ts diff --git a/tns-core-modules/image-source/package.json b/nativescript-core/image-source/package.json similarity index 100% rename from tns-core-modules/image-source/package.json rename to nativescript-core/image-source/package.json diff --git a/tns-core-modules/inspector_modules.ios.ts b/nativescript-core/inspector_modules.ios.ts similarity index 100% rename from tns-core-modules/inspector_modules.ios.ts rename to nativescript-core/inspector_modules.ios.ts diff --git a/tns-core-modules/js-libs/easysax/LICENSE b/nativescript-core/js-libs/easysax/LICENSE similarity index 100% rename from tns-core-modules/js-libs/easysax/LICENSE rename to nativescript-core/js-libs/easysax/LICENSE diff --git a/tns-core-modules/js-libs/easysax/README.md b/nativescript-core/js-libs/easysax/README.md similarity index 100% rename from tns-core-modules/js-libs/easysax/README.md rename to nativescript-core/js-libs/easysax/README.md diff --git a/tns-core-modules/js-libs/easysax/easysax.d.ts b/nativescript-core/js-libs/easysax/easysax.d.ts similarity index 100% rename from tns-core-modules/js-libs/easysax/easysax.d.ts rename to nativescript-core/js-libs/easysax/easysax.d.ts diff --git a/tns-core-modules/js-libs/easysax/easysax.js b/nativescript-core/js-libs/easysax/easysax.js similarity index 100% rename from tns-core-modules/js-libs/easysax/easysax.js rename to nativescript-core/js-libs/easysax/easysax.js diff --git a/tns-core-modules/js-libs/easysax/package.json b/nativescript-core/js-libs/easysax/package.json similarity index 100% rename from tns-core-modules/js-libs/easysax/package.json rename to nativescript-core/js-libs/easysax/package.json diff --git a/tns-core-modules/js-libs/esprima/LICENSE.BSD b/nativescript-core/js-libs/esprima/LICENSE.BSD similarity index 100% rename from tns-core-modules/js-libs/esprima/LICENSE.BSD rename to nativescript-core/js-libs/esprima/LICENSE.BSD diff --git a/tns-core-modules/js-libs/esprima/README.md b/nativescript-core/js-libs/esprima/README.md similarity index 100% rename from tns-core-modules/js-libs/esprima/README.md rename to nativescript-core/js-libs/esprima/README.md diff --git a/tns-core-modules/js-libs/esprima/esprima.d.ts b/nativescript-core/js-libs/esprima/esprima.d.ts similarity index 100% rename from tns-core-modules/js-libs/esprima/esprima.d.ts rename to nativescript-core/js-libs/esprima/esprima.d.ts diff --git a/tns-core-modules/js-libs/esprima/esprima.js b/nativescript-core/js-libs/esprima/esprima.js similarity index 100% rename from tns-core-modules/js-libs/esprima/esprima.js rename to nativescript-core/js-libs/esprima/esprima.js diff --git a/tns-core-modules/js-libs/esprima/package.json b/nativescript-core/js-libs/esprima/package.json similarity index 100% rename from tns-core-modules/js-libs/esprima/package.json rename to nativescript-core/js-libs/esprima/package.json diff --git a/tns-core-modules/js-libs/polymer-expressions/LICENSE b/nativescript-core/js-libs/polymer-expressions/LICENSE similarity index 100% rename from tns-core-modules/js-libs/polymer-expressions/LICENSE rename to nativescript-core/js-libs/polymer-expressions/LICENSE diff --git a/tns-core-modules/js-libs/polymer-expressions/README.md b/nativescript-core/js-libs/polymer-expressions/README.md similarity index 100% rename from tns-core-modules/js-libs/polymer-expressions/README.md rename to nativescript-core/js-libs/polymer-expressions/README.md diff --git a/tns-core-modules/js-libs/polymer-expressions/package.json b/nativescript-core/js-libs/polymer-expressions/package.json similarity index 100% rename from tns-core-modules/js-libs/polymer-expressions/package.json rename to nativescript-core/js-libs/polymer-expressions/package.json diff --git a/tns-core-modules/js-libs/polymer-expressions/path-parser.js b/nativescript-core/js-libs/polymer-expressions/path-parser.js similarity index 100% rename from tns-core-modules/js-libs/polymer-expressions/path-parser.js rename to nativescript-core/js-libs/polymer-expressions/path-parser.js diff --git a/tns-core-modules/js-libs/polymer-expressions/polymer-expressions.d.ts b/nativescript-core/js-libs/polymer-expressions/polymer-expressions.d.ts similarity index 100% rename from tns-core-modules/js-libs/polymer-expressions/polymer-expressions.d.ts rename to nativescript-core/js-libs/polymer-expressions/polymer-expressions.d.ts diff --git a/tns-core-modules/js-libs/polymer-expressions/polymer-expressions.js b/nativescript-core/js-libs/polymer-expressions/polymer-expressions.js similarity index 100% rename from tns-core-modules/js-libs/polymer-expressions/polymer-expressions.js rename to nativescript-core/js-libs/polymer-expressions/polymer-expressions.js diff --git a/tns-core-modules/matrix/matrix.d.ts b/nativescript-core/matrix/matrix.d.ts similarity index 100% rename from tns-core-modules/matrix/matrix.d.ts rename to nativescript-core/matrix/matrix.d.ts diff --git a/tns-core-modules/matrix/matrix.ts b/nativescript-core/matrix/matrix.ts similarity index 100% rename from tns-core-modules/matrix/matrix.ts rename to nativescript-core/matrix/matrix.ts diff --git a/tns-core-modules/matrix/package.json b/nativescript-core/matrix/package.json similarity index 100% rename from tns-core-modules/matrix/package.json rename to nativescript-core/matrix/package.json diff --git a/tns-core-modules/module-name-resolver/module-name-resolver.d.ts b/nativescript-core/module-name-resolver/module-name-resolver.d.ts similarity index 100% rename from tns-core-modules/module-name-resolver/module-name-resolver.d.ts rename to nativescript-core/module-name-resolver/module-name-resolver.d.ts diff --git a/tns-core-modules/module-name-resolver/module-name-resolver.ts b/nativescript-core/module-name-resolver/module-name-resolver.ts similarity index 100% rename from tns-core-modules/module-name-resolver/module-name-resolver.ts rename to nativescript-core/module-name-resolver/module-name-resolver.ts diff --git a/tns-core-modules/module-name-resolver/non-bundle-workflow-compat.ts b/nativescript-core/module-name-resolver/non-bundle-workflow-compat.ts similarity index 100% rename from tns-core-modules/module-name-resolver/non-bundle-workflow-compat.ts rename to nativescript-core/module-name-resolver/non-bundle-workflow-compat.ts diff --git a/tns-core-modules/module-name-resolver/package.json b/nativescript-core/module-name-resolver/package.json similarity index 100% rename from tns-core-modules/module-name-resolver/package.json rename to nativescript-core/module-name-resolver/package.json diff --git a/tns-core-modules/module-name-resolver/qualifier-matcher/package.json b/nativescript-core/module-name-resolver/qualifier-matcher/package.json similarity index 100% rename from tns-core-modules/module-name-resolver/qualifier-matcher/package.json rename to nativescript-core/module-name-resolver/qualifier-matcher/package.json diff --git a/tns-core-modules/module-name-resolver/qualifier-matcher/qualifier-matcher.d.ts b/nativescript-core/module-name-resolver/qualifier-matcher/qualifier-matcher.d.ts similarity index 100% rename from tns-core-modules/module-name-resolver/qualifier-matcher/qualifier-matcher.d.ts rename to nativescript-core/module-name-resolver/qualifier-matcher/qualifier-matcher.d.ts diff --git a/tns-core-modules/module-name-resolver/qualifier-matcher/qualifier-matcher.ts b/nativescript-core/module-name-resolver/qualifier-matcher/qualifier-matcher.ts similarity index 100% rename from tns-core-modules/module-name-resolver/qualifier-matcher/qualifier-matcher.ts rename to nativescript-core/module-name-resolver/qualifier-matcher/qualifier-matcher.ts diff --git a/tns-core-modules/module.d.ts b/nativescript-core/module.d.ts similarity index 100% rename from tns-core-modules/module.d.ts rename to nativescript-core/module.d.ts diff --git a/tns-core-modules/nativescript-error.d.ts b/nativescript-core/nativescript-error.d.ts similarity index 100% rename from tns-core-modules/nativescript-error.d.ts rename to nativescript-core/nativescript-error.d.ts diff --git a/tns-core-modules/package.json b/nativescript-core/package.json similarity index 100% rename from tns-core-modules/package.json rename to nativescript-core/package.json diff --git a/tns-core-modules/platform/package.json b/nativescript-core/platform/package.json similarity index 100% rename from tns-core-modules/platform/package.json rename to nativescript-core/platform/package.json diff --git a/tns-core-modules/platform/platform.android.ts b/nativescript-core/platform/platform.android.ts similarity index 100% rename from tns-core-modules/platform/platform.android.ts rename to nativescript-core/platform/platform.android.ts diff --git a/tns-core-modules/platform/platform.d.ts b/nativescript-core/platform/platform.d.ts similarity index 100% rename from tns-core-modules/platform/platform.d.ts rename to nativescript-core/platform/platform.d.ts diff --git a/tns-core-modules/platform/platform.ios.ts b/nativescript-core/platform/platform.ios.ts similarity index 100% rename from tns-core-modules/platform/platform.ios.ts rename to nativescript-core/platform/platform.ios.ts diff --git a/tns-core-modules/platforms/README.md b/nativescript-core/platforms/README.md similarity index 100% rename from tns-core-modules/platforms/README.md rename to nativescript-core/platforms/README.md diff --git a/tns-core-modules/platforms/ios/Podfile b/nativescript-core/platforms/ios/Podfile similarity index 100% rename from tns-core-modules/platforms/ios/Podfile rename to nativescript-core/platforms/ios/Podfile diff --git a/tns-core-modules/platforms/ios/src/NativeScriptEmbedder.h b/nativescript-core/platforms/ios/src/NativeScriptEmbedder.h similarity index 100% rename from tns-core-modules/platforms/ios/src/NativeScriptEmbedder.h rename to nativescript-core/platforms/ios/src/NativeScriptEmbedder.h diff --git a/tns-core-modules/platforms/ios/src/NativeScriptEmbedder.m b/nativescript-core/platforms/ios/src/NativeScriptEmbedder.m similarity index 100% rename from tns-core-modules/platforms/ios/src/NativeScriptEmbedder.m rename to nativescript-core/platforms/ios/src/NativeScriptEmbedder.m diff --git a/tns-core-modules/platforms/ios/src/module.modulemap b/nativescript-core/platforms/ios/src/module.modulemap similarity index 100% rename from tns-core-modules/platforms/ios/src/module.modulemap rename to nativescript-core/platforms/ios/src/module.modulemap diff --git a/tns-core-modules/platforms/ios/typings/objc!MaterialComponents.d.ts b/nativescript-core/platforms/ios/typings/objc!MaterialComponents.d.ts similarity index 100% rename from tns-core-modules/platforms/ios/typings/objc!MaterialComponents.d.ts rename to nativescript-core/platforms/ios/typings/objc!MaterialComponents.d.ts diff --git a/tns-core-modules/profiling/package.json b/nativescript-core/profiling/package.json similarity index 100% rename from tns-core-modules/profiling/package.json rename to nativescript-core/profiling/package.json diff --git a/tns-core-modules/profiling/profiling.d.ts b/nativescript-core/profiling/profiling.d.ts similarity index 100% rename from tns-core-modules/profiling/profiling.d.ts rename to nativescript-core/profiling/profiling.d.ts diff --git a/tns-core-modules/profiling/profiling.ts b/nativescript-core/profiling/profiling.ts similarity index 100% rename from tns-core-modules/profiling/profiling.ts rename to nativescript-core/profiling/profiling.ts diff --git a/tns-core-modules/references.d.ts b/nativescript-core/references.d.ts similarity index 100% rename from tns-core-modules/references.d.ts rename to nativescript-core/references.d.ts diff --git a/tns-core-modules/text/formatted-string.d.ts b/nativescript-core/text/formatted-string.d.ts similarity index 100% rename from tns-core-modules/text/formatted-string.d.ts rename to nativescript-core/text/formatted-string.d.ts diff --git a/tns-core-modules/text/formatted-string.ts b/nativescript-core/text/formatted-string.ts similarity index 100% rename from tns-core-modules/text/formatted-string.ts rename to nativescript-core/text/formatted-string.ts diff --git a/tns-core-modules/text/package.json b/nativescript-core/text/package.json similarity index 100% rename from tns-core-modules/text/package.json rename to nativescript-core/text/package.json diff --git a/tns-core-modules/text/span.d.ts b/nativescript-core/text/span.d.ts similarity index 100% rename from tns-core-modules/text/span.d.ts rename to nativescript-core/text/span.d.ts diff --git a/tns-core-modules/text/span.ts b/nativescript-core/text/span.ts similarity index 100% rename from tns-core-modules/text/span.ts rename to nativescript-core/text/span.ts diff --git a/tns-core-modules/text/text.android.ts b/nativescript-core/text/text.android.ts similarity index 100% rename from tns-core-modules/text/text.android.ts rename to nativescript-core/text/text.android.ts diff --git a/tns-core-modules/text/text.d.ts b/nativescript-core/text/text.d.ts similarity index 100% rename from tns-core-modules/text/text.d.ts rename to nativescript-core/text/text.d.ts diff --git a/tns-core-modules/text/text.ios.ts b/nativescript-core/text/text.ios.ts similarity index 100% rename from tns-core-modules/text/text.ios.ts rename to nativescript-core/text/text.ios.ts diff --git a/tns-core-modules/timer/Readme.md b/nativescript-core/timer/Readme.md similarity index 100% rename from tns-core-modules/timer/Readme.md rename to nativescript-core/timer/Readme.md diff --git a/tns-core-modules/timer/package.json b/nativescript-core/timer/package.json similarity index 100% rename from tns-core-modules/timer/package.json rename to nativescript-core/timer/package.json diff --git a/tns-core-modules/timer/timer.android.ts b/nativescript-core/timer/timer.android.ts similarity index 100% rename from tns-core-modules/timer/timer.android.ts rename to nativescript-core/timer/timer.android.ts diff --git a/tns-core-modules/timer/timer.d.ts b/nativescript-core/timer/timer.d.ts similarity index 100% rename from tns-core-modules/timer/timer.d.ts rename to nativescript-core/timer/timer.d.ts diff --git a/tns-core-modules/timer/timer.ios.ts b/nativescript-core/timer/timer.ios.ts similarity index 100% rename from tns-core-modules/timer/timer.ios.ts rename to nativescript-core/timer/timer.ios.ts diff --git a/tns-core-modules/tns-core-modules.d.ts b/nativescript-core/tns-core-modules.d.ts similarity index 100% rename from tns-core-modules/tns-core-modules.d.ts rename to nativescript-core/tns-core-modules.d.ts diff --git a/tns-core-modules/trace/Readme.md b/nativescript-core/trace/Readme.md similarity index 100% rename from tns-core-modules/trace/Readme.md rename to nativescript-core/trace/Readme.md diff --git a/tns-core-modules/trace/package.json b/nativescript-core/trace/package.json similarity index 100% rename from tns-core-modules/trace/package.json rename to nativescript-core/trace/package.json diff --git a/tns-core-modules/trace/trace.d.ts b/nativescript-core/trace/trace.d.ts similarity index 100% rename from tns-core-modules/trace/trace.d.ts rename to nativescript-core/trace/trace.d.ts diff --git a/tns-core-modules/trace/trace.ts b/nativescript-core/trace/trace.ts similarity index 100% rename from tns-core-modules/trace/trace.ts rename to nativescript-core/trace/trace.ts diff --git a/tns-core-modules/tsconfig.json b/nativescript-core/tsconfig.json similarity index 100% rename from tns-core-modules/tsconfig.json rename to nativescript-core/tsconfig.json diff --git a/tns-core-modules/ui/action-bar/action-bar-common.ts b/nativescript-core/ui/action-bar/action-bar-common.ts similarity index 100% rename from tns-core-modules/ui/action-bar/action-bar-common.ts rename to nativescript-core/ui/action-bar/action-bar-common.ts diff --git a/tns-core-modules/ui/action-bar/action-bar.android.ts b/nativescript-core/ui/action-bar/action-bar.android.ts similarity index 100% rename from tns-core-modules/ui/action-bar/action-bar.android.ts rename to nativescript-core/ui/action-bar/action-bar.android.ts diff --git a/tns-core-modules/ui/action-bar/action-bar.d.ts b/nativescript-core/ui/action-bar/action-bar.d.ts similarity index 100% rename from tns-core-modules/ui/action-bar/action-bar.d.ts rename to nativescript-core/ui/action-bar/action-bar.d.ts diff --git a/tns-core-modules/ui/action-bar/action-bar.ios.ts b/nativescript-core/ui/action-bar/action-bar.ios.ts similarity index 100% rename from tns-core-modules/ui/action-bar/action-bar.ios.ts rename to nativescript-core/ui/action-bar/action-bar.ios.ts diff --git a/tns-core-modules/ui/action-bar/package.json b/nativescript-core/ui/action-bar/package.json similarity index 100% rename from tns-core-modules/ui/action-bar/package.json rename to nativescript-core/ui/action-bar/package.json diff --git a/tns-core-modules/ui/activity-indicator/activity-indicator-common.ts b/nativescript-core/ui/activity-indicator/activity-indicator-common.ts similarity index 100% rename from tns-core-modules/ui/activity-indicator/activity-indicator-common.ts rename to nativescript-core/ui/activity-indicator/activity-indicator-common.ts diff --git a/tns-core-modules/ui/activity-indicator/activity-indicator.android.ts b/nativescript-core/ui/activity-indicator/activity-indicator.android.ts similarity index 100% rename from tns-core-modules/ui/activity-indicator/activity-indicator.android.ts rename to nativescript-core/ui/activity-indicator/activity-indicator.android.ts diff --git a/tns-core-modules/ui/activity-indicator/activity-indicator.d.ts b/nativescript-core/ui/activity-indicator/activity-indicator.d.ts similarity index 100% rename from tns-core-modules/ui/activity-indicator/activity-indicator.d.ts rename to nativescript-core/ui/activity-indicator/activity-indicator.d.ts diff --git a/tns-core-modules/ui/activity-indicator/activity-indicator.ios.ts b/nativescript-core/ui/activity-indicator/activity-indicator.ios.ts similarity index 100% rename from tns-core-modules/ui/activity-indicator/activity-indicator.ios.ts rename to nativescript-core/ui/activity-indicator/activity-indicator.ios.ts diff --git a/tns-core-modules/ui/activity-indicator/package.json b/nativescript-core/ui/activity-indicator/package.json similarity index 100% rename from tns-core-modules/ui/activity-indicator/package.json rename to nativescript-core/ui/activity-indicator/package.json diff --git a/tns-core-modules/ui/animation/animation-common.ts b/nativescript-core/ui/animation/animation-common.ts similarity index 100% rename from tns-core-modules/ui/animation/animation-common.ts rename to nativescript-core/ui/animation/animation-common.ts diff --git a/tns-core-modules/ui/animation/animation.android.ts b/nativescript-core/ui/animation/animation.android.ts similarity index 100% rename from tns-core-modules/ui/animation/animation.android.ts rename to nativescript-core/ui/animation/animation.android.ts diff --git a/tns-core-modules/ui/animation/animation.d.ts b/nativescript-core/ui/animation/animation.d.ts similarity index 100% rename from tns-core-modules/ui/animation/animation.d.ts rename to nativescript-core/ui/animation/animation.d.ts diff --git a/tns-core-modules/ui/animation/animation.ios.ts b/nativescript-core/ui/animation/animation.ios.ts similarity index 100% rename from tns-core-modules/ui/animation/animation.ios.ts rename to nativescript-core/ui/animation/animation.ios.ts diff --git a/tns-core-modules/ui/animation/keyframe-animation.d.ts b/nativescript-core/ui/animation/keyframe-animation.d.ts similarity index 100% rename from tns-core-modules/ui/animation/keyframe-animation.d.ts rename to nativescript-core/ui/animation/keyframe-animation.d.ts diff --git a/tns-core-modules/ui/animation/keyframe-animation.ts b/nativescript-core/ui/animation/keyframe-animation.ts similarity index 100% rename from tns-core-modules/ui/animation/keyframe-animation.ts rename to nativescript-core/ui/animation/keyframe-animation.ts diff --git a/tns-core-modules/ui/animation/package.json b/nativescript-core/ui/animation/package.json similarity index 100% rename from tns-core-modules/ui/animation/package.json rename to nativescript-core/ui/animation/package.json diff --git a/tns-core-modules/ui/border/border.d.ts b/nativescript-core/ui/border/border.d.ts similarity index 100% rename from tns-core-modules/ui/border/border.d.ts rename to nativescript-core/ui/border/border.d.ts diff --git a/tns-core-modules/ui/border/border.ts b/nativescript-core/ui/border/border.ts similarity index 100% rename from tns-core-modules/ui/border/border.ts rename to nativescript-core/ui/border/border.ts diff --git a/tns-core-modules/ui/border/package.json b/nativescript-core/ui/border/package.json similarity index 100% rename from tns-core-modules/ui/border/package.json rename to nativescript-core/ui/border/package.json diff --git a/tns-core-modules/ui/bottom-navigation/bottom-navigation.android.ts b/nativescript-core/ui/bottom-navigation/bottom-navigation.android.ts similarity index 100% rename from tns-core-modules/ui/bottom-navigation/bottom-navigation.android.ts rename to nativescript-core/ui/bottom-navigation/bottom-navigation.android.ts diff --git a/tns-core-modules/ui/bottom-navigation/bottom-navigation.d.ts b/nativescript-core/ui/bottom-navigation/bottom-navigation.d.ts similarity index 100% rename from tns-core-modules/ui/bottom-navigation/bottom-navigation.d.ts rename to nativescript-core/ui/bottom-navigation/bottom-navigation.d.ts diff --git a/tns-core-modules/ui/bottom-navigation/bottom-navigation.ios.ts b/nativescript-core/ui/bottom-navigation/bottom-navigation.ios.ts similarity index 100% rename from tns-core-modules/ui/bottom-navigation/bottom-navigation.ios.ts rename to nativescript-core/ui/bottom-navigation/bottom-navigation.ios.ts diff --git a/tns-core-modules/ui/bottom-navigation/package.json b/nativescript-core/ui/bottom-navigation/package.json similarity index 100% rename from tns-core-modules/ui/bottom-navigation/package.json rename to nativescript-core/ui/bottom-navigation/package.json diff --git a/tns-core-modules/ui/builder/binding-builder.d.ts b/nativescript-core/ui/builder/binding-builder.d.ts similarity index 100% rename from tns-core-modules/ui/builder/binding-builder.d.ts rename to nativescript-core/ui/builder/binding-builder.d.ts diff --git a/tns-core-modules/ui/builder/binding-builder.ts b/nativescript-core/ui/builder/binding-builder.ts similarity index 100% rename from tns-core-modules/ui/builder/binding-builder.ts rename to nativescript-core/ui/builder/binding-builder.ts diff --git a/tns-core-modules/ui/builder/builder.d.ts b/nativescript-core/ui/builder/builder.d.ts similarity index 100% rename from tns-core-modules/ui/builder/builder.d.ts rename to nativescript-core/ui/builder/builder.d.ts diff --git a/tns-core-modules/ui/builder/builder.ts b/nativescript-core/ui/builder/builder.ts similarity index 100% rename from tns-core-modules/ui/builder/builder.ts rename to nativescript-core/ui/builder/builder.ts diff --git a/tns-core-modules/ui/builder/component-builder/component-builder.d.ts b/nativescript-core/ui/builder/component-builder/component-builder.d.ts similarity index 100% rename from tns-core-modules/ui/builder/component-builder/component-builder.d.ts rename to nativescript-core/ui/builder/component-builder/component-builder.d.ts diff --git a/tns-core-modules/ui/builder/component-builder/component-builder.ts b/nativescript-core/ui/builder/component-builder/component-builder.ts similarity index 100% rename from tns-core-modules/ui/builder/component-builder/component-builder.ts rename to nativescript-core/ui/builder/component-builder/component-builder.ts diff --git a/tns-core-modules/ui/builder/component-builder/package.json b/nativescript-core/ui/builder/component-builder/package.json similarity index 100% rename from tns-core-modules/ui/builder/component-builder/package.json rename to nativescript-core/ui/builder/component-builder/package.json diff --git a/tns-core-modules/ui/builder/module-name-sanitizer.d.ts b/nativescript-core/ui/builder/module-name-sanitizer.d.ts similarity index 100% rename from tns-core-modules/ui/builder/module-name-sanitizer.d.ts rename to nativescript-core/ui/builder/module-name-sanitizer.d.ts diff --git a/tns-core-modules/ui/builder/module-name-sanitizer.ts b/nativescript-core/ui/builder/module-name-sanitizer.ts similarity index 100% rename from tns-core-modules/ui/builder/module-name-sanitizer.ts rename to nativescript-core/ui/builder/module-name-sanitizer.ts diff --git a/tns-core-modules/ui/builder/package.json b/nativescript-core/ui/builder/package.json similarity index 100% rename from tns-core-modules/ui/builder/package.json rename to nativescript-core/ui/builder/package.json diff --git a/tns-core-modules/ui/button/button-common.ts b/nativescript-core/ui/button/button-common.ts similarity index 100% rename from tns-core-modules/ui/button/button-common.ts rename to nativescript-core/ui/button/button-common.ts diff --git a/tns-core-modules/ui/button/button.android.ts b/nativescript-core/ui/button/button.android.ts similarity index 100% rename from tns-core-modules/ui/button/button.android.ts rename to nativescript-core/ui/button/button.android.ts diff --git a/tns-core-modules/ui/button/button.d.ts b/nativescript-core/ui/button/button.d.ts similarity index 100% rename from tns-core-modules/ui/button/button.d.ts rename to nativescript-core/ui/button/button.d.ts diff --git a/tns-core-modules/ui/button/button.ios.ts b/nativescript-core/ui/button/button.ios.ts similarity index 100% rename from tns-core-modules/ui/button/button.ios.ts rename to nativescript-core/ui/button/button.ios.ts diff --git a/tns-core-modules/ui/button/package.json b/nativescript-core/ui/button/package.json similarity index 100% rename from tns-core-modules/ui/button/package.json rename to nativescript-core/ui/button/package.json diff --git a/tns-core-modules/ui/content-view/content-view.d.ts b/nativescript-core/ui/content-view/content-view.d.ts similarity index 100% rename from tns-core-modules/ui/content-view/content-view.d.ts rename to nativescript-core/ui/content-view/content-view.d.ts diff --git a/tns-core-modules/ui/content-view/content-view.ts b/nativescript-core/ui/content-view/content-view.ts similarity index 100% rename from tns-core-modules/ui/content-view/content-view.ts rename to nativescript-core/ui/content-view/content-view.ts diff --git a/tns-core-modules/ui/content-view/package.json b/nativescript-core/ui/content-view/package.json similarity index 100% rename from tns-core-modules/ui/content-view/package.json rename to nativescript-core/ui/content-view/package.json diff --git a/tns-core-modules/ui/core/bindable/bindable.d.ts b/nativescript-core/ui/core/bindable/bindable.d.ts similarity index 100% rename from tns-core-modules/ui/core/bindable/bindable.d.ts rename to nativescript-core/ui/core/bindable/bindable.d.ts diff --git a/tns-core-modules/ui/core/bindable/bindable.ts b/nativescript-core/ui/core/bindable/bindable.ts similarity index 100% rename from tns-core-modules/ui/core/bindable/bindable.ts rename to nativescript-core/ui/core/bindable/bindable.ts diff --git a/tns-core-modules/ui/core/bindable/package.json b/nativescript-core/ui/core/bindable/package.json similarity index 100% rename from tns-core-modules/ui/core/bindable/package.json rename to nativescript-core/ui/core/bindable/package.json diff --git a/tns-core-modules/ui/core/control-state-change/control-state-change.d.ts b/nativescript-core/ui/core/control-state-change/control-state-change.d.ts similarity index 100% rename from tns-core-modules/ui/core/control-state-change/control-state-change.d.ts rename to nativescript-core/ui/core/control-state-change/control-state-change.d.ts diff --git a/tns-core-modules/ui/core/control-state-change/control-state-change.ios.ts b/nativescript-core/ui/core/control-state-change/control-state-change.ios.ts similarity index 100% rename from tns-core-modules/ui/core/control-state-change/control-state-change.ios.ts rename to nativescript-core/ui/core/control-state-change/control-state-change.ios.ts diff --git a/tns-core-modules/ui/core/control-state-change/package.json b/nativescript-core/ui/core/control-state-change/package.json similarity index 100% rename from tns-core-modules/ui/core/control-state-change/package.json rename to nativescript-core/ui/core/control-state-change/package.json diff --git a/tns-core-modules/ui/core/properties/package.json b/nativescript-core/ui/core/properties/package.json similarity index 100% rename from tns-core-modules/ui/core/properties/package.json rename to nativescript-core/ui/core/properties/package.json diff --git a/tns-core-modules/ui/core/properties/properties.d.ts b/nativescript-core/ui/core/properties/properties.d.ts similarity index 100% rename from tns-core-modules/ui/core/properties/properties.d.ts rename to nativescript-core/ui/core/properties/properties.d.ts diff --git a/tns-core-modules/ui/core/properties/properties.ts b/nativescript-core/ui/core/properties/properties.ts similarity index 100% rename from tns-core-modules/ui/core/properties/properties.ts rename to nativescript-core/ui/core/properties/properties.ts diff --git a/tns-core-modules/ui/core/view-base/package.json b/nativescript-core/ui/core/view-base/package.json similarity index 100% rename from tns-core-modules/ui/core/view-base/package.json rename to nativescript-core/ui/core/view-base/package.json diff --git a/tns-core-modules/ui/core/view-base/view-base.d.ts b/nativescript-core/ui/core/view-base/view-base.d.ts similarity index 100% rename from tns-core-modules/ui/core/view-base/view-base.d.ts rename to nativescript-core/ui/core/view-base/view-base.d.ts diff --git a/tns-core-modules/ui/core/view-base/view-base.ts b/nativescript-core/ui/core/view-base/view-base.ts similarity index 100% rename from tns-core-modules/ui/core/view-base/view-base.ts rename to nativescript-core/ui/core/view-base/view-base.ts diff --git a/tns-core-modules/ui/core/view/package.json b/nativescript-core/ui/core/view/package.json similarity index 100% rename from tns-core-modules/ui/core/view/package.json rename to nativescript-core/ui/core/view/package.json diff --git a/tns-core-modules/ui/core/view/view-common.ts b/nativescript-core/ui/core/view/view-common.ts similarity index 100% rename from tns-core-modules/ui/core/view/view-common.ts rename to nativescript-core/ui/core/view/view-common.ts diff --git a/tns-core-modules/ui/core/view/view.android.ts b/nativescript-core/ui/core/view/view.android.ts similarity index 100% rename from tns-core-modules/ui/core/view/view.android.ts rename to nativescript-core/ui/core/view/view.android.ts diff --git a/tns-core-modules/ui/core/view/view.d.ts b/nativescript-core/ui/core/view/view.d.ts similarity index 100% rename from tns-core-modules/ui/core/view/view.d.ts rename to nativescript-core/ui/core/view/view.d.ts diff --git a/tns-core-modules/ui/core/view/view.ios.ts b/nativescript-core/ui/core/view/view.ios.ts similarity index 100% rename from tns-core-modules/ui/core/view/view.ios.ts rename to nativescript-core/ui/core/view/view.ios.ts diff --git a/tns-core-modules/ui/core/weak-event-listener/package.json b/nativescript-core/ui/core/weak-event-listener/package.json similarity index 100% rename from tns-core-modules/ui/core/weak-event-listener/package.json rename to nativescript-core/ui/core/weak-event-listener/package.json diff --git a/tns-core-modules/ui/core/weak-event-listener/weak-event-listener.d.ts b/nativescript-core/ui/core/weak-event-listener/weak-event-listener.d.ts similarity index 100% rename from tns-core-modules/ui/core/weak-event-listener/weak-event-listener.d.ts rename to nativescript-core/ui/core/weak-event-listener/weak-event-listener.d.ts diff --git a/tns-core-modules/ui/core/weak-event-listener/weak-event-listener.ts b/nativescript-core/ui/core/weak-event-listener/weak-event-listener.ts similarity index 100% rename from tns-core-modules/ui/core/weak-event-listener/weak-event-listener.ts rename to nativescript-core/ui/core/weak-event-listener/weak-event-listener.ts diff --git a/tns-core-modules/ui/date-picker/date-picker-common.ts b/nativescript-core/ui/date-picker/date-picker-common.ts similarity index 100% rename from tns-core-modules/ui/date-picker/date-picker-common.ts rename to nativescript-core/ui/date-picker/date-picker-common.ts diff --git a/tns-core-modules/ui/date-picker/date-picker.android.ts b/nativescript-core/ui/date-picker/date-picker.android.ts similarity index 100% rename from tns-core-modules/ui/date-picker/date-picker.android.ts rename to nativescript-core/ui/date-picker/date-picker.android.ts diff --git a/tns-core-modules/ui/date-picker/date-picker.d.ts b/nativescript-core/ui/date-picker/date-picker.d.ts similarity index 100% rename from tns-core-modules/ui/date-picker/date-picker.d.ts rename to nativescript-core/ui/date-picker/date-picker.d.ts diff --git a/tns-core-modules/ui/date-picker/date-picker.ios.ts b/nativescript-core/ui/date-picker/date-picker.ios.ts similarity index 100% rename from tns-core-modules/ui/date-picker/date-picker.ios.ts rename to nativescript-core/ui/date-picker/date-picker.ios.ts diff --git a/tns-core-modules/ui/date-picker/package.json b/nativescript-core/ui/date-picker/package.json similarity index 100% rename from tns-core-modules/ui/date-picker/package.json rename to nativescript-core/ui/date-picker/package.json diff --git a/tns-core-modules/ui/dialogs/Readme.md b/nativescript-core/ui/dialogs/Readme.md similarity index 100% rename from tns-core-modules/ui/dialogs/Readme.md rename to nativescript-core/ui/dialogs/Readme.md diff --git a/tns-core-modules/ui/dialogs/dialogs-common.ts b/nativescript-core/ui/dialogs/dialogs-common.ts similarity index 100% rename from tns-core-modules/ui/dialogs/dialogs-common.ts rename to nativescript-core/ui/dialogs/dialogs-common.ts diff --git a/tns-core-modules/ui/dialogs/dialogs.android.ts b/nativescript-core/ui/dialogs/dialogs.android.ts similarity index 100% rename from tns-core-modules/ui/dialogs/dialogs.android.ts rename to nativescript-core/ui/dialogs/dialogs.android.ts diff --git a/tns-core-modules/ui/dialogs/dialogs.d.ts b/nativescript-core/ui/dialogs/dialogs.d.ts similarity index 100% rename from tns-core-modules/ui/dialogs/dialogs.d.ts rename to nativescript-core/ui/dialogs/dialogs.d.ts diff --git a/tns-core-modules/ui/dialogs/dialogs.ios.ts b/nativescript-core/ui/dialogs/dialogs.ios.ts similarity index 100% rename from tns-core-modules/ui/dialogs/dialogs.ios.ts rename to nativescript-core/ui/dialogs/dialogs.ios.ts diff --git a/tns-core-modules/ui/dialogs/package.json b/nativescript-core/ui/dialogs/package.json similarity index 100% rename from tns-core-modules/ui/dialogs/package.json rename to nativescript-core/ui/dialogs/package.json diff --git a/tns-core-modules/ui/editable-text-base/editable-text-base-common.ts b/nativescript-core/ui/editable-text-base/editable-text-base-common.ts similarity index 100% rename from tns-core-modules/ui/editable-text-base/editable-text-base-common.ts rename to nativescript-core/ui/editable-text-base/editable-text-base-common.ts diff --git a/tns-core-modules/ui/editable-text-base/editable-text-base.android.ts b/nativescript-core/ui/editable-text-base/editable-text-base.android.ts similarity index 100% rename from tns-core-modules/ui/editable-text-base/editable-text-base.android.ts rename to nativescript-core/ui/editable-text-base/editable-text-base.android.ts diff --git a/tns-core-modules/ui/editable-text-base/editable-text-base.d.ts b/nativescript-core/ui/editable-text-base/editable-text-base.d.ts similarity index 100% rename from tns-core-modules/ui/editable-text-base/editable-text-base.d.ts rename to nativescript-core/ui/editable-text-base/editable-text-base.d.ts diff --git a/tns-core-modules/ui/editable-text-base/editable-text-base.ios.ts b/nativescript-core/ui/editable-text-base/editable-text-base.ios.ts similarity index 100% rename from tns-core-modules/ui/editable-text-base/editable-text-base.ios.ts rename to nativescript-core/ui/editable-text-base/editable-text-base.ios.ts diff --git a/tns-core-modules/ui/editable-text-base/package.json b/nativescript-core/ui/editable-text-base/package.json similarity index 100% rename from tns-core-modules/ui/editable-text-base/package.json rename to nativescript-core/ui/editable-text-base/package.json diff --git a/tns-core-modules/ui/enums/enums.d.ts b/nativescript-core/ui/enums/enums.d.ts similarity index 100% rename from tns-core-modules/ui/enums/enums.d.ts rename to nativescript-core/ui/enums/enums.d.ts diff --git a/tns-core-modules/ui/enums/enums.ts b/nativescript-core/ui/enums/enums.ts similarity index 100% rename from tns-core-modules/ui/enums/enums.ts rename to nativescript-core/ui/enums/enums.ts diff --git a/tns-core-modules/ui/enums/package.json b/nativescript-core/ui/enums/package.json similarity index 100% rename from tns-core-modules/ui/enums/package.json rename to nativescript-core/ui/enums/package.json diff --git a/tns-core-modules/ui/frame/Readme.md b/nativescript-core/ui/frame/Readme.md similarity index 100% rename from tns-core-modules/ui/frame/Readme.md rename to nativescript-core/ui/frame/Readme.md diff --git a/tns-core-modules/ui/frame/activity.android.ts b/nativescript-core/ui/frame/activity.android.ts similarity index 100% rename from tns-core-modules/ui/frame/activity.android.ts rename to nativescript-core/ui/frame/activity.android.ts diff --git a/tns-core-modules/ui/frame/fragment.android.ts b/nativescript-core/ui/frame/fragment.android.ts similarity index 100% rename from tns-core-modules/ui/frame/fragment.android.ts rename to nativescript-core/ui/frame/fragment.android.ts diff --git a/tns-core-modules/ui/frame/fragment.transitions.android.ts b/nativescript-core/ui/frame/fragment.transitions.android.ts similarity index 100% rename from tns-core-modules/ui/frame/fragment.transitions.android.ts rename to nativescript-core/ui/frame/fragment.transitions.android.ts diff --git a/tns-core-modules/ui/frame/fragment.transitions.d.ts b/nativescript-core/ui/frame/fragment.transitions.d.ts similarity index 100% rename from tns-core-modules/ui/frame/fragment.transitions.d.ts rename to nativescript-core/ui/frame/fragment.transitions.d.ts diff --git a/tns-core-modules/ui/frame/fragment.transitions.ios.ts b/nativescript-core/ui/frame/fragment.transitions.ios.ts similarity index 100% rename from tns-core-modules/ui/frame/fragment.transitions.ios.ts rename to nativescript-core/ui/frame/fragment.transitions.ios.ts diff --git a/tns-core-modules/ui/frame/fragment.transitions.types.ts b/nativescript-core/ui/frame/fragment.transitions.types.ts similarity index 100% rename from tns-core-modules/ui/frame/fragment.transitions.types.ts rename to nativescript-core/ui/frame/fragment.transitions.types.ts diff --git a/tns-core-modules/ui/frame/frame-common.ts b/nativescript-core/ui/frame/frame-common.ts similarity index 100% rename from tns-core-modules/ui/frame/frame-common.ts rename to nativescript-core/ui/frame/frame-common.ts diff --git a/tns-core-modules/ui/frame/frame-stack.ts b/nativescript-core/ui/frame/frame-stack.ts similarity index 100% rename from tns-core-modules/ui/frame/frame-stack.ts rename to nativescript-core/ui/frame/frame-stack.ts diff --git a/tns-core-modules/ui/frame/frame.android.ts b/nativescript-core/ui/frame/frame.android.ts similarity index 100% rename from tns-core-modules/ui/frame/frame.android.ts rename to nativescript-core/ui/frame/frame.android.ts diff --git a/tns-core-modules/ui/frame/frame.d.ts b/nativescript-core/ui/frame/frame.d.ts similarity index 100% rename from tns-core-modules/ui/frame/frame.d.ts rename to nativescript-core/ui/frame/frame.d.ts diff --git a/tns-core-modules/ui/frame/frame.ios.ts b/nativescript-core/ui/frame/frame.ios.ts similarity index 100% rename from tns-core-modules/ui/frame/frame.ios.ts rename to nativescript-core/ui/frame/frame.ios.ts diff --git a/tns-core-modules/ui/frame/package.json b/nativescript-core/ui/frame/package.json similarity index 100% rename from tns-core-modules/ui/frame/package.json rename to nativescript-core/ui/frame/package.json diff --git a/tns-core-modules/ui/frame/transition-definitions.android.d.ts b/nativescript-core/ui/frame/transition-definitions.android.d.ts similarity index 100% rename from tns-core-modules/ui/frame/transition-definitions.android.d.ts rename to nativescript-core/ui/frame/transition-definitions.android.d.ts diff --git a/tns-core-modules/ui/gestures/gestures-common.ts b/nativescript-core/ui/gestures/gestures-common.ts similarity index 100% rename from tns-core-modules/ui/gestures/gestures-common.ts rename to nativescript-core/ui/gestures/gestures-common.ts diff --git a/tns-core-modules/ui/gestures/gestures.android.ts b/nativescript-core/ui/gestures/gestures.android.ts similarity index 100% rename from tns-core-modules/ui/gestures/gestures.android.ts rename to nativescript-core/ui/gestures/gestures.android.ts diff --git a/tns-core-modules/ui/gestures/gestures.d.ts b/nativescript-core/ui/gestures/gestures.d.ts similarity index 100% rename from tns-core-modules/ui/gestures/gestures.d.ts rename to nativescript-core/ui/gestures/gestures.d.ts diff --git a/tns-core-modules/ui/gestures/gestures.ios.ts b/nativescript-core/ui/gestures/gestures.ios.ts similarity index 100% rename from tns-core-modules/ui/gestures/gestures.ios.ts rename to nativescript-core/ui/gestures/gestures.ios.ts diff --git a/tns-core-modules/ui/gestures/package.json b/nativescript-core/ui/gestures/package.json similarity index 100% rename from tns-core-modules/ui/gestures/package.json rename to nativescript-core/ui/gestures/package.json diff --git a/tns-core-modules/ui/html-view/html-view-common.ts b/nativescript-core/ui/html-view/html-view-common.ts similarity index 100% rename from tns-core-modules/ui/html-view/html-view-common.ts rename to nativescript-core/ui/html-view/html-view-common.ts diff --git a/tns-core-modules/ui/html-view/html-view.android.ts b/nativescript-core/ui/html-view/html-view.android.ts similarity index 100% rename from tns-core-modules/ui/html-view/html-view.android.ts rename to nativescript-core/ui/html-view/html-view.android.ts diff --git a/tns-core-modules/ui/html-view/html-view.d.ts b/nativescript-core/ui/html-view/html-view.d.ts similarity index 100% rename from tns-core-modules/ui/html-view/html-view.d.ts rename to nativescript-core/ui/html-view/html-view.d.ts diff --git a/tns-core-modules/ui/html-view/html-view.ios.ts b/nativescript-core/ui/html-view/html-view.ios.ts similarity index 100% rename from tns-core-modules/ui/html-view/html-view.ios.ts rename to nativescript-core/ui/html-view/html-view.ios.ts diff --git a/tns-core-modules/ui/html-view/package.json b/nativescript-core/ui/html-view/package.json similarity index 100% rename from tns-core-modules/ui/html-view/package.json rename to nativescript-core/ui/html-view/package.json diff --git a/tns-core-modules/ui/image-cache/image-cache-common.ts b/nativescript-core/ui/image-cache/image-cache-common.ts similarity index 100% rename from tns-core-modules/ui/image-cache/image-cache-common.ts rename to nativescript-core/ui/image-cache/image-cache-common.ts diff --git a/tns-core-modules/ui/image-cache/image-cache.android.ts b/nativescript-core/ui/image-cache/image-cache.android.ts similarity index 100% rename from tns-core-modules/ui/image-cache/image-cache.android.ts rename to nativescript-core/ui/image-cache/image-cache.android.ts diff --git a/tns-core-modules/ui/image-cache/image-cache.d.ts b/nativescript-core/ui/image-cache/image-cache.d.ts similarity index 100% rename from tns-core-modules/ui/image-cache/image-cache.d.ts rename to nativescript-core/ui/image-cache/image-cache.d.ts diff --git a/tns-core-modules/ui/image-cache/image-cache.ios.ts b/nativescript-core/ui/image-cache/image-cache.ios.ts similarity index 100% rename from tns-core-modules/ui/image-cache/image-cache.ios.ts rename to nativescript-core/ui/image-cache/image-cache.ios.ts diff --git a/tns-core-modules/ui/image-cache/package.json b/nativescript-core/ui/image-cache/package.json similarity index 100% rename from tns-core-modules/ui/image-cache/package.json rename to nativescript-core/ui/image-cache/package.json diff --git a/tns-core-modules/ui/image/image-common.ts b/nativescript-core/ui/image/image-common.ts similarity index 100% rename from tns-core-modules/ui/image/image-common.ts rename to nativescript-core/ui/image/image-common.ts diff --git a/tns-core-modules/ui/image/image.android.ts b/nativescript-core/ui/image/image.android.ts similarity index 100% rename from tns-core-modules/ui/image/image.android.ts rename to nativescript-core/ui/image/image.android.ts diff --git a/tns-core-modules/ui/image/image.d.ts b/nativescript-core/ui/image/image.d.ts similarity index 100% rename from tns-core-modules/ui/image/image.d.ts rename to nativescript-core/ui/image/image.d.ts diff --git a/tns-core-modules/ui/image/image.ios.ts b/nativescript-core/ui/image/image.ios.ts similarity index 100% rename from tns-core-modules/ui/image/image.ios.ts rename to nativescript-core/ui/image/image.ios.ts diff --git a/tns-core-modules/ui/image/package.json b/nativescript-core/ui/image/package.json similarity index 100% rename from tns-core-modules/ui/image/package.json rename to nativescript-core/ui/image/package.json diff --git a/tns-core-modules/ui/label/label.android.ts b/nativescript-core/ui/label/label.android.ts similarity index 100% rename from tns-core-modules/ui/label/label.android.ts rename to nativescript-core/ui/label/label.android.ts diff --git a/tns-core-modules/ui/label/label.d.ts b/nativescript-core/ui/label/label.d.ts similarity index 100% rename from tns-core-modules/ui/label/label.d.ts rename to nativescript-core/ui/label/label.d.ts diff --git a/tns-core-modules/ui/label/label.ios.ts b/nativescript-core/ui/label/label.ios.ts similarity index 100% rename from tns-core-modules/ui/label/label.ios.ts rename to nativescript-core/ui/label/label.ios.ts diff --git a/tns-core-modules/ui/label/package.json b/nativescript-core/ui/label/package.json similarity index 100% rename from tns-core-modules/ui/label/package.json rename to nativescript-core/ui/label/package.json diff --git a/tns-core-modules/ui/layouts/absolute-layout/absolute-layout-common.ts b/nativescript-core/ui/layouts/absolute-layout/absolute-layout-common.ts similarity index 100% rename from tns-core-modules/ui/layouts/absolute-layout/absolute-layout-common.ts rename to nativescript-core/ui/layouts/absolute-layout/absolute-layout-common.ts diff --git a/tns-core-modules/ui/layouts/absolute-layout/absolute-layout.android.ts b/nativescript-core/ui/layouts/absolute-layout/absolute-layout.android.ts similarity index 100% rename from tns-core-modules/ui/layouts/absolute-layout/absolute-layout.android.ts rename to nativescript-core/ui/layouts/absolute-layout/absolute-layout.android.ts diff --git a/tns-core-modules/ui/layouts/absolute-layout/absolute-layout.d.ts b/nativescript-core/ui/layouts/absolute-layout/absolute-layout.d.ts similarity index 100% rename from tns-core-modules/ui/layouts/absolute-layout/absolute-layout.d.ts rename to nativescript-core/ui/layouts/absolute-layout/absolute-layout.d.ts diff --git a/tns-core-modules/ui/layouts/absolute-layout/absolute-layout.ios.ts b/nativescript-core/ui/layouts/absolute-layout/absolute-layout.ios.ts similarity index 100% rename from tns-core-modules/ui/layouts/absolute-layout/absolute-layout.ios.ts rename to nativescript-core/ui/layouts/absolute-layout/absolute-layout.ios.ts diff --git a/tns-core-modules/ui/layouts/absolute-layout/package.json b/nativescript-core/ui/layouts/absolute-layout/package.json similarity index 100% rename from tns-core-modules/ui/layouts/absolute-layout/package.json rename to nativescript-core/ui/layouts/absolute-layout/package.json diff --git a/tns-core-modules/ui/layouts/dock-layout/dock-layout-common.ts b/nativescript-core/ui/layouts/dock-layout/dock-layout-common.ts similarity index 100% rename from tns-core-modules/ui/layouts/dock-layout/dock-layout-common.ts rename to nativescript-core/ui/layouts/dock-layout/dock-layout-common.ts diff --git a/tns-core-modules/ui/layouts/dock-layout/dock-layout.android.ts b/nativescript-core/ui/layouts/dock-layout/dock-layout.android.ts similarity index 100% rename from tns-core-modules/ui/layouts/dock-layout/dock-layout.android.ts rename to nativescript-core/ui/layouts/dock-layout/dock-layout.android.ts diff --git a/tns-core-modules/ui/layouts/dock-layout/dock-layout.d.ts b/nativescript-core/ui/layouts/dock-layout/dock-layout.d.ts similarity index 100% rename from tns-core-modules/ui/layouts/dock-layout/dock-layout.d.ts rename to nativescript-core/ui/layouts/dock-layout/dock-layout.d.ts diff --git a/tns-core-modules/ui/layouts/dock-layout/dock-layout.ios.ts b/nativescript-core/ui/layouts/dock-layout/dock-layout.ios.ts similarity index 100% rename from tns-core-modules/ui/layouts/dock-layout/dock-layout.ios.ts rename to nativescript-core/ui/layouts/dock-layout/dock-layout.ios.ts diff --git a/tns-core-modules/ui/layouts/dock-layout/package.json b/nativescript-core/ui/layouts/dock-layout/package.json similarity index 100% rename from tns-core-modules/ui/layouts/dock-layout/package.json rename to nativescript-core/ui/layouts/dock-layout/package.json diff --git a/tns-core-modules/ui/layouts/flexbox-layout/flexbox-layout-common.ts b/nativescript-core/ui/layouts/flexbox-layout/flexbox-layout-common.ts similarity index 100% rename from tns-core-modules/ui/layouts/flexbox-layout/flexbox-layout-common.ts rename to nativescript-core/ui/layouts/flexbox-layout/flexbox-layout-common.ts diff --git a/tns-core-modules/ui/layouts/flexbox-layout/flexbox-layout.android.ts b/nativescript-core/ui/layouts/flexbox-layout/flexbox-layout.android.ts similarity index 100% rename from tns-core-modules/ui/layouts/flexbox-layout/flexbox-layout.android.ts rename to nativescript-core/ui/layouts/flexbox-layout/flexbox-layout.android.ts diff --git a/tns-core-modules/ui/layouts/flexbox-layout/flexbox-layout.d.ts b/nativescript-core/ui/layouts/flexbox-layout/flexbox-layout.d.ts similarity index 100% rename from tns-core-modules/ui/layouts/flexbox-layout/flexbox-layout.d.ts rename to nativescript-core/ui/layouts/flexbox-layout/flexbox-layout.d.ts diff --git a/tns-core-modules/ui/layouts/flexbox-layout/flexbox-layout.ios.ts b/nativescript-core/ui/layouts/flexbox-layout/flexbox-layout.ios.ts similarity index 100% rename from tns-core-modules/ui/layouts/flexbox-layout/flexbox-layout.ios.ts rename to nativescript-core/ui/layouts/flexbox-layout/flexbox-layout.ios.ts diff --git a/tns-core-modules/ui/layouts/flexbox-layout/package.json b/nativescript-core/ui/layouts/flexbox-layout/package.json similarity index 100% rename from tns-core-modules/ui/layouts/flexbox-layout/package.json rename to nativescript-core/ui/layouts/flexbox-layout/package.json diff --git a/tns-core-modules/ui/layouts/grid-layout/grid-layout-common.ts b/nativescript-core/ui/layouts/grid-layout/grid-layout-common.ts similarity index 100% rename from tns-core-modules/ui/layouts/grid-layout/grid-layout-common.ts rename to nativescript-core/ui/layouts/grid-layout/grid-layout-common.ts diff --git a/tns-core-modules/ui/layouts/grid-layout/grid-layout.android.ts b/nativescript-core/ui/layouts/grid-layout/grid-layout.android.ts similarity index 100% rename from tns-core-modules/ui/layouts/grid-layout/grid-layout.android.ts rename to nativescript-core/ui/layouts/grid-layout/grid-layout.android.ts diff --git a/tns-core-modules/ui/layouts/grid-layout/grid-layout.d.ts b/nativescript-core/ui/layouts/grid-layout/grid-layout.d.ts similarity index 100% rename from tns-core-modules/ui/layouts/grid-layout/grid-layout.d.ts rename to nativescript-core/ui/layouts/grid-layout/grid-layout.d.ts diff --git a/tns-core-modules/ui/layouts/grid-layout/grid-layout.ios.ts b/nativescript-core/ui/layouts/grid-layout/grid-layout.ios.ts similarity index 100% rename from tns-core-modules/ui/layouts/grid-layout/grid-layout.ios.ts rename to nativescript-core/ui/layouts/grid-layout/grid-layout.ios.ts diff --git a/tns-core-modules/ui/layouts/grid-layout/package.json b/nativescript-core/ui/layouts/grid-layout/package.json similarity index 100% rename from tns-core-modules/ui/layouts/grid-layout/package.json rename to nativescript-core/ui/layouts/grid-layout/package.json diff --git a/tns-core-modules/ui/layouts/layout-base-common.ts b/nativescript-core/ui/layouts/layout-base-common.ts similarity index 100% rename from tns-core-modules/ui/layouts/layout-base-common.ts rename to nativescript-core/ui/layouts/layout-base-common.ts diff --git a/tns-core-modules/ui/layouts/layout-base.android.ts b/nativescript-core/ui/layouts/layout-base.android.ts similarity index 100% rename from tns-core-modules/ui/layouts/layout-base.android.ts rename to nativescript-core/ui/layouts/layout-base.android.ts diff --git a/tns-core-modules/ui/layouts/layout-base.d.ts b/nativescript-core/ui/layouts/layout-base.d.ts similarity index 100% rename from tns-core-modules/ui/layouts/layout-base.d.ts rename to nativescript-core/ui/layouts/layout-base.d.ts diff --git a/tns-core-modules/ui/layouts/layout-base.ios.ts b/nativescript-core/ui/layouts/layout-base.ios.ts similarity index 100% rename from tns-core-modules/ui/layouts/layout-base.ios.ts rename to nativescript-core/ui/layouts/layout-base.ios.ts diff --git a/tns-core-modules/ui/layouts/stack-layout/package.json b/nativescript-core/ui/layouts/stack-layout/package.json similarity index 100% rename from tns-core-modules/ui/layouts/stack-layout/package.json rename to nativescript-core/ui/layouts/stack-layout/package.json diff --git a/tns-core-modules/ui/layouts/stack-layout/stack-layout-common.ts b/nativescript-core/ui/layouts/stack-layout/stack-layout-common.ts similarity index 100% rename from tns-core-modules/ui/layouts/stack-layout/stack-layout-common.ts rename to nativescript-core/ui/layouts/stack-layout/stack-layout-common.ts diff --git a/tns-core-modules/ui/layouts/stack-layout/stack-layout.android.ts b/nativescript-core/ui/layouts/stack-layout/stack-layout.android.ts similarity index 100% rename from tns-core-modules/ui/layouts/stack-layout/stack-layout.android.ts rename to nativescript-core/ui/layouts/stack-layout/stack-layout.android.ts diff --git a/tns-core-modules/ui/layouts/stack-layout/stack-layout.d.ts b/nativescript-core/ui/layouts/stack-layout/stack-layout.d.ts similarity index 100% rename from tns-core-modules/ui/layouts/stack-layout/stack-layout.d.ts rename to nativescript-core/ui/layouts/stack-layout/stack-layout.d.ts diff --git a/tns-core-modules/ui/layouts/stack-layout/stack-layout.ios.ts b/nativescript-core/ui/layouts/stack-layout/stack-layout.ios.ts similarity index 100% rename from tns-core-modules/ui/layouts/stack-layout/stack-layout.ios.ts rename to nativescript-core/ui/layouts/stack-layout/stack-layout.ios.ts diff --git a/tns-core-modules/ui/layouts/wrap-layout/package.json b/nativescript-core/ui/layouts/wrap-layout/package.json similarity index 100% rename from tns-core-modules/ui/layouts/wrap-layout/package.json rename to nativescript-core/ui/layouts/wrap-layout/package.json diff --git a/tns-core-modules/ui/layouts/wrap-layout/wrap-layout-common.ts b/nativescript-core/ui/layouts/wrap-layout/wrap-layout-common.ts similarity index 100% rename from tns-core-modules/ui/layouts/wrap-layout/wrap-layout-common.ts rename to nativescript-core/ui/layouts/wrap-layout/wrap-layout-common.ts diff --git a/tns-core-modules/ui/layouts/wrap-layout/wrap-layout.android.ts b/nativescript-core/ui/layouts/wrap-layout/wrap-layout.android.ts similarity index 100% rename from tns-core-modules/ui/layouts/wrap-layout/wrap-layout.android.ts rename to nativescript-core/ui/layouts/wrap-layout/wrap-layout.android.ts diff --git a/tns-core-modules/ui/layouts/wrap-layout/wrap-layout.d.ts b/nativescript-core/ui/layouts/wrap-layout/wrap-layout.d.ts similarity index 100% rename from tns-core-modules/ui/layouts/wrap-layout/wrap-layout.d.ts rename to nativescript-core/ui/layouts/wrap-layout/wrap-layout.d.ts diff --git a/tns-core-modules/ui/layouts/wrap-layout/wrap-layout.ios.ts b/nativescript-core/ui/layouts/wrap-layout/wrap-layout.ios.ts similarity index 100% rename from tns-core-modules/ui/layouts/wrap-layout/wrap-layout.ios.ts rename to nativescript-core/ui/layouts/wrap-layout/wrap-layout.ios.ts diff --git a/tns-core-modules/ui/list-picker/list-picker-common.ts b/nativescript-core/ui/list-picker/list-picker-common.ts similarity index 100% rename from tns-core-modules/ui/list-picker/list-picker-common.ts rename to nativescript-core/ui/list-picker/list-picker-common.ts diff --git a/tns-core-modules/ui/list-picker/list-picker.android.ts b/nativescript-core/ui/list-picker/list-picker.android.ts similarity index 100% rename from tns-core-modules/ui/list-picker/list-picker.android.ts rename to nativescript-core/ui/list-picker/list-picker.android.ts diff --git a/tns-core-modules/ui/list-picker/list-picker.d.ts b/nativescript-core/ui/list-picker/list-picker.d.ts similarity index 100% rename from tns-core-modules/ui/list-picker/list-picker.d.ts rename to nativescript-core/ui/list-picker/list-picker.d.ts diff --git a/tns-core-modules/ui/list-picker/list-picker.ios.ts b/nativescript-core/ui/list-picker/list-picker.ios.ts similarity index 100% rename from tns-core-modules/ui/list-picker/list-picker.ios.ts rename to nativescript-core/ui/list-picker/list-picker.ios.ts diff --git a/tns-core-modules/ui/list-picker/package.json b/nativescript-core/ui/list-picker/package.json similarity index 100% rename from tns-core-modules/ui/list-picker/package.json rename to nativescript-core/ui/list-picker/package.json diff --git a/tns-core-modules/ui/list-view/Readme.md b/nativescript-core/ui/list-view/Readme.md similarity index 100% rename from tns-core-modules/ui/list-view/Readme.md rename to nativescript-core/ui/list-view/Readme.md diff --git a/tns-core-modules/ui/list-view/list-view-common.ts b/nativescript-core/ui/list-view/list-view-common.ts similarity index 100% rename from tns-core-modules/ui/list-view/list-view-common.ts rename to nativescript-core/ui/list-view/list-view-common.ts diff --git a/tns-core-modules/ui/list-view/list-view.android.ts b/nativescript-core/ui/list-view/list-view.android.ts similarity index 100% rename from tns-core-modules/ui/list-view/list-view.android.ts rename to nativescript-core/ui/list-view/list-view.android.ts diff --git a/tns-core-modules/ui/list-view/list-view.d.ts b/nativescript-core/ui/list-view/list-view.d.ts similarity index 100% rename from tns-core-modules/ui/list-view/list-view.d.ts rename to nativescript-core/ui/list-view/list-view.d.ts diff --git a/tns-core-modules/ui/list-view/list-view.ios.ts b/nativescript-core/ui/list-view/list-view.ios.ts similarity index 100% rename from tns-core-modules/ui/list-view/list-view.ios.ts rename to nativescript-core/ui/list-view/list-view.ios.ts diff --git a/tns-core-modules/ui/list-view/package.json b/nativescript-core/ui/list-view/package.json similarity index 100% rename from tns-core-modules/ui/list-view/package.json rename to nativescript-core/ui/list-view/package.json diff --git a/tns-core-modules/ui/package.json b/nativescript-core/ui/package.json similarity index 100% rename from tns-core-modules/ui/package.json rename to nativescript-core/ui/package.json diff --git a/tns-core-modules/ui/page/package.json b/nativescript-core/ui/page/package.json similarity index 100% rename from tns-core-modules/ui/page/package.json rename to nativescript-core/ui/page/package.json diff --git a/tns-core-modules/ui/page/page-common.ts b/nativescript-core/ui/page/page-common.ts similarity index 100% rename from tns-core-modules/ui/page/page-common.ts rename to nativescript-core/ui/page/page-common.ts diff --git a/tns-core-modules/ui/page/page.android.ts b/nativescript-core/ui/page/page.android.ts similarity index 100% rename from tns-core-modules/ui/page/page.android.ts rename to nativescript-core/ui/page/page.android.ts diff --git a/tns-core-modules/ui/page/page.d.ts b/nativescript-core/ui/page/page.d.ts similarity index 100% rename from tns-core-modules/ui/page/page.d.ts rename to nativescript-core/ui/page/page.d.ts diff --git a/tns-core-modules/ui/page/page.ios.ts b/nativescript-core/ui/page/page.ios.ts similarity index 100% rename from tns-core-modules/ui/page/page.ios.ts rename to nativescript-core/ui/page/page.ios.ts diff --git a/tns-core-modules/ui/placeholder/package.json b/nativescript-core/ui/placeholder/package.json similarity index 100% rename from tns-core-modules/ui/placeholder/package.json rename to nativescript-core/ui/placeholder/package.json diff --git a/tns-core-modules/ui/placeholder/placeholder.android.ts b/nativescript-core/ui/placeholder/placeholder.android.ts similarity index 100% rename from tns-core-modules/ui/placeholder/placeholder.android.ts rename to nativescript-core/ui/placeholder/placeholder.android.ts diff --git a/tns-core-modules/ui/placeholder/placeholder.d.ts b/nativescript-core/ui/placeholder/placeholder.d.ts similarity index 100% rename from tns-core-modules/ui/placeholder/placeholder.d.ts rename to nativescript-core/ui/placeholder/placeholder.d.ts diff --git a/tns-core-modules/ui/placeholder/placeholder.ts b/nativescript-core/ui/placeholder/placeholder.ts similarity index 100% rename from tns-core-modules/ui/placeholder/placeholder.ts rename to nativescript-core/ui/placeholder/placeholder.ts diff --git a/tns-core-modules/ui/progress/package.json b/nativescript-core/ui/progress/package.json similarity index 100% rename from tns-core-modules/ui/progress/package.json rename to nativescript-core/ui/progress/package.json diff --git a/tns-core-modules/ui/progress/progress-common.ts b/nativescript-core/ui/progress/progress-common.ts similarity index 100% rename from tns-core-modules/ui/progress/progress-common.ts rename to nativescript-core/ui/progress/progress-common.ts diff --git a/tns-core-modules/ui/progress/progress.android.ts b/nativescript-core/ui/progress/progress.android.ts similarity index 100% rename from tns-core-modules/ui/progress/progress.android.ts rename to nativescript-core/ui/progress/progress.android.ts diff --git a/tns-core-modules/ui/progress/progress.d.ts b/nativescript-core/ui/progress/progress.d.ts similarity index 100% rename from tns-core-modules/ui/progress/progress.d.ts rename to nativescript-core/ui/progress/progress.d.ts diff --git a/tns-core-modules/ui/progress/progress.ios.ts b/nativescript-core/ui/progress/progress.ios.ts similarity index 100% rename from tns-core-modules/ui/progress/progress.ios.ts rename to nativescript-core/ui/progress/progress.ios.ts diff --git a/tns-core-modules/ui/proxy-view-container/package.json b/nativescript-core/ui/proxy-view-container/package.json similarity index 100% rename from tns-core-modules/ui/proxy-view-container/package.json rename to nativescript-core/ui/proxy-view-container/package.json diff --git a/tns-core-modules/ui/proxy-view-container/proxy-view-container.d.ts b/nativescript-core/ui/proxy-view-container/proxy-view-container.d.ts similarity index 100% rename from tns-core-modules/ui/proxy-view-container/proxy-view-container.d.ts rename to nativescript-core/ui/proxy-view-container/proxy-view-container.d.ts diff --git a/tns-core-modules/ui/proxy-view-container/proxy-view-container.ts b/nativescript-core/ui/proxy-view-container/proxy-view-container.ts similarity index 100% rename from tns-core-modules/ui/proxy-view-container/proxy-view-container.ts rename to nativescript-core/ui/proxy-view-container/proxy-view-container.ts diff --git a/tns-core-modules/ui/repeater/package.json b/nativescript-core/ui/repeater/package.json similarity index 100% rename from tns-core-modules/ui/repeater/package.json rename to nativescript-core/ui/repeater/package.json diff --git a/tns-core-modules/ui/repeater/repeater.d.ts b/nativescript-core/ui/repeater/repeater.d.ts similarity index 100% rename from tns-core-modules/ui/repeater/repeater.d.ts rename to nativescript-core/ui/repeater/repeater.d.ts diff --git a/tns-core-modules/ui/repeater/repeater.ts b/nativescript-core/ui/repeater/repeater.ts similarity index 100% rename from tns-core-modules/ui/repeater/repeater.ts rename to nativescript-core/ui/repeater/repeater.ts diff --git a/tns-core-modules/ui/scroll-view/package.json b/nativescript-core/ui/scroll-view/package.json similarity index 100% rename from tns-core-modules/ui/scroll-view/package.json rename to nativescript-core/ui/scroll-view/package.json diff --git a/tns-core-modules/ui/scroll-view/scroll-view-common.ts b/nativescript-core/ui/scroll-view/scroll-view-common.ts similarity index 100% rename from tns-core-modules/ui/scroll-view/scroll-view-common.ts rename to nativescript-core/ui/scroll-view/scroll-view-common.ts diff --git a/tns-core-modules/ui/scroll-view/scroll-view.android.ts b/nativescript-core/ui/scroll-view/scroll-view.android.ts similarity index 100% rename from tns-core-modules/ui/scroll-view/scroll-view.android.ts rename to nativescript-core/ui/scroll-view/scroll-view.android.ts diff --git a/tns-core-modules/ui/scroll-view/scroll-view.d.ts b/nativescript-core/ui/scroll-view/scroll-view.d.ts similarity index 100% rename from tns-core-modules/ui/scroll-view/scroll-view.d.ts rename to nativescript-core/ui/scroll-view/scroll-view.d.ts diff --git a/tns-core-modules/ui/scroll-view/scroll-view.ios.ts b/nativescript-core/ui/scroll-view/scroll-view.ios.ts similarity index 100% rename from tns-core-modules/ui/scroll-view/scroll-view.ios.ts rename to nativescript-core/ui/scroll-view/scroll-view.ios.ts diff --git a/tns-core-modules/ui/search-bar/package.json b/nativescript-core/ui/search-bar/package.json similarity index 100% rename from tns-core-modules/ui/search-bar/package.json rename to nativescript-core/ui/search-bar/package.json diff --git a/tns-core-modules/ui/search-bar/search-bar-common.ts b/nativescript-core/ui/search-bar/search-bar-common.ts similarity index 100% rename from tns-core-modules/ui/search-bar/search-bar-common.ts rename to nativescript-core/ui/search-bar/search-bar-common.ts diff --git a/tns-core-modules/ui/search-bar/search-bar.android.ts b/nativescript-core/ui/search-bar/search-bar.android.ts similarity index 100% rename from tns-core-modules/ui/search-bar/search-bar.android.ts rename to nativescript-core/ui/search-bar/search-bar.android.ts diff --git a/tns-core-modules/ui/search-bar/search-bar.d.ts b/nativescript-core/ui/search-bar/search-bar.d.ts similarity index 100% rename from tns-core-modules/ui/search-bar/search-bar.d.ts rename to nativescript-core/ui/search-bar/search-bar.d.ts diff --git a/tns-core-modules/ui/search-bar/search-bar.ios.ts b/nativescript-core/ui/search-bar/search-bar.ios.ts similarity index 100% rename from tns-core-modules/ui/search-bar/search-bar.ios.ts rename to nativescript-core/ui/search-bar/search-bar.ios.ts diff --git a/tns-core-modules/ui/segmented-bar/package.json b/nativescript-core/ui/segmented-bar/package.json similarity index 100% rename from tns-core-modules/ui/segmented-bar/package.json rename to nativescript-core/ui/segmented-bar/package.json diff --git a/tns-core-modules/ui/segmented-bar/segmented-bar-common.ts b/nativescript-core/ui/segmented-bar/segmented-bar-common.ts similarity index 100% rename from tns-core-modules/ui/segmented-bar/segmented-bar-common.ts rename to nativescript-core/ui/segmented-bar/segmented-bar-common.ts diff --git a/tns-core-modules/ui/segmented-bar/segmented-bar.android.ts b/nativescript-core/ui/segmented-bar/segmented-bar.android.ts similarity index 100% rename from tns-core-modules/ui/segmented-bar/segmented-bar.android.ts rename to nativescript-core/ui/segmented-bar/segmented-bar.android.ts diff --git a/tns-core-modules/ui/segmented-bar/segmented-bar.d.ts b/nativescript-core/ui/segmented-bar/segmented-bar.d.ts similarity index 100% rename from tns-core-modules/ui/segmented-bar/segmented-bar.d.ts rename to nativescript-core/ui/segmented-bar/segmented-bar.d.ts diff --git a/tns-core-modules/ui/segmented-bar/segmented-bar.ios.ts b/nativescript-core/ui/segmented-bar/segmented-bar.ios.ts similarity index 100% rename from tns-core-modules/ui/segmented-bar/segmented-bar.ios.ts rename to nativescript-core/ui/segmented-bar/segmented-bar.ios.ts diff --git a/tns-core-modules/ui/slider/package.json b/nativescript-core/ui/slider/package.json similarity index 100% rename from tns-core-modules/ui/slider/package.json rename to nativescript-core/ui/slider/package.json diff --git a/tns-core-modules/ui/slider/slider-common.ts b/nativescript-core/ui/slider/slider-common.ts similarity index 100% rename from tns-core-modules/ui/slider/slider-common.ts rename to nativescript-core/ui/slider/slider-common.ts diff --git a/tns-core-modules/ui/slider/slider.android.ts b/nativescript-core/ui/slider/slider.android.ts similarity index 100% rename from tns-core-modules/ui/slider/slider.android.ts rename to nativescript-core/ui/slider/slider.android.ts diff --git a/tns-core-modules/ui/slider/slider.d.ts b/nativescript-core/ui/slider/slider.d.ts similarity index 100% rename from tns-core-modules/ui/slider/slider.d.ts rename to nativescript-core/ui/slider/slider.d.ts diff --git a/tns-core-modules/ui/slider/slider.ios.ts b/nativescript-core/ui/slider/slider.ios.ts similarity index 100% rename from tns-core-modules/ui/slider/slider.ios.ts rename to nativescript-core/ui/slider/slider.ios.ts diff --git a/tns-core-modules/ui/styling/background-common.ts b/nativescript-core/ui/styling/background-common.ts similarity index 100% rename from tns-core-modules/ui/styling/background-common.ts rename to nativescript-core/ui/styling/background-common.ts diff --git a/tns-core-modules/ui/styling/background.android.ts b/nativescript-core/ui/styling/background.android.ts similarity index 100% rename from tns-core-modules/ui/styling/background.android.ts rename to nativescript-core/ui/styling/background.android.ts diff --git a/tns-core-modules/ui/styling/background.d.ts b/nativescript-core/ui/styling/background.d.ts similarity index 100% rename from tns-core-modules/ui/styling/background.d.ts rename to nativescript-core/ui/styling/background.d.ts diff --git a/tns-core-modules/ui/styling/background.ios.ts b/nativescript-core/ui/styling/background.ios.ts similarity index 100% rename from tns-core-modules/ui/styling/background.ios.ts rename to nativescript-core/ui/styling/background.ios.ts diff --git a/tns-core-modules/ui/styling/converters.ts b/nativescript-core/ui/styling/converters.ts similarity index 100% rename from tns-core-modules/ui/styling/converters.ts rename to nativescript-core/ui/styling/converters.ts diff --git a/tns-core-modules/ui/styling/css-animation-parser.ts b/nativescript-core/ui/styling/css-animation-parser.ts similarity index 100% rename from tns-core-modules/ui/styling/css-animation-parser.ts rename to nativescript-core/ui/styling/css-animation-parser.ts diff --git a/tns-core-modules/ui/styling/css-selector/css-selector.d.ts b/nativescript-core/ui/styling/css-selector/css-selector.d.ts similarity index 100% rename from tns-core-modules/ui/styling/css-selector/css-selector.d.ts rename to nativescript-core/ui/styling/css-selector/css-selector.d.ts diff --git a/tns-core-modules/ui/styling/css-selector/css-selector.ts b/nativescript-core/ui/styling/css-selector/css-selector.ts similarity index 100% rename from tns-core-modules/ui/styling/css-selector/css-selector.ts rename to nativescript-core/ui/styling/css-selector/css-selector.ts diff --git a/tns-core-modules/ui/styling/css-selector/package.json b/nativescript-core/ui/styling/css-selector/package.json similarity index 100% rename from tns-core-modules/ui/styling/css-selector/package.json rename to nativescript-core/ui/styling/css-selector/package.json diff --git a/tns-core-modules/ui/styling/font-common.ts b/nativescript-core/ui/styling/font-common.ts similarity index 100% rename from tns-core-modules/ui/styling/font-common.ts rename to nativescript-core/ui/styling/font-common.ts diff --git a/tns-core-modules/ui/styling/font.android.ts b/nativescript-core/ui/styling/font.android.ts similarity index 100% rename from tns-core-modules/ui/styling/font.android.ts rename to nativescript-core/ui/styling/font.android.ts diff --git a/tns-core-modules/ui/styling/font.d.ts b/nativescript-core/ui/styling/font.d.ts similarity index 100% rename from tns-core-modules/ui/styling/font.d.ts rename to nativescript-core/ui/styling/font.d.ts diff --git a/tns-core-modules/ui/styling/font.ios.ts b/nativescript-core/ui/styling/font.ios.ts similarity index 100% rename from tns-core-modules/ui/styling/font.ios.ts rename to nativescript-core/ui/styling/font.ios.ts diff --git a/tns-core-modules/ui/styling/gradient.d.ts b/nativescript-core/ui/styling/gradient.d.ts similarity index 100% rename from tns-core-modules/ui/styling/gradient.d.ts rename to nativescript-core/ui/styling/gradient.d.ts diff --git a/tns-core-modules/ui/styling/linear-gradient.ts b/nativescript-core/ui/styling/linear-gradient.ts similarity index 100% rename from tns-core-modules/ui/styling/linear-gradient.ts rename to nativescript-core/ui/styling/linear-gradient.ts diff --git a/tns-core-modules/ui/styling/package.json b/nativescript-core/ui/styling/package.json similarity index 100% rename from tns-core-modules/ui/styling/package.json rename to nativescript-core/ui/styling/package.json diff --git a/tns-core-modules/ui/styling/style-properties.d.ts b/nativescript-core/ui/styling/style-properties.d.ts similarity index 100% rename from tns-core-modules/ui/styling/style-properties.d.ts rename to nativescript-core/ui/styling/style-properties.d.ts diff --git a/tns-core-modules/ui/styling/style-properties.ts b/nativescript-core/ui/styling/style-properties.ts similarity index 100% rename from tns-core-modules/ui/styling/style-properties.ts rename to nativescript-core/ui/styling/style-properties.ts diff --git a/tns-core-modules/ui/styling/style-scope.d.ts b/nativescript-core/ui/styling/style-scope.d.ts similarity index 100% rename from tns-core-modules/ui/styling/style-scope.d.ts rename to nativescript-core/ui/styling/style-scope.d.ts diff --git a/tns-core-modules/ui/styling/style-scope.ts b/nativescript-core/ui/styling/style-scope.ts similarity index 100% rename from tns-core-modules/ui/styling/style-scope.ts rename to nativescript-core/ui/styling/style-scope.ts diff --git a/tns-core-modules/ui/styling/style/package.json b/nativescript-core/ui/styling/style/package.json similarity index 100% rename from tns-core-modules/ui/styling/style/package.json rename to nativescript-core/ui/styling/style/package.json diff --git a/tns-core-modules/ui/styling/style/style.d.ts b/nativescript-core/ui/styling/style/style.d.ts similarity index 100% rename from tns-core-modules/ui/styling/style/style.d.ts rename to nativescript-core/ui/styling/style/style.d.ts diff --git a/tns-core-modules/ui/styling/style/style.ts b/nativescript-core/ui/styling/style/style.ts similarity index 100% rename from tns-core-modules/ui/styling/style/style.ts rename to nativescript-core/ui/styling/style/style.ts diff --git a/tns-core-modules/ui/switch/package.json b/nativescript-core/ui/switch/package.json similarity index 100% rename from tns-core-modules/ui/switch/package.json rename to nativescript-core/ui/switch/package.json diff --git a/tns-core-modules/ui/switch/switch-common.ts b/nativescript-core/ui/switch/switch-common.ts similarity index 100% rename from tns-core-modules/ui/switch/switch-common.ts rename to nativescript-core/ui/switch/switch-common.ts diff --git a/tns-core-modules/ui/switch/switch.android.ts b/nativescript-core/ui/switch/switch.android.ts similarity index 100% rename from tns-core-modules/ui/switch/switch.android.ts rename to nativescript-core/ui/switch/switch.android.ts diff --git a/tns-core-modules/ui/switch/switch.d.ts b/nativescript-core/ui/switch/switch.d.ts similarity index 100% rename from tns-core-modules/ui/switch/switch.d.ts rename to nativescript-core/ui/switch/switch.d.ts diff --git a/tns-core-modules/ui/switch/switch.ios.ts b/nativescript-core/ui/switch/switch.ios.ts similarity index 100% rename from tns-core-modules/ui/switch/switch.ios.ts rename to nativescript-core/ui/switch/switch.ios.ts diff --git a/tns-core-modules/ui/tab-navigation-base/tab-content-item/package.json b/nativescript-core/ui/tab-navigation-base/tab-content-item/package.json similarity index 100% rename from tns-core-modules/ui/tab-navigation-base/tab-content-item/package.json rename to nativescript-core/ui/tab-navigation-base/tab-content-item/package.json diff --git a/tns-core-modules/ui/tab-navigation-base/tab-content-item/tab-content-item-common.ts b/nativescript-core/ui/tab-navigation-base/tab-content-item/tab-content-item-common.ts similarity index 100% rename from tns-core-modules/ui/tab-navigation-base/tab-content-item/tab-content-item-common.ts rename to nativescript-core/ui/tab-navigation-base/tab-content-item/tab-content-item-common.ts diff --git a/tns-core-modules/ui/tab-navigation-base/tab-content-item/tab-content-item.android.ts b/nativescript-core/ui/tab-navigation-base/tab-content-item/tab-content-item.android.ts similarity index 100% rename from tns-core-modules/ui/tab-navigation-base/tab-content-item/tab-content-item.android.ts rename to nativescript-core/ui/tab-navigation-base/tab-content-item/tab-content-item.android.ts diff --git a/tns-core-modules/ui/tab-navigation-base/tab-content-item/tab-content-item.d.ts b/nativescript-core/ui/tab-navigation-base/tab-content-item/tab-content-item.d.ts similarity index 100% rename from tns-core-modules/ui/tab-navigation-base/tab-content-item/tab-content-item.d.ts rename to nativescript-core/ui/tab-navigation-base/tab-content-item/tab-content-item.d.ts diff --git a/tns-core-modules/ui/tab-navigation-base/tab-content-item/tab-content-item.ios.ts b/nativescript-core/ui/tab-navigation-base/tab-content-item/tab-content-item.ios.ts similarity index 100% rename from tns-core-modules/ui/tab-navigation-base/tab-content-item/tab-content-item.ios.ts rename to nativescript-core/ui/tab-navigation-base/tab-content-item/tab-content-item.ios.ts diff --git a/tns-core-modules/ui/tab-navigation-base/tab-navigation-base/package.json b/nativescript-core/ui/tab-navigation-base/tab-navigation-base/package.json similarity index 100% rename from tns-core-modules/ui/tab-navigation-base/tab-navigation-base/package.json rename to nativescript-core/ui/tab-navigation-base/tab-navigation-base/package.json diff --git a/tns-core-modules/ui/tab-navigation-base/tab-navigation-base/tab-navigation-base.d.ts b/nativescript-core/ui/tab-navigation-base/tab-navigation-base/tab-navigation-base.d.ts similarity index 100% rename from tns-core-modules/ui/tab-navigation-base/tab-navigation-base/tab-navigation-base.d.ts rename to nativescript-core/ui/tab-navigation-base/tab-navigation-base/tab-navigation-base.d.ts diff --git a/tns-core-modules/ui/tab-navigation-base/tab-navigation-base/tab-navigation-base.ts b/nativescript-core/ui/tab-navigation-base/tab-navigation-base/tab-navigation-base.ts similarity index 100% rename from tns-core-modules/ui/tab-navigation-base/tab-navigation-base/tab-navigation-base.ts rename to nativescript-core/ui/tab-navigation-base/tab-navigation-base/tab-navigation-base.ts diff --git a/tns-core-modules/ui/tab-navigation-base/tab-strip-item/package.json b/nativescript-core/ui/tab-navigation-base/tab-strip-item/package.json similarity index 100% rename from tns-core-modules/ui/tab-navigation-base/tab-strip-item/package.json rename to nativescript-core/ui/tab-navigation-base/tab-strip-item/package.json diff --git a/tns-core-modules/ui/tab-navigation-base/tab-strip-item/tab-strip-item.d.ts b/nativescript-core/ui/tab-navigation-base/tab-strip-item/tab-strip-item.d.ts similarity index 100% rename from tns-core-modules/ui/tab-navigation-base/tab-strip-item/tab-strip-item.d.ts rename to nativescript-core/ui/tab-navigation-base/tab-strip-item/tab-strip-item.d.ts diff --git a/tns-core-modules/ui/tab-navigation-base/tab-strip-item/tab-strip-item.ts b/nativescript-core/ui/tab-navigation-base/tab-strip-item/tab-strip-item.ts similarity index 100% rename from tns-core-modules/ui/tab-navigation-base/tab-strip-item/tab-strip-item.ts rename to nativescript-core/ui/tab-navigation-base/tab-strip-item/tab-strip-item.ts diff --git a/tns-core-modules/ui/tab-navigation-base/tab-strip/package.json b/nativescript-core/ui/tab-navigation-base/tab-strip/package.json similarity index 100% rename from tns-core-modules/ui/tab-navigation-base/tab-strip/package.json rename to nativescript-core/ui/tab-navigation-base/tab-strip/package.json diff --git a/tns-core-modules/ui/tab-navigation-base/tab-strip/tab-strip.d.ts b/nativescript-core/ui/tab-navigation-base/tab-strip/tab-strip.d.ts similarity index 100% rename from tns-core-modules/ui/tab-navigation-base/tab-strip/tab-strip.d.ts rename to nativescript-core/ui/tab-navigation-base/tab-strip/tab-strip.d.ts diff --git a/tns-core-modules/ui/tab-navigation-base/tab-strip/tab-strip.ts b/nativescript-core/ui/tab-navigation-base/tab-strip/tab-strip.ts similarity index 100% rename from tns-core-modules/ui/tab-navigation-base/tab-strip/tab-strip.ts rename to nativescript-core/ui/tab-navigation-base/tab-strip/tab-strip.ts diff --git a/tns-core-modules/ui/tab-view/package.json b/nativescript-core/ui/tab-view/package.json similarity index 100% rename from tns-core-modules/ui/tab-view/package.json rename to nativescript-core/ui/tab-view/package.json diff --git a/tns-core-modules/ui/tab-view/tab-view-common.ts b/nativescript-core/ui/tab-view/tab-view-common.ts similarity index 100% rename from tns-core-modules/ui/tab-view/tab-view-common.ts rename to nativescript-core/ui/tab-view/tab-view-common.ts diff --git a/tns-core-modules/ui/tab-view/tab-view.android.ts b/nativescript-core/ui/tab-view/tab-view.android.ts similarity index 100% rename from tns-core-modules/ui/tab-view/tab-view.android.ts rename to nativescript-core/ui/tab-view/tab-view.android.ts diff --git a/tns-core-modules/ui/tab-view/tab-view.d.ts b/nativescript-core/ui/tab-view/tab-view.d.ts similarity index 100% rename from tns-core-modules/ui/tab-view/tab-view.d.ts rename to nativescript-core/ui/tab-view/tab-view.d.ts diff --git a/tns-core-modules/ui/tab-view/tab-view.ios.ts b/nativescript-core/ui/tab-view/tab-view.ios.ts similarity index 100% rename from tns-core-modules/ui/tab-view/tab-view.ios.ts rename to nativescript-core/ui/tab-view/tab-view.ios.ts diff --git a/tns-core-modules/ui/tabs/package.json b/nativescript-core/ui/tabs/package.json similarity index 100% rename from tns-core-modules/ui/tabs/package.json rename to nativescript-core/ui/tabs/package.json diff --git a/tns-core-modules/ui/tabs/tabs-common.ts b/nativescript-core/ui/tabs/tabs-common.ts similarity index 100% rename from tns-core-modules/ui/tabs/tabs-common.ts rename to nativescript-core/ui/tabs/tabs-common.ts diff --git a/tns-core-modules/ui/tabs/tabs.android.ts b/nativescript-core/ui/tabs/tabs.android.ts similarity index 100% rename from tns-core-modules/ui/tabs/tabs.android.ts rename to nativescript-core/ui/tabs/tabs.android.ts diff --git a/tns-core-modules/ui/tabs/tabs.d.ts b/nativescript-core/ui/tabs/tabs.d.ts similarity index 100% rename from tns-core-modules/ui/tabs/tabs.d.ts rename to nativescript-core/ui/tabs/tabs.d.ts diff --git a/tns-core-modules/ui/tabs/tabs.ios.ts b/nativescript-core/ui/tabs/tabs.ios.ts similarity index 100% rename from tns-core-modules/ui/tabs/tabs.ios.ts rename to nativescript-core/ui/tabs/tabs.ios.ts diff --git a/tns-core-modules/ui/text-base/package.json b/nativescript-core/ui/text-base/package.json similarity index 100% rename from tns-core-modules/ui/text-base/package.json rename to nativescript-core/ui/text-base/package.json diff --git a/tns-core-modules/ui/text-base/text-base-common.ts b/nativescript-core/ui/text-base/text-base-common.ts similarity index 100% rename from tns-core-modules/ui/text-base/text-base-common.ts rename to nativescript-core/ui/text-base/text-base-common.ts diff --git a/tns-core-modules/ui/text-base/text-base.android.ts b/nativescript-core/ui/text-base/text-base.android.ts similarity index 100% rename from tns-core-modules/ui/text-base/text-base.android.ts rename to nativescript-core/ui/text-base/text-base.android.ts diff --git a/tns-core-modules/ui/text-base/text-base.d.ts b/nativescript-core/ui/text-base/text-base.d.ts similarity index 100% rename from tns-core-modules/ui/text-base/text-base.d.ts rename to nativescript-core/ui/text-base/text-base.d.ts diff --git a/tns-core-modules/ui/text-base/text-base.ios.ts b/nativescript-core/ui/text-base/text-base.ios.ts similarity index 100% rename from tns-core-modules/ui/text-base/text-base.ios.ts rename to nativescript-core/ui/text-base/text-base.ios.ts diff --git a/tns-core-modules/ui/text-field/package.json b/nativescript-core/ui/text-field/package.json similarity index 100% rename from tns-core-modules/ui/text-field/package.json rename to nativescript-core/ui/text-field/package.json diff --git a/tns-core-modules/ui/text-field/text-field-common.ts b/nativescript-core/ui/text-field/text-field-common.ts similarity index 100% rename from tns-core-modules/ui/text-field/text-field-common.ts rename to nativescript-core/ui/text-field/text-field-common.ts diff --git a/tns-core-modules/ui/text-field/text-field.android.ts b/nativescript-core/ui/text-field/text-field.android.ts similarity index 100% rename from tns-core-modules/ui/text-field/text-field.android.ts rename to nativescript-core/ui/text-field/text-field.android.ts diff --git a/tns-core-modules/ui/text-field/text-field.d.ts b/nativescript-core/ui/text-field/text-field.d.ts similarity index 100% rename from tns-core-modules/ui/text-field/text-field.d.ts rename to nativescript-core/ui/text-field/text-field.d.ts diff --git a/tns-core-modules/ui/text-field/text-field.ios.ts b/nativescript-core/ui/text-field/text-field.ios.ts similarity index 100% rename from tns-core-modules/ui/text-field/text-field.ios.ts rename to nativescript-core/ui/text-field/text-field.ios.ts diff --git a/tns-core-modules/ui/text-view/package.json b/nativescript-core/ui/text-view/package.json similarity index 100% rename from tns-core-modules/ui/text-view/package.json rename to nativescript-core/ui/text-view/package.json diff --git a/tns-core-modules/ui/text-view/text-view.android.ts b/nativescript-core/ui/text-view/text-view.android.ts similarity index 100% rename from tns-core-modules/ui/text-view/text-view.android.ts rename to nativescript-core/ui/text-view/text-view.android.ts diff --git a/tns-core-modules/ui/text-view/text-view.d.ts b/nativescript-core/ui/text-view/text-view.d.ts similarity index 100% rename from tns-core-modules/ui/text-view/text-view.d.ts rename to nativescript-core/ui/text-view/text-view.d.ts diff --git a/tns-core-modules/ui/text-view/text-view.ios.ts b/nativescript-core/ui/text-view/text-view.ios.ts similarity index 100% rename from tns-core-modules/ui/text-view/text-view.ios.ts rename to nativescript-core/ui/text-view/text-view.ios.ts diff --git a/tns-core-modules/ui/time-picker/package.json b/nativescript-core/ui/time-picker/package.json similarity index 100% rename from tns-core-modules/ui/time-picker/package.json rename to nativescript-core/ui/time-picker/package.json diff --git a/tns-core-modules/ui/time-picker/time-picker-common.ts b/nativescript-core/ui/time-picker/time-picker-common.ts similarity index 100% rename from tns-core-modules/ui/time-picker/time-picker-common.ts rename to nativescript-core/ui/time-picker/time-picker-common.ts diff --git a/tns-core-modules/ui/time-picker/time-picker.android.ts b/nativescript-core/ui/time-picker/time-picker.android.ts similarity index 100% rename from tns-core-modules/ui/time-picker/time-picker.android.ts rename to nativescript-core/ui/time-picker/time-picker.android.ts diff --git a/tns-core-modules/ui/time-picker/time-picker.d.ts b/nativescript-core/ui/time-picker/time-picker.d.ts similarity index 100% rename from tns-core-modules/ui/time-picker/time-picker.d.ts rename to nativescript-core/ui/time-picker/time-picker.d.ts diff --git a/tns-core-modules/ui/time-picker/time-picker.ios.ts b/nativescript-core/ui/time-picker/time-picker.ios.ts similarity index 100% rename from tns-core-modules/ui/time-picker/time-picker.ios.ts rename to nativescript-core/ui/time-picker/time-picker.ios.ts diff --git a/tns-core-modules/ui/transition/fade-transition.android.ts b/nativescript-core/ui/transition/fade-transition.android.ts similarity index 100% rename from tns-core-modules/ui/transition/fade-transition.android.ts rename to nativescript-core/ui/transition/fade-transition.android.ts diff --git a/tns-core-modules/ui/transition/fade-transition.d.ts b/nativescript-core/ui/transition/fade-transition.d.ts similarity index 100% rename from tns-core-modules/ui/transition/fade-transition.d.ts rename to nativescript-core/ui/transition/fade-transition.d.ts diff --git a/tns-core-modules/ui/transition/fade-transition.ios.ts b/nativescript-core/ui/transition/fade-transition.ios.ts similarity index 100% rename from tns-core-modules/ui/transition/fade-transition.ios.ts rename to nativescript-core/ui/transition/fade-transition.ios.ts diff --git a/tns-core-modules/ui/transition/flip-transition.android.ts b/nativescript-core/ui/transition/flip-transition.android.ts similarity index 100% rename from tns-core-modules/ui/transition/flip-transition.android.ts rename to nativescript-core/ui/transition/flip-transition.android.ts diff --git a/tns-core-modules/ui/transition/flip-transition.d.ts b/nativescript-core/ui/transition/flip-transition.d.ts similarity index 100% rename from tns-core-modules/ui/transition/flip-transition.d.ts rename to nativescript-core/ui/transition/flip-transition.d.ts diff --git a/tns-core-modules/ui/transition/package.json b/nativescript-core/ui/transition/package.json similarity index 100% rename from tns-core-modules/ui/transition/package.json rename to nativescript-core/ui/transition/package.json diff --git a/tns-core-modules/ui/transition/slide-transition.android.ts b/nativescript-core/ui/transition/slide-transition.android.ts similarity index 100% rename from tns-core-modules/ui/transition/slide-transition.android.ts rename to nativescript-core/ui/transition/slide-transition.android.ts diff --git a/tns-core-modules/ui/transition/slide-transition.d.ts b/nativescript-core/ui/transition/slide-transition.d.ts similarity index 100% rename from tns-core-modules/ui/transition/slide-transition.d.ts rename to nativescript-core/ui/transition/slide-transition.d.ts diff --git a/tns-core-modules/ui/transition/slide-transition.ios.ts b/nativescript-core/ui/transition/slide-transition.ios.ts similarity index 100% rename from tns-core-modules/ui/transition/slide-transition.ios.ts rename to nativescript-core/ui/transition/slide-transition.ios.ts diff --git a/tns-core-modules/ui/transition/transition.android.ts b/nativescript-core/ui/transition/transition.android.ts similarity index 100% rename from tns-core-modules/ui/transition/transition.android.ts rename to nativescript-core/ui/transition/transition.android.ts diff --git a/tns-core-modules/ui/transition/transition.d.ts b/nativescript-core/ui/transition/transition.d.ts similarity index 100% rename from tns-core-modules/ui/transition/transition.d.ts rename to nativescript-core/ui/transition/transition.d.ts diff --git a/tns-core-modules/ui/transition/transition.ios.ts b/nativescript-core/ui/transition/transition.ios.ts similarity index 100% rename from tns-core-modules/ui/transition/transition.ios.ts rename to nativescript-core/ui/transition/transition.ios.ts diff --git a/tns-core-modules/ui/utils.android.ts b/nativescript-core/ui/utils.android.ts similarity index 100% rename from tns-core-modules/ui/utils.android.ts rename to nativescript-core/ui/utils.android.ts diff --git a/tns-core-modules/ui/utils.d.ts b/nativescript-core/ui/utils.d.ts similarity index 100% rename from tns-core-modules/ui/utils.d.ts rename to nativescript-core/ui/utils.d.ts diff --git a/tns-core-modules/ui/utils.ios.ts b/nativescript-core/ui/utils.ios.ts similarity index 100% rename from tns-core-modules/ui/utils.ios.ts rename to nativescript-core/ui/utils.ios.ts diff --git a/tns-core-modules/ui/web-view/package.json b/nativescript-core/ui/web-view/package.json similarity index 100% rename from tns-core-modules/ui/web-view/package.json rename to nativescript-core/ui/web-view/package.json diff --git a/tns-core-modules/ui/web-view/web-view-common.ts b/nativescript-core/ui/web-view/web-view-common.ts similarity index 100% rename from tns-core-modules/ui/web-view/web-view-common.ts rename to nativescript-core/ui/web-view/web-view-common.ts diff --git a/tns-core-modules/ui/web-view/web-view.android.ts b/nativescript-core/ui/web-view/web-view.android.ts similarity index 100% rename from tns-core-modules/ui/web-view/web-view.android.ts rename to nativescript-core/ui/web-view/web-view.android.ts diff --git a/tns-core-modules/ui/web-view/web-view.d.ts b/nativescript-core/ui/web-view/web-view.d.ts similarity index 100% rename from tns-core-modules/ui/web-view/web-view.d.ts rename to nativescript-core/ui/web-view/web-view.d.ts diff --git a/tns-core-modules/ui/web-view/web-view.ios.ts b/nativescript-core/ui/web-view/web-view.ios.ts similarity index 100% rename from tns-core-modules/ui/web-view/web-view.ios.ts rename to nativescript-core/ui/web-view/web-view.ios.ts diff --git a/tns-core-modules/utils/debug.d.ts b/nativescript-core/utils/debug.d.ts similarity index 100% rename from tns-core-modules/utils/debug.d.ts rename to nativescript-core/utils/debug.d.ts diff --git a/tns-core-modules/utils/debug.ts b/nativescript-core/utils/debug.ts similarity index 100% rename from tns-core-modules/utils/debug.ts rename to nativescript-core/utils/debug.ts diff --git a/tns-core-modules/utils/lazy.d.ts b/nativescript-core/utils/lazy.d.ts similarity index 100% rename from tns-core-modules/utils/lazy.d.ts rename to nativescript-core/utils/lazy.d.ts diff --git a/tns-core-modules/utils/lazy.ts b/nativescript-core/utils/lazy.ts similarity index 100% rename from tns-core-modules/utils/lazy.ts rename to nativescript-core/utils/lazy.ts diff --git a/tns-core-modules/utils/mainthread-helper.android.ts b/nativescript-core/utils/mainthread-helper.android.ts similarity index 100% rename from tns-core-modules/utils/mainthread-helper.android.ts rename to nativescript-core/utils/mainthread-helper.android.ts diff --git a/tns-core-modules/utils/mainthread-helper.d.ts b/nativescript-core/utils/mainthread-helper.d.ts similarity index 100% rename from tns-core-modules/utils/mainthread-helper.d.ts rename to nativescript-core/utils/mainthread-helper.d.ts diff --git a/tns-core-modules/utils/mainthread-helper.ios.ts b/nativescript-core/utils/mainthread-helper.ios.ts similarity index 100% rename from tns-core-modules/utils/mainthread-helper.ios.ts rename to nativescript-core/utils/mainthread-helper.ios.ts diff --git a/tns-core-modules/utils/module-merge.ts b/nativescript-core/utils/module-merge.ts similarity index 100% rename from tns-core-modules/utils/module-merge.ts rename to nativescript-core/utils/module-merge.ts diff --git a/tns-core-modules/utils/number-utils.ts b/nativescript-core/utils/number-utils.ts similarity index 100% rename from tns-core-modules/utils/number-utils.ts rename to nativescript-core/utils/number-utils.ts diff --git a/tns-core-modules/utils/package.json b/nativescript-core/utils/package.json similarity index 100% rename from tns-core-modules/utils/package.json rename to nativescript-core/utils/package.json diff --git a/tns-core-modules/utils/types.d.ts b/nativescript-core/utils/types.d.ts similarity index 100% rename from tns-core-modules/utils/types.d.ts rename to nativescript-core/utils/types.d.ts diff --git a/tns-core-modules/utils/types.ts b/nativescript-core/utils/types.ts similarity index 100% rename from tns-core-modules/utils/types.ts rename to nativescript-core/utils/types.ts diff --git a/tns-core-modules/utils/utils-common.ts b/nativescript-core/utils/utils-common.ts similarity index 100% rename from tns-core-modules/utils/utils-common.ts rename to nativescript-core/utils/utils-common.ts diff --git a/tns-core-modules/utils/utils.android.ts b/nativescript-core/utils/utils.android.ts similarity index 100% rename from tns-core-modules/utils/utils.android.ts rename to nativescript-core/utils/utils.android.ts diff --git a/tns-core-modules/utils/utils.d.ts b/nativescript-core/utils/utils.d.ts similarity index 100% rename from tns-core-modules/utils/utils.d.ts rename to nativescript-core/utils/utils.d.ts diff --git a/tns-core-modules/utils/utils.ios.ts b/nativescript-core/utils/utils.ios.ts similarity index 100% rename from tns-core-modules/utils/utils.ios.ts rename to nativescript-core/utils/utils.ios.ts diff --git a/tns-core-modules/xhr/Readme.md b/nativescript-core/xhr/Readme.md similarity index 100% rename from tns-core-modules/xhr/Readme.md rename to nativescript-core/xhr/Readme.md diff --git a/tns-core-modules/xhr/package.json b/nativescript-core/xhr/package.json similarity index 100% rename from tns-core-modules/xhr/package.json rename to nativescript-core/xhr/package.json diff --git a/tns-core-modules/xhr/xhr.ts b/nativescript-core/xhr/xhr.ts similarity index 100% rename from tns-core-modules/xhr/xhr.ts rename to nativescript-core/xhr/xhr.ts diff --git a/tns-core-modules/xml/Readme.md b/nativescript-core/xml/Readme.md similarity index 100% rename from tns-core-modules/xml/Readme.md rename to nativescript-core/xml/Readme.md diff --git a/tns-core-modules/xml/package.json b/nativescript-core/xml/package.json similarity index 100% rename from tns-core-modules/xml/package.json rename to nativescript-core/xml/package.json diff --git a/tns-core-modules/xml/xml.d.ts b/nativescript-core/xml/xml.d.ts similarity index 100% rename from tns-core-modules/xml/xml.d.ts rename to nativescript-core/xml/xml.d.ts diff --git a/tns-core-modules/xml/xml.js b/nativescript-core/xml/xml.js similarity index 100% rename from tns-core-modules/xml/xml.js rename to nativescript-core/xml/xml.js diff --git a/tns-core-modules/xml/xml.ts b/nativescript-core/xml/xml.ts similarity index 100% rename from tns-core-modules/xml/xml.ts rename to nativescript-core/xml/xml.ts diff --git a/tns-platform-declarations/tsconfig.json b/tns-platform-declarations/tsconfig.json index 9fd73fc15e..24956ee6a4 100644 --- a/tns-platform-declarations/tsconfig.json +++ b/tns-platform-declarations/tsconfig.json @@ -14,10 +14,7 @@ "lib": [ "es6", "dom" ], - "baseUrl": ".", - "paths": { - "tns-core-modules/*": ["tns-core-modules/*"] - } + "baseUrl": "." }, "exclude": [ "android-*.d.ts", From faa240f08f48fb64a0fc29bb908f6c41ed615430 Mon Sep 17 00:00:00 2001 From: vakrilov Date: Thu, 29 Aug 2019 11:54:26 +0300 Subject: [PATCH 02/60] chore: preparing compat generate script --- build/generate-tns-compat.ts | 163 ++++++++++++++++++++++ build/pack-dist.sh | 2 +- build/prepare-compat.sh | 35 +++++ build/prepare-dist.sh | 29 +++- nativescript-core/package.json | 10 +- nativescript-core/ui/styling/package.json | 4 - package.json | 1 + tns-core-modules-package/README.md | 4 + tns-core-modules-package/package.json | 21 +++ tns-core-modules-package/references.d.ts | 3 + tns-core-modules-package/tsconfig.json | 25 ++++ tsconfig.json | 3 +- 12 files changed, 284 insertions(+), 16 deletions(-) create mode 100644 build/generate-tns-compat.ts create mode 100755 build/prepare-compat.sh delete mode 100644 nativescript-core/ui/styling/package.json create mode 100644 tns-core-modules-package/README.md create mode 100644 tns-core-modules-package/package.json create mode 100644 tns-core-modules-package/references.d.ts create mode 100644 tns-core-modules-package/tsconfig.json diff --git a/build/generate-tns-compat.ts b/build/generate-tns-compat.ts new file mode 100644 index 0000000000..4eee2bff30 --- /dev/null +++ b/build/generate-tns-compat.ts @@ -0,0 +1,163 @@ +import * as path from "path"; +import * as fs from "fs"; +import * as rimraf from "rimraf"; + +import * as readdirp from "readdirp"; +import { EntryInfo } from "readdirp"; + +const inputFolder = path.resolve("dist/nativescript-core"); +const outputFolder = path.resolve("dist/tns-core-modules"); + +// rimraf.sync(outputFolder); +// console.log(`OUTPUT folder purged: ${outputFolder}`); + +interface TestImport { + module: string; + origin: "pck" | "dts"; +} +const testImports = []; + +const dtsBlacklist = [ + "module.d.ts", + "nativescript-error.d.ts", + "references.d.ts", + "tns-core-modules.d.ts" +]; + +readdirp(inputFolder, { + fileFilter: ["*.ts", "*.js", "package.json"], + directoryFilter: (di) => { + return !di.path.startsWith("node_modules") && + !di.path.startsWith("platforms"); + } +}).on("data", (entry: typeof EntryInfo) => { + const basename = entry.basename; + const relativePath = entry.path; + + if (basename.endsWith(".d.ts")) { + processDefinitionFile(entry); + } else if (basename.endsWith(".ts")) { + // processTypeScriptFile(entry); + } else if (basename.endsWith(".js")) { + // processJavaScriptFile(entry); + } else if (basename === "package.json" && relativePath !== "package.json") { + processPackageJsonFile(entry); + } +}) + .on("warn", error => console.error("non-fatal error", error)) + .on("error", error => console.error("fatal error", error)) + .on("end", checkJsonFiles); + +function processDefinitionFile(entry: typeof EntryInfo) { + if (dtsBlacklist.includes(entry.path)) { + console.log(`SKIP: ${entry.path}`); + + return; + } + + let relativeFilePathNoExt = entry.path.replace(/\.d\.ts$/, ""); + let outputDefinitionFilePath = path.join(outputFolder, relativeFilePathNoExt + ".d.ts"); + let outputTypescriptFilePath = path.join(outputFolder, relativeFilePathNoExt + ".ts"); + + ensureDirectoryExistence(outputDefinitionFilePath); + + fs.writeFileSync(outputDefinitionFilePath, `export * from "@nativescript/core/${relativeFilePathNoExt}";`); + logFileCreated(outputDefinitionFilePath, "d.ts"); + + fs.writeFileSync(outputTypescriptFilePath, `export * from "@nativescript/core/${relativeFilePathNoExt}";`); + logFileCreated(outputDefinitionFilePath, "ts"); + + addTestImport(relativeFilePathNoExt, "dts"); +} + +function processTypeScriptFile(entry: typeof EntryInfo) { + let relativeFilePathNoPlat = entry.path.replace(/(\.android|\.ios)?\.ts$/, ""); + let outputFilePath = path.join(outputFolder, relativeFilePathNoPlat + ".ts"); + + ensureDirectoryExistence(outputFilePath); + fs.writeFileSync(outputFilePath, `export * from "@nativescript/core/${relativeFilePathNoPlat}";`); + + logFileCreated(outputFilePath, "ts"); +} + +function processPackageJsonFile(entry: typeof EntryInfo) { + let outputFilePath = path.join(outputFolder, entry.path); + + ensureDirectoryExistence(outputFilePath); + + (fs).copyFileSync(entry.fullPath, outputFilePath); + logFileCreated(outputFilePath, "package.json"); + + const json = require(entry.fullPath); + if (json.main) { + addTestImport(path.dirname(entry.path), "pck"); + } +} + +function processJavaScriptFile(entry: typeof EntryInfo) { + const tsFile = entry.fullPath.replace(/\.js$/, ".ts"); + if (fs.existsSync(tsFile)) { + return; + } + + let relativeFilePathNoExt = entry.path.replace(/\.js$/, ""); + let outputFilePath = path.join(outputFolder, relativeFilePathNoExt + ".ts"); + + // crate a TS file re-exporting everything from the js + ensureDirectoryExistence(outputFilePath); + fs.writeFileSync(outputFilePath, `export * from "@nativescript/core/${relativeFilePathNoExt}";`); + + logFileCreated(outputFilePath, "ts-from-js"); +} + +function ensureDirectoryExistence(filePath) { + const dirname = path.dirname(filePath); + if (fs.existsSync(dirname)) { + return true; + } + ensureDirectoryExistence(dirname); + fs.mkdirSync(dirname); +} + + +function logFileCreated(file: string, type: string) { + console.log(`CREATED[${type}]: ${file}`); +} + +// Check JSON files +function checkJsonFiles() { + + readdirp(outputFolder, { + fileFilter: ["package.json"], + directoryFilter: (di) => !di.path.includes("node_modules") + }).on("data", (entry: typeof EntryInfo) => { + const jsonDir = path.dirname(entry.fullPath); + const json = require(entry.fullPath); + if (json.main) { + let mainPath = path.join(jsonDir, json.main + ".ts"); + if (!fs.existsSync(mainPath)) { + console.log(`-------> ${entry.path} -> main: ${mainPath} not found`); + } + } + if (json.types) { + let typesPath = path.join(jsonDir, json.types); + if (!fs.existsSync(typesPath)) { + console.log(`-------> ${entry.path} -> types: ${typesPath} not found`); + } + } + }) + .on("warn", error => console.error("non-fatal error", error)) + .on("error", error => console.error("fatal error", error)) + .on("end", generateTestFile); +} + +function addTestImport(module: string, origin: "pck" | "dts") { + const importStatement = `import * as module_${origin}_${testImports.length} from "tns-core-modules/${module}";`; + testImports.push(importStatement); +} + +function generateTestFile() { + console.log("--------- tests imports start ---------"); + console.log(testImports.join("\n")); + console.log("--------- tests imports end ---------"); +} \ No newline at end of file diff --git a/build/pack-dist.sh b/build/pack-dist.sh index cc6685a86e..bb4e718ee9 100755 --- a/build/pack-dist.sh +++ b/build/pack-dist.sh @@ -13,7 +13,7 @@ cd "$ROOT_DIR" ) ( - cd "$DIST/tns-core-modules" + cd "$DIST/nativescript-core" TGZ="$(npm pack)" mv "$TGZ" "../$TGZ" ) \ No newline at end of file diff --git a/build/prepare-compat.sh b/build/prepare-compat.sh new file mode 100755 index 0000000000..5eb9ef8a24 --- /dev/null +++ b/build/prepare-compat.sh @@ -0,0 +1,35 @@ +#!/bin/bash +set -x +set -e + +DIST=dist; +ROOT_DIR=$(cd `dirname $0` && pwd)/..; +cd "$ROOT_DIR" + +## Prepare tns-core-modules +( + PACKAGE_SOURCE=tns-core-modules-package; + PACKAGE=tns-core-modules; + + echo "Clearing $DIST/$PACKAGE" + npx rimraf "$DIST/$PACKAGE" + npx rimraf "$DIST/$PACKAGE*.tgz" + + echo "Generating compat package" + npx ts-node build/generate-tns-compat + + echo "Copying $PACKAGE_SOURCE $DIST/$PACKAGE..." + npx ncp "$PACKAGE_SOURCE" "$DIST/$PACKAGE" + + echo "Copying README and LICENSE to $DIST/$PACKAGE" + npx ncp LICENSE "$DIST"/"$PACKAGE"/LICENSE + + ( + echo 'TypeScript transpile...' + cd "$DIST/$PACKAGE" + + npm install ../nativescript-core*.tgz -s + npm install ../tns-platform-declarations*.tgz -s + npx tsc + ) +) \ No newline at end of file diff --git a/build/prepare-dist.sh b/build/prepare-dist.sh index 7f7c08fcc2..af0ebd27a0 100755 --- a/build/prepare-dist.sh +++ b/build/prepare-dist.sh @@ -40,7 +40,7 @@ mkdir -p "$DIST" ## Prepare Core Modules ( - PACKAGE=tns-core-modules; + PACKAGE=nativescript-core; echo "Clearing $DIST/$PACKAGE" npx rimraf "$DIST/$PACKAGE" @@ -67,3 +67,30 @@ mkdir -p "$DIST" echo "Clearing typescript definitions from private APIs..." node build/clear-private-definitions "$DIST/$PACKAGE" ) + +## Prepare tns-core-modules +( + PACKAGE_SOURCE=tns-core-modules-package; + PACKAGE=tns-core-modules; + + echo "Clearing $DIST/$PACKAGE" + npx rimraf "$DIST/$PACKAGE" + npx rimraf "$DIST/$PACKAGE*.tgz" + + echo "Generating compat package" + npx ts-node build/generate-tns-compat + + echo "Copying $PACKAGE_SOURCE $DIST/$PACKAGE..." + npx ncp "$PACKAGE_SOURCE" "$DIST/$PACKAGE" + + echo "Copying README and LICENSE to $DIST/$PACKAGE" + npx ncp LICENSE "$DIST"/"$PACKAGE"/LICENSE + + # ( + # echo 'TypeScript transpile...' + # cd "$DIST/$PACKAGE" + + # npm install + # npx tsc + # ) +) \ No newline at end of file diff --git a/nativescript-core/package.json b/nativescript-core/package.json index 089274ae78..e7f363d4ee 100644 --- a/nativescript-core/package.json +++ b/nativescript-core/package.json @@ -1,5 +1,5 @@ { - "name": "tns-core-modules", + "name": "@nativescript/core", "description": "Telerik NativeScript Core Modules", "version": "6.2.0", "homepage": "https://www.nativescript.org", @@ -12,14 +12,6 @@ "**/*.js", "**/platforms/ios/**", "**/package.json", - "!android17.d.ts", - "!ios.d.ts", - "!bin/", - "!apps/", - "!build/", - "!node-tests/", - "!declarations.android.d.ts", - "!declarations.ios.d.ts", "!org.nativescript.widgets.d.ts" ], "license": "Apache-2.0", diff --git a/nativescript-core/ui/styling/package.json b/nativescript-core/ui/styling/package.json deleted file mode 100644 index abaf86c551..0000000000 --- a/nativescript-core/ui/styling/package.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "style", - "main": "style" -} diff --git a/package.json b/package.json index 0be48f569d..8328b29cdf 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "rimraf": "^2.5.0", "shady-css-parser": "^0.1.0", "source-map-support": "^0.4.17", + "ts-node": "^8.3.0", "tslib": "1.10.0", "tslint": "^5.4.3", "typedoc": "^0.13.0", diff --git a/tns-core-modules-package/README.md b/tns-core-modules-package/README.md new file mode 100644 index 0000000000..9e8ec0d000 --- /dev/null +++ b/tns-core-modules-package/README.md @@ -0,0 +1,4 @@ +# TNS-CORE-MODULES +![NativeScript logo](https://i.imgur.com/YmNIMqS.png) + +The `tns-core-modules` package exists only for compatibility with older versions of NativeScript. It's recommended to use `@nativescript/core` now. \ No newline at end of file diff --git a/tns-core-modules-package/package.json b/tns-core-modules-package/package.json new file mode 100644 index 0000000000..bc421beb9b --- /dev/null +++ b/tns-core-modules-package/package.json @@ -0,0 +1,21 @@ +{ + "name": "tns-core-modules", + "description": "Telerik NativeScript Core Modules", + "version": "6.1.0", + "homepage": "https://www.nativescript.org", + "repository": { + "type": "git", + "url": "https://github.com/NativeScript/NativeScript" + }, + "license": "Apache-2.0", + "typings": "tns-core-modules.d.ts", + "dependencies": { + "@nativescript/core": "next" + }, + "nativescript": { + "platforms": { + "ios": "5.0.0", + "android": "5.0.0" + } + } +} diff --git a/tns-core-modules-package/references.d.ts b/tns-core-modules-package/references.d.ts new file mode 100644 index 0000000000..3e4310f680 --- /dev/null +++ b/tns-core-modules-package/references.d.ts @@ -0,0 +1,3 @@ +/// +/// +/// diff --git a/tns-core-modules-package/tsconfig.json b/tns-core-modules-package/tsconfig.json new file mode 100644 index 0000000000..ab86ccc31b --- /dev/null +++ b/tns-core-modules-package/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "noEmitOnError": false, + "noEmitHelpers": true, + "target": "es5", + "module": "commonjs", + "declaration": false, + "noImplicitAny": false, + "noImplicitUseStrict": true, + "removeComments": true, + "experimentalDecorators": true, + "diagnostics": true, + "sourceMap": true, + "lib": [ + "es6", "dom" + ], + "baseUrl": "." + }, + "include": [ + "**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} diff --git a/tsconfig.json b/tsconfig.json index befb9f3f36..7aca7ee1b5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -50,6 +50,7 @@ "Deploy", "out", "obj", - "unit-tests/common-types.d.ts" + "unit-tests/common-types.d.ts", + "dist" ] } \ No newline at end of file From 8b6e8e5d6e7ac8291216e49654bf3aaca4e3cadd Mon Sep 17 00:00:00 2001 From: vakrilov Date: Thu, 29 Aug 2019 11:57:45 +0300 Subject: [PATCH 03/60] chore: add missing definitions --- nativescript-core/globals/core/globals-core.d.ts | 6 ++++++ nativescript-core/globals/core/package.json | 3 ++- nativescript-core/globals/polyfills/dialogs/dialogs.d.ts | 5 +++++ nativescript-core/globals/polyfills/dialogs/package.json | 3 ++- nativescript-core/globals/polyfills/fetch/fetch.d.ts | 6 ++++++ nativescript-core/globals/polyfills/fetch/package.json | 3 ++- .../globals/polyfills/polyfill-helpers/package.json | 3 ++- .../polyfills/polyfill-helpers/polyfill-helpers.d.ts | 6 ++++++ nativescript-core/globals/polyfills/timers/package.json | 3 ++- nativescript-core/globals/polyfills/timers/timers.d.ts | 5 +++++ nativescript-core/globals/polyfills/xhr/package.json | 3 ++- nativescript-core/globals/polyfills/xhr/xhr.d.ts | 5 +++++ 12 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 nativescript-core/globals/core/globals-core.d.ts create mode 100644 nativescript-core/globals/polyfills/dialogs/dialogs.d.ts create mode 100644 nativescript-core/globals/polyfills/fetch/fetch.d.ts create mode 100644 nativescript-core/globals/polyfills/polyfill-helpers/polyfill-helpers.d.ts create mode 100644 nativescript-core/globals/polyfills/timers/timers.d.ts create mode 100644 nativescript-core/globals/polyfills/xhr/xhr.d.ts diff --git a/nativescript-core/globals/core/globals-core.d.ts b/nativescript-core/globals/core/globals-core.d.ts new file mode 100644 index 0000000000..c1932b4be6 --- /dev/null +++ b/nativescript-core/globals/core/globals-core.d.ts @@ -0,0 +1,6 @@ +/** + * Nothing exported. Side effects: registers ts-helpers and module-helpers + * @module "globals/core" + */ /** */ +import "../ts-helpers"; +import "../register-module-helpers"; diff --git a/nativescript-core/globals/core/package.json b/nativescript-core/globals/core/package.json index 7d92998b7d..4fe964decd 100644 --- a/nativescript-core/globals/core/package.json +++ b/nativescript-core/globals/core/package.json @@ -1,5 +1,6 @@ { "name": "core", "main": "globals-core", + "types": "globals-core.d.ts", "nativescript": {} -} +} \ No newline at end of file diff --git a/nativescript-core/globals/polyfills/dialogs/dialogs.d.ts b/nativescript-core/globals/polyfills/dialogs/dialogs.d.ts new file mode 100644 index 0000000000..731a7db3f1 --- /dev/null +++ b/nativescript-core/globals/polyfills/dialogs/dialogs.d.ts @@ -0,0 +1,5 @@ +/** + * Installs dialogs polyfill. + * @module "globals/polyfills/dialogs" + */ /** */ +import "../../core"; diff --git a/nativescript-core/globals/polyfills/dialogs/package.json b/nativescript-core/globals/polyfills/dialogs/package.json index 3b263974ac..93b54e894c 100644 --- a/nativescript-core/globals/polyfills/dialogs/package.json +++ b/nativescript-core/globals/polyfills/dialogs/package.json @@ -1,5 +1,6 @@ { "name": "dialogs", "main": "dialogs", + "types": "dialogs.d.ts", "nativescript": {} -} +} \ No newline at end of file diff --git a/nativescript-core/globals/polyfills/fetch/fetch.d.ts b/nativescript-core/globals/polyfills/fetch/fetch.d.ts new file mode 100644 index 0000000000..7072855278 --- /dev/null +++ b/nativescript-core/globals/polyfills/fetch/fetch.d.ts @@ -0,0 +1,6 @@ +/** + * Installs fetch polyfill. + * @module "globals/polyfills/fetch" + */ /** */ +import "../../core"; +import "../../polyfills/xhr"; diff --git a/nativescript-core/globals/polyfills/fetch/package.json b/nativescript-core/globals/polyfills/fetch/package.json index a14b4f1104..1ee34bb868 100644 --- a/nativescript-core/globals/polyfills/fetch/package.json +++ b/nativescript-core/globals/polyfills/fetch/package.json @@ -1,5 +1,6 @@ { "name": "fetch", "main": "fetch", + "types": "fetch.d.ts", "nativescript": {} -} +} \ No newline at end of file diff --git a/nativescript-core/globals/polyfills/polyfill-helpers/package.json b/nativescript-core/globals/polyfills/polyfill-helpers/package.json index dcd95d866e..bad4e07e5f 100644 --- a/nativescript-core/globals/polyfills/polyfill-helpers/package.json +++ b/nativescript-core/globals/polyfills/polyfill-helpers/package.json @@ -1,5 +1,6 @@ { "name": "polyfill-helpers", "main": "polyfill-helpers", + "types": "polyfill-helpers.d.ts", "nativescript": {} -} +} \ No newline at end of file diff --git a/nativescript-core/globals/polyfills/polyfill-helpers/polyfill-helpers.d.ts b/nativescript-core/globals/polyfills/polyfill-helpers/polyfill-helpers.d.ts new file mode 100644 index 0000000000..b8981f3c40 --- /dev/null +++ b/nativescript-core/globals/polyfills/polyfill-helpers/polyfill-helpers.d.ts @@ -0,0 +1,6 @@ +/** + * Global polyfills helpers. + * @module "globals/polyfills/polyfill-helpers" + */ /** */ +import "../../core"; +export declare function installPolyfills(moduleName: string, exportNames: string[]): void; diff --git a/nativescript-core/globals/polyfills/timers/package.json b/nativescript-core/globals/polyfills/timers/package.json index 544ebf55ef..5b55ed17c4 100644 --- a/nativescript-core/globals/polyfills/timers/package.json +++ b/nativescript-core/globals/polyfills/timers/package.json @@ -1,5 +1,6 @@ { "name": "timers", "main": "timers", + "types": "timers.d.ts", "nativescript": {} -} +} \ No newline at end of file diff --git a/nativescript-core/globals/polyfills/timers/timers.d.ts b/nativescript-core/globals/polyfills/timers/timers.d.ts new file mode 100644 index 0000000000..e4685ab35d --- /dev/null +++ b/nativescript-core/globals/polyfills/timers/timers.d.ts @@ -0,0 +1,5 @@ +/** + * Installs timers polyfill. + * @module "globals/polyfills/fetch" + */ /** */ +import "../../core"; diff --git a/nativescript-core/globals/polyfills/xhr/package.json b/nativescript-core/globals/polyfills/xhr/package.json index 1ba20b85d4..afa59a1f19 100644 --- a/nativescript-core/globals/polyfills/xhr/package.json +++ b/nativescript-core/globals/polyfills/xhr/package.json @@ -1,5 +1,6 @@ { "name": "xhr", "main": "xhr", + "types": "xhr.d.ts", "nativescript": {} -} +} \ No newline at end of file diff --git a/nativescript-core/globals/polyfills/xhr/xhr.d.ts b/nativescript-core/globals/polyfills/xhr/xhr.d.ts new file mode 100644 index 0000000000..19f8e447f8 --- /dev/null +++ b/nativescript-core/globals/polyfills/xhr/xhr.d.ts @@ -0,0 +1,5 @@ +/** + * Installs xhr polyfill. + * @module "globals/polyfills/fetch" + */ /** */ + import "../../core"; From 73887ba9832e8f21b2ae7b1fc11d107546abad38 Mon Sep 17 00:00:00 2001 From: vakrilov Date: Thu, 29 Aug 2019 12:04:58 +0300 Subject: [PATCH 04/60] chore: no need for http-request to be private --- nativescript-core/http/http-request/http-request.d.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/nativescript-core/http/http-request/http-request.d.ts b/nativescript-core/http/http-request/http-request.d.ts index 59261430a3..beef106570 100644 --- a/nativescript-core/http/http-request/http-request.d.ts +++ b/nativescript-core/http/http-request/http-request.d.ts @@ -1,10 +1,7 @@ /** * @module "http/http-request" - * @private */ /** */ -//@private - import * as http from ".."; export const request: (options: http.HttpRequestOptions) => Promise; export function addHeader(headers: http.Headers, key: string, value: string): void; From 73b3bc87eb3a1b585410976cda4a888d0a1c0e8a Mon Sep 17 00:00:00 2001 From: vakrilov Date: Fri, 30 Aug 2019 11:23:33 +0300 Subject: [PATCH 05/60] chore: packages chore --- .gitignore | 10 +++++----- nativescript-core/css-value/package.json | 2 +- .../css-value/{index.js => reworkcss-value.js} | 0 nativescript-core/css/package.json | 4 ++-- nativescript-core/css/{index.js => reworkcss.js} | 0 nativescript-core/debugger/package.json | 3 +-- 6 files changed, 9 insertions(+), 10 deletions(-) rename nativescript-core/css-value/{index.js => reworkcss-value.js} (100%) rename nativescript-core/css/{index.js => reworkcss.js} (100%) diff --git a/.gitignore b/.gitignore index 48b1e1c60b..b2d3964f9f 100644 --- a/.gitignore +++ b/.gitignore @@ -57,9 +57,9 @@ tscommand*.tmp.txt !tns-core-modules/xml/xml.js !nativescript-core/xml/xml.js !tests/hooks/**/*.* -!js-libs/**/*.* -!css/**/*.* -!css-value/**/*.* -!fetch/**/*.* -!build/**/*.* +!nativescript-core/js-libs/**/*.* +!nativescript-core/css/**/*.* +!nativescript-core/css-value/**/*.* +!nativescript-core/fetch/**/*.* +!nativescript-core/build/**/*.* .vs/ diff --git a/nativescript-core/css-value/package.json b/nativescript-core/css-value/package.json index 2d4da9f406..9e30b13db8 100644 --- a/nativescript-core/css-value/package.json +++ b/nativescript-core/css-value/package.json @@ -17,7 +17,7 @@ "mocha": "~1.9.0", "should": "~1.2.2" }, - "main": "index", + "main": "reworkcss-value", "types": "reworkcss-value.d.ts", "nativescript": {} } diff --git a/nativescript-core/css-value/index.js b/nativescript-core/css-value/reworkcss-value.js similarity index 100% rename from nativescript-core/css-value/index.js rename to nativescript-core/css-value/reworkcss-value.js diff --git a/nativescript-core/css/package.json b/nativescript-core/css/package.json index ec87a65225..922843a31c 100644 --- a/nativescript-core/css/package.json +++ b/nativescript-core/css/package.json @@ -2,7 +2,8 @@ "name": "css", "version": "2.2.1", "description": "CSS parser / stringifier", - "main": "index", + "main": "reworkcss", + "types": "reworkcss.d.ts", "dependencies": { "source-map": "^0.1.38", "source-map-resolve": "^0.3.0", @@ -31,6 +32,5 @@ "stringifier", "stylesheet" ], - "types": "reworkcss.d.ts", "nativescript": {} } diff --git a/nativescript-core/css/index.js b/nativescript-core/css/reworkcss.js similarity index 100% rename from nativescript-core/css/index.js rename to nativescript-core/css/reworkcss.js diff --git a/nativescript-core/debugger/package.json b/nativescript-core/debugger/package.json index 101f9ea09c..ef8db346ae 100644 --- a/nativescript-core/debugger/package.json +++ b/nativescript-core/debugger/package.json @@ -1,6 +1,5 @@ { "name": "debugger", "main": "debugger", - "types": "debugger.d.ts", "nativescript": {} -} +} \ No newline at end of file From 011cefdc611750b3c96122f016edc9e099c5e312 Mon Sep 17 00:00:00 2001 From: vakrilov Date: Fri, 30 Aug 2019 11:23:53 +0300 Subject: [PATCH 06/60] test: generate tests for tns-core-modules --- build/generate-tns-compat.ts | 238 +++++++++--------- .../generated-compat-checks/module-compare.ts | 21 ++ build/prepare-compat.sh | 10 +- build/tsconfig.json | 11 + tns-core-modules-package/tsconfig.json | 2 +- 5 files changed, 163 insertions(+), 119 deletions(-) create mode 100644 build/generated-compat-checks/module-compare.ts create mode 100644 build/tsconfig.json diff --git a/build/generate-tns-compat.ts b/build/generate-tns-compat.ts index 4eee2bff30..9e3b3c6f61 100644 --- a/build/generate-tns-compat.ts +++ b/build/generate-tns-compat.ts @@ -1,22 +1,14 @@ import * as path from "path"; import * as fs from "fs"; -import * as rimraf from "rimraf"; -import * as readdirp from "readdirp"; -import { EntryInfo } from "readdirp"; +import readdirp from "readdirp"; +type EntryInfo = typeof readdirp.EntryInfo; const inputFolder = path.resolve("dist/nativescript-core"); const outputFolder = path.resolve("dist/tns-core-modules"); +const testImports: string[] = []; -// rimraf.sync(outputFolder); -// console.log(`OUTPUT folder purged: ${outputFolder}`); - -interface TestImport { - module: string; - origin: "pck" | "dts"; -} -const testImports = []; - +// List of definition files that don't need to be exported. const dtsBlacklist = [ "module.d.ts", "nativescript-error.d.ts", @@ -24,93 +16,84 @@ const dtsBlacklist = [ "tns-core-modules.d.ts" ]; -readdirp(inputFolder, { - fileFilter: ["*.ts", "*.js", "package.json"], - directoryFilter: (di) => { - return !di.path.startsWith("node_modules") && - !di.path.startsWith("platforms"); - } -}).on("data", (entry: typeof EntryInfo) => { - const basename = entry.basename; - const relativePath = entry.path; - - if (basename.endsWith(".d.ts")) { - processDefinitionFile(entry); - } else if (basename.endsWith(".ts")) { - // processTypeScriptFile(entry); - } else if (basename.endsWith(".js")) { - // processJavaScriptFile(entry); - } else if (basename === "package.json" && relativePath !== "package.json") { - processPackageJsonFile(entry); - } -}) - .on("warn", error => console.error("non-fatal error", error)) - .on("error", error => console.error("fatal error", error)) - .on("end", checkJsonFiles); - -function processDefinitionFile(entry: typeof EntryInfo) { - if (dtsBlacklist.includes(entry.path)) { - console.log(`SKIP: ${entry.path}`); - - return; - } - - let relativeFilePathNoExt = entry.path.replace(/\.d\.ts$/, ""); - let outputDefinitionFilePath = path.join(outputFolder, relativeFilePathNoExt + ".d.ts"); - let outputTypescriptFilePath = path.join(outputFolder, relativeFilePathNoExt + ".ts"); - - ensureDirectoryExistence(outputDefinitionFilePath); - - fs.writeFileSync(outputDefinitionFilePath, `export * from "@nativescript/core/${relativeFilePathNoExt}";`); - logFileCreated(outputDefinitionFilePath, "d.ts"); - - fs.writeFileSync(outputTypescriptFilePath, `export * from "@nativescript/core/${relativeFilePathNoExt}";`); - logFileCreated(outputDefinitionFilePath, "ts"); - - addTestImport(relativeFilePathNoExt, "dts"); -} - -function processTypeScriptFile(entry: typeof EntryInfo) { - let relativeFilePathNoPlat = entry.path.replace(/(\.android|\.ios)?\.ts$/, ""); - let outputFilePath = path.join(outputFolder, relativeFilePathNoPlat + ".ts"); - - ensureDirectoryExistence(outputFilePath); - fs.writeFileSync(outputFilePath, `export * from "@nativescript/core/${relativeFilePathNoPlat}";`); +// There are few module using the "export default" syntax +// They should be handled differently when re-exporting +const modulesWithDefaultExports = [ + "utils/lazy" +]; - logFileCreated(outputFilePath, "ts"); +function traverseInputDir(fileFilter: string[], callback: (entry: EntryInfo) => void) { + return new Promise((resolve, reject) => { + readdirp(inputFolder, { + fileFilter, + directoryFilter: (di: EntryInfo) => { + return !di.path.startsWith("node_modules") && + !di.path.startsWith("platforms"); + } + }) + .on("data", callback) + .on("error", reject) + .on("end", resolve); + }); } -function processPackageJsonFile(entry: typeof EntryInfo) { - let outputFilePath = path.join(outputFolder, entry.path); +function processPackageJsonFile(entry: EntryInfo) { + const dirPath = path.dirname(entry.path); + const outputFilePath = path.join(outputFolder, entry.path); ensureDirectoryExistence(outputFilePath); - (fs).copyFileSync(entry.fullPath, outputFilePath); - logFileCreated(outputFilePath, "package.json"); - const json = require(entry.fullPath); if (json.main) { - addTestImport(path.dirname(entry.path), "pck"); + (fs).copyFileSync(entry.fullPath, outputFilePath); + logFileCreated(outputFilePath); + addTestImport(dirPath); + + const mainFile = path.join(dirPath, json.main); + createReExportFile(mainFile, ".ts"); + addTestImport(mainFile); } } -function processJavaScriptFile(entry: typeof EntryInfo) { - const tsFile = entry.fullPath.replace(/\.js$/, ".ts"); - if (fs.existsSync(tsFile)) { +function processDefinitionFile(entry: EntryInfo) { + if (dtsBlacklist.includes(entry.path)) { return; } - let relativeFilePathNoExt = entry.path.replace(/\.js$/, ""); - let outputFilePath = path.join(outputFolder, relativeFilePathNoExt + ".ts"); + const relativeFilePathNoExt = entry.path.replace(/\.d\.ts$/, ""); - // crate a TS file re-exporting everything from the js - ensureDirectoryExistence(outputFilePath); - fs.writeFileSync(outputFilePath, `export * from "@nativescript/core/${relativeFilePathNoExt}";`); + // Re-export everything from d.ts file + createReExportFile(relativeFilePathNoExt, ".d.ts"); + + // This might be only a definitions file. + // So check if there is ts/js files before creating TS file with re-exports + const baseFile = path.join(inputFolder, relativeFilePathNoExt); + if (fs.existsSync(baseFile + ".ts") || + fs.existsSync(baseFile + ".js") || + (fs.existsSync(baseFile + ".android.ts") && fs.existsSync(baseFile + ".ios.ts")) || + (fs.existsSync(baseFile + ".android.js") && fs.existsSync(baseFile + ".ios.js"))) { + + createReExportFile(relativeFilePathNoExt, ".ts"); + addTestImport(relativeFilePathNoExt); + } +} + +function createReExportFile(pathNoExt: string, ext: ".ts" | ".d.ts") { + const outputFile = path.join(outputFolder, pathNoExt + ext); + if (!fs.existsSync(outputFile)) { + ensureDirectoryExistence(outputFile); + let content = `export * from "@nativescript/core/${pathNoExt}";` + if (modulesWithDefaultExports.includes(pathNoExt)) { + content = `import defExport from "@nativescript/core/${pathNoExt}";\n`; + content += `export default defExport;` + } - logFileCreated(outputFilePath, "ts-from-js"); + fs.writeFileSync(outputFile, content); + logFileCreated(outputFile); + } } -function ensureDirectoryExistence(filePath) { +function ensureDirectoryExistence(filePath: string) { const dirname = path.dirname(filePath); if (fs.existsSync(dirname)) { return true; @@ -119,45 +102,66 @@ function ensureDirectoryExistence(filePath) { fs.mkdirSync(dirname); } - -function logFileCreated(file: string, type: string) { - console.log(`CREATED[${type}]: ${file}`); +function logFileCreated(file: string) { + console.log(`CREATED: ${file}`); } -// Check JSON files -function checkJsonFiles() { - - readdirp(outputFolder, { - fileFilter: ["package.json"], - directoryFilter: (di) => !di.path.includes("node_modules") - }).on("data", (entry: typeof EntryInfo) => { - const jsonDir = path.dirname(entry.fullPath); - const json = require(entry.fullPath); - if (json.main) { - let mainPath = path.join(jsonDir, json.main + ".ts"); - if (!fs.existsSync(mainPath)) { - console.log(`-------> ${entry.path} -> main: ${mainPath} not found`); - } - } - if (json.types) { - let typesPath = path.join(jsonDir, json.types); - if (!fs.existsSync(typesPath)) { - console.log(`-------> ${entry.path} -> types: ${typesPath} not found`); - } - } - }) - .on("warn", error => console.error("non-fatal error", error)) - .on("error", error => console.error("fatal error", error)) - .on("end", generateTestFile); +function addTestImport(moduleName: string) { + testImports.push(moduleName); } -function addTestImport(module: string, origin: "pck" | "dts") { - const importStatement = `import * as module_${origin}_${testImports.length} from "tns-core-modules/${module}";`; - testImports.push(importStatement); +function generateTestFile() { + const uniqueImports = Array.from(new Set(testImports)); + + const output: string[] = []; + + output.push(`import { compare, report } from "./module-compare";\n\n`); + + uniqueImports.forEach((name, i) => { + const compatName = `module_${i}_compat`; + const coreName = `module_${i}_core`; + output.push(`import * as ${coreName} from "@nativescript/core/${name}";`); + output.push(`import * as ${compatName} from "tns-core-modules/${name}";`); + output.push(`compare("${name}", ${coreName}, ${compatName});\n`); + }); + + output.push(`\n`); + output.push(`report()`); + + const testFilePath = path.resolve("dist/generated-tests/tests.ts"); + ensureDirectoryExistence(testFilePath); + + fs.writeFileSync(testFilePath, output.join("\n"), "utf8"); + (fs).copyFileSync(path.resolve("build/generated-compat-checks/module-compare.ts"), path.resolve("dist/generated-tests/module-compare.ts")); + + console.log(`Compat tests generated: ${testFilePath}`); + + fs.writeFileSync(path.resolve("dist/generated-tests/legacy-project-test.ts"), + uniqueImports.map((name, i) => { + const modName = `module_${i}`; + return ` +import * as ${modName} from "tns-core-modules/${name}"; +if(!!${modName}){ throw new Error("Nothing imported form module: ${modName}"); }; + `; + }).join("\n") + , "utf8"); } -function generateTestFile() { - console.log("--------- tests imports start ---------"); - console.log(testImports.join("\n")); - console.log("--------- tests imports end ---------"); -} \ No newline at end of file +(async () => { + console.log(" ------> GENERATING FILES FORM PACKAGE.JSON"); + // Traverse all package.json files and create: + // * .ts file with re-exports for the package.json/main + // * .d.ts file with re-exports for the package.json/types + await traverseInputDir(["package.json"], processPackageJsonFile); + + console.log(" ------> GENERATING FILES FORM DEFINITIONS"); + // Traverse all d.ts files and create + // * .d.ts file with re-exports for definitions for the .d.ts + // * .ts file with re-exports for the corresponding ts/js file (is such exists) + await traverseInputDir(["*.d.ts"], processDefinitionFile); + + // Generate tests in + generateTestFile() +})().catch(e => { + console.log("Error generating tns-core-modules files: " + e); +}); \ No newline at end of file diff --git a/build/generated-compat-checks/module-compare.ts b/build/generated-compat-checks/module-compare.ts new file mode 100644 index 0000000000..56de034a98 --- /dev/null +++ b/build/generated-compat-checks/module-compare.ts @@ -0,0 +1,21 @@ +const results = { errors: [], modules: 0, exports: 0 }; + +export function compare(name: string, core: any, compat: any) { + results.modules++; + for (const key in core) { + results.exports++; + if (core[key] !== compat[key]) { + results.errors.push(`ERROR: Diff in module: ${name} key: ${key}`) + } + } +} + +export function report() { + console.log(`CHECKED COMPLETED. CHECKED MODULES: ${results.modules} EXPORTS: ${results.exports}`); + if (results.errors.length) { + console.log(`----- ${results.errors.length} CHECKS FAILED ----- `); + results.errors.forEach((err) => console.log(err)); + } else { + console.log("----- ALL CHECKS SUCCESSFUL ----- "); + } +} diff --git a/build/prepare-compat.sh b/build/prepare-compat.sh index 5eb9ef8a24..8884dbf92f 100755 --- a/build/prepare-compat.sh +++ b/build/prepare-compat.sh @@ -16,7 +16,7 @@ cd "$ROOT_DIR" npx rimraf "$DIST/$PACKAGE*.tgz" echo "Generating compat package" - npx ts-node build/generate-tns-compat + npx ts-node --project ./build/tsconfig.json ./build/generate-tns-compat echo "Copying $PACKAGE_SOURCE $DIST/$PACKAGE..." npx ncp "$PACKAGE_SOURCE" "$DIST/$PACKAGE" @@ -32,4 +32,12 @@ cd "$ROOT_DIR" npm install ../tns-platform-declarations*.tgz -s npx tsc ) + + ( + echo 'NPM packing ...' + cd "$DIST/$PACKAGE" + + TGZ="$(npm pack)" + mv "$TGZ" "../$TGZ" + ) ) \ No newline at end of file diff --git a/build/tsconfig.json b/build/tsconfig.json new file mode 100644 index 0000000000..ae29eb4de0 --- /dev/null +++ b/build/tsconfig.json @@ -0,0 +1,11 @@ +/** + * tsconfig file used for executing TS script in the build folder with ts-node + **/ +{ + "compilerOptions": { + "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ + "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ + "strict": true, /* Enable all strict type-checking options. */ + "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ + } +} diff --git a/tns-core-modules-package/tsconfig.json b/tns-core-modules-package/tsconfig.json index ab86ccc31b..f18c18dde9 100644 --- a/tns-core-modules-package/tsconfig.json +++ b/tns-core-modules-package/tsconfig.json @@ -10,7 +10,7 @@ "removeComments": true, "experimentalDecorators": true, "diagnostics": true, - "sourceMap": true, + "sourceMap": false, "lib": [ "es6", "dom" ], From 4437b082624dfe41e6fe8303f0028e6ea1a45b5f Mon Sep 17 00:00:00 2001 From: vakrilov Date: Fri, 30 Aug 2019 16:42:07 +0300 Subject: [PATCH 07/60] chore: add anroid module for consistency --- .../control-state-change.android.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 nativescript-core/ui/core/control-state-change/control-state-change.android.ts diff --git a/nativescript-core/ui/core/control-state-change/control-state-change.android.ts b/nativescript-core/ui/core/control-state-change/control-state-change.android.ts new file mode 100644 index 0000000000..3a2eecf177 --- /dev/null +++ b/nativescript-core/ui/core/control-state-change/control-state-change.android.ts @@ -0,0 +1,10 @@ +/* tslint:disable:no-unused-variable */ +import { ControlStateChangeListener as ControlStateChangeListenerDefinition } from "./control-state-change"; + +export class ControlStateChangeListener implements ControlStateChangeListenerDefinition { + constructor(control: any /* UIControl */, callback: (state: string) => void) { + throw new Error("ControlStateChangeListener is not implemented for Android"); + } + public start() { } + public stop() { } +} From 22caa10bd493b26840c41c15b5f291dca41433e7 Mon Sep 17 00:00:00 2001 From: vakrilov Date: Fri, 30 Aug 2019 17:26:41 +0300 Subject: [PATCH 08/60] chore: add .npmignore --- tns-core-modules-package/.npmignore | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tns-core-modules-package/.npmignore diff --git a/tns-core-modules-package/.npmignore b/tns-core-modules-package/.npmignore new file mode 100644 index 0000000000..c32fafcdf2 --- /dev/null +++ b/tns-core-modules-package/.npmignore @@ -0,0 +1,4 @@ +*.tgz +**/*.ts +!**/*.d.ts +npm-debug.log \ No newline at end of file From 48ab584261f00dd673526866f2512534552b23b9 Mon Sep 17 00:00:00 2001 From: vakrilov Date: Fri, 30 Aug 2019 17:27:43 +0300 Subject: [PATCH 09/60] chore: added privateModulesWhitelist --- build/generate-tns-compat.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/build/generate-tns-compat.ts b/build/generate-tns-compat.ts index 9e3b3c6f61..cb433d5d6e 100644 --- a/build/generate-tns-compat.ts +++ b/build/generate-tns-compat.ts @@ -16,6 +16,11 @@ const dtsBlacklist = [ "tns-core-modules.d.ts" ]; +// List of modules that should be re-exported despite they are private +const privateModulesWhitelist = [ + "ui/styling/style-scope" //Reason: nativescript-dev-webpack generates code that imports this module +] + // There are few module using the "export default" syntax // They should be handled differently when re-exporting const modulesWithDefaultExports = [ @@ -111,7 +116,7 @@ function addTestImport(moduleName: string) { } function generateTestFile() { - const uniqueImports = Array.from(new Set(testImports)); + const uniqueImports = Array.from(new Set(testImports)).sort(); const output: string[] = []; @@ -147,6 +152,13 @@ if(!!${modName}){ throw new Error("Nothing imported form module: ${modName}"); } , "utf8"); } +function generateExportsForPrivateModules() { + privateModulesWhitelist.forEach(pathNoExt => { + createReExportFile(pathNoExt, ".ts"); + addTestImport(pathNoExt); + }) +} + (async () => { console.log(" ------> GENERATING FILES FORM PACKAGE.JSON"); // Traverse all package.json files and create: @@ -160,6 +172,8 @@ if(!!${modName}){ throw new Error("Nothing imported form module: ${modName}"); } // * .ts file with re-exports for the corresponding ts/js file (is such exists) await traverseInputDir(["*.d.ts"], processDefinitionFile); + generateExportsForPrivateModules(); + // Generate tests in generateTestFile() })().catch(e => { From 23f4729bf16c70e78fb91fec124ca54556ccf142 Mon Sep 17 00:00:00 2001 From: vakrilov Date: Fri, 30 Aug 2019 17:28:05 +0300 Subject: [PATCH 10/60] chore(webpack): added bundle-entry-points --- tns-core-modules-package/bundle-entry-points.ts | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tns-core-modules-package/bundle-entry-points.ts diff --git a/tns-core-modules-package/bundle-entry-points.ts b/tns-core-modules-package/bundle-entry-points.ts new file mode 100644 index 0000000000..cf1ffa7455 --- /dev/null +++ b/tns-core-modules-package/bundle-entry-points.ts @@ -0,0 +1,2 @@ +// Execute the bundle-entry-points from core. Nothing is exported. +import "@nativescript/core/bundle-entry-points"; \ No newline at end of file From 371809c51c45e239fca856fcff22b6f2aed00776 Mon Sep 17 00:00:00 2001 From: vakrilov Date: Fri, 30 Aug 2019 17:34:11 +0300 Subject: [PATCH 11/60] chore: scripts --- build/pack-dist.sh | 8 +++++++- build/prepare-dist.sh | 41 +++++++++++++++++++++-------------------- 2 files changed, 28 insertions(+), 21 deletions(-) diff --git a/build/pack-dist.sh b/build/pack-dist.sh index bb4e718ee9..919d852576 100755 --- a/build/pack-dist.sh +++ b/build/pack-dist.sh @@ -16,4 +16,10 @@ cd "$ROOT_DIR" cd "$DIST/nativescript-core" TGZ="$(npm pack)" mv "$TGZ" "../$TGZ" -) \ No newline at end of file +) + +# ( +# cd "$DIST/tns-core-modules" +# TGZ="$(npm pack)" +# mv "$TGZ" "../$TGZ" +# ) \ No newline at end of file diff --git a/build/prepare-dist.sh b/build/prepare-dist.sh index af0ebd27a0..8f795e55d0 100755 --- a/build/prepare-dist.sh +++ b/build/prepare-dist.sh @@ -69,28 +69,29 @@ mkdir -p "$DIST" ) ## Prepare tns-core-modules -( - PACKAGE_SOURCE=tns-core-modules-package; - PACKAGE=tns-core-modules; +# ( +# PACKAGE_SOURCE=tns-core-modules-package; +# PACKAGE=tns-core-modules; - echo "Clearing $DIST/$PACKAGE" - npx rimraf "$DIST/$PACKAGE" - npx rimraf "$DIST/$PACKAGE*.tgz" +# echo "Clearing $DIST/$PACKAGE" +# npx rimraf "$DIST/$PACKAGE" +# npx rimraf "$DIST/$PACKAGE*.tgz" - echo "Generating compat package" - npx ts-node build/generate-tns-compat +# echo "Generating compat package" +# npx ts-node --project ./build/tsconfig.json ./build/generate-tns-compat - echo "Copying $PACKAGE_SOURCE $DIST/$PACKAGE..." - npx ncp "$PACKAGE_SOURCE" "$DIST/$PACKAGE" +# echo "Copying $PACKAGE_SOURCE $DIST/$PACKAGE..." +# npx ncp "$PACKAGE_SOURCE" "$DIST/$PACKAGE" - echo "Copying README and LICENSE to $DIST/$PACKAGE" - npx ncp LICENSE "$DIST"/"$PACKAGE"/LICENSE +# echo "Copying README and LICENSE to $DIST/$PACKAGE" +# npx ncp LICENSE "$DIST"/"$PACKAGE"/LICENSE - # ( - # echo 'TypeScript transpile...' - # cd "$DIST/$PACKAGE" - - # npm install - # npx tsc - # ) -) \ No newline at end of file +# ( +# echo 'TypeScript transpile...' +# cd "$DIST/$PACKAGE" + +# npm install ../nativescript-core*.tgz -s +# npm install ../tns-platform-declarations*.tgz -s +# npx tsc +# ) +# ) \ No newline at end of file From 217782f5ff2664ee410ea8c6036c437892f95d1f Mon Sep 17 00:00:00 2001 From: vakrilov Date: Fri, 30 Aug 2019 18:20:20 +0300 Subject: [PATCH 12/60] chore: tests changed to use @ns/core --- tests/app/app.ts | 2 +- .../application-settings-tests.ts | 2 +- .../application/application-tests-common.ts | 4 +- .../application/application-tests.android.ts | 2 +- .../app/application/application-tests.ios.ts | 4 +- tests/app/color/color-tests.ts | 2 +- tests/app/connectivity/connectivity-tests.ts | 2 +- tests/app/data/observable-array-tests.ts | 4 +- tests/app/data/observable-tests.ts | 6 +-- tests/app/data/virtual-array-tests.ts | 4 +- tests/app/debugger/dom-node-tests.ts | 22 ++++----- tests/app/fetch/fetch-tests.ts | 2 +- .../file-system-access-tests.ts | 2 +- tests/app/file-system/file-system-tests.ts | 6 +-- tests/app/fps-meter/fps-meter-tests.ts | 2 +- tests/app/globals/globals-tests.ts | 2 +- tests/app/http/http-string-worker.ts | 2 +- tests/app/http/http-tests.ts | 8 ++-- .../app/image-source/image-source-snippet.ts | 4 +- tests/app/image-source/image-source-tests.ts | 12 ++--- .../app/livesync/livesync-modal-view-page.ts | 2 +- tests/app/livesync/livesync-tests.ts | 14 +++--- tests/app/main-page.ts | 4 +- .../file-name-resolver-tests.ts | 4 +- .../module-name-resolver-tests.ts | 2 +- .../qualifier-matcher-tests.ts | 4 +- .../navigation/custom-transition.android.ts | 2 +- tests/app/navigation/custom-transition.d.ts | 2 +- tests/app/navigation/custom-transition.ios.ts | 2 +- tests/app/navigation/navigation-tests.ts | 10 ++-- tests/app/navigation/transition-tests.ts | 12 ++--- tests/app/pages/background-test.ts | 4 +- tests/app/pages/file-load-test.ts | 8 ++-- tests/app/pages/fonts-test.ts | 4 +- tests/app/pages/page10.ts | 14 +++--- tests/app/pages/page11.ts | 8 ++-- tests/app/pages/page12.ts | 8 ++-- tests/app/pages/page13.ts | 6 +-- tests/app/pages/page15.ts | 6 +-- tests/app/pages/page16.ts | 8 ++-- tests/app/pages/page17.ts | 6 +-- tests/app/pages/page18.ts | 6 +-- tests/app/pages/page19.ts | 4 +- tests/app/pages/page20.ts | 8 ++-- tests/app/pages/page5.ts | 10 ++-- tests/app/pages/page6.ts | 4 +- tests/app/pages/page7.ts | 6 +-- tests/app/pages/page8.ts | 16 +++---- tests/app/pages/page9.ts | 8 ++-- tests/app/pages/performance-test/start.ts | 4 +- tests/app/pages/performance-test/test-big.ts | 2 +- .../app/pages/performance-test/test-small.ts | 2 +- tests/app/pages/property-bindings.ts | 22 ++++----- tests/app/pages/tab-view.ts | 2 +- tests/app/platform/platform-tests.ts | 4 +- tests/app/profiling/profiling-tests.ts | 2 +- tests/app/test-runner.ts | 18 ++++---- tests/app/text/formatted-string-tests.ts | 8 ++-- tests/app/timer/timer-tests.ts | 2 +- tests/app/tk-unit.ts | 10 ++-- tests/app/trace/trace-error-tests.ts | 2 +- tests/app/trace/trace-tests.ts | 2 +- tests/app/ui-helper.ts | 24 +++++----- tests/app/ui-test.ts | 6 +-- .../ui/action-bar/ActionBar_NumberAsText.ts | 2 +- .../ui/action-bar/ActionBar_NumberAsTitle.ts | 2 +- .../ui/action-bar/action-bar-tests-common.ts | 16 +++---- .../ui/action-bar/action-bar-tests.android.ts | 6 +-- .../app/ui/action-bar/action-bar-tests.ios.ts | 10 ++-- .../activity-indicator-tests.ts | 10 ++-- tests/app/ui/animation/animation-tests.ts | 16 +++---- tests/app/ui/animation/css-animation-tests.ts | 14 +++--- tests/app/ui/border/border-tests.ts | 2 +- .../bottom-navigation-navigation-tests.ts | 14 +++--- .../bottom-navigation-root-tests.ts | 12 ++--- .../bottom-navigation-tests-native.android.ts | 2 +- .../bottom-navigation-tests-native.d.ts | 2 +- .../bottom-navigation-tests-native.ios.ts | 2 +- .../bottom-navigation-tests.ts | 4 +- .../builder/builder-file-qualifiers-tests.ts | 8 ++-- tests/app/ui/builder/builder-tests.ts | 4 +- .../ui/button/button-tests-native.android.ts | 8 ++-- tests/app/ui/button/button-tests-native.d.ts | 4 +- .../app/ui/button/button-tests-native.ios.ts | 6 +-- tests/app/ui/button/button-tests.ts | 16 +++---- tests/app/ui/core/bindable/bindable-tests.ts | 28 +++++------ .../bindable/binding-expressions-tests.ts | 4 +- .../core/bindable/bindingContext_testPage.ts | 4 +- .../core/bindable/bindingContext_testPage1.ts | 4 +- .../core/bindable/bindingContext_testPage2.ts | 2 +- .../weak-event-listener-tests.ts | 4 +- .../date-picker-tests-native.android.ts | 2 +- .../date-picker/date-picker-tests-native.d.ts | 2 +- .../date-picker-tests-native.ios.ts | 2 +- tests/app/ui/date-picker/date-picker-tests.ts | 6 +-- tests/app/ui/dialogs/dialog-tests.ts | 2 +- tests/app/ui/frame/frame-tests-common.ts | 6 +-- tests/app/ui/frame/frame-tests.android.ts | 4 +- tests/app/ui/gestures/gestures-tests.ts | 4 +- tests/app/ui/html-view/html-view-tests.ts | 4 +- tests/app/ui/image-cache/image-cache-tests.ts | 11 ++--- tests/app/ui/image/image-tests.ts | 28 +++++------ .../ui/label/label-tests-native.android.ts | 6 +-- tests/app/ui/label/label-tests-native.d.ts | 4 +- tests/app/ui/label/label-tests-native.ios.ts | 6 +-- tests/app/ui/label/label-tests.ts | 28 +++++------ tests/app/ui/layouts/absolute-layout-tests.ts | 6 +-- tests/app/ui/layouts/common-layout-tests.ts | 4 +- tests/app/ui/layouts/dock-layout-tests.ts | 8 ++-- tests/app/ui/layouts/flexbox-layout-tests.ts | 13 +++--- tests/app/ui/layouts/grid-layout-tests.ts | 14 +++--- tests/app/ui/layouts/layout-helper.android.ts | 8 ++-- tests/app/ui/layouts/layout-helper.d.ts | 6 +-- tests/app/ui/layouts/layout-helper.ios.ts | 8 ++-- tests/app/ui/layouts/layout-tests-helper.ts | 4 +- tests/app/ui/layouts/safe-area-tests.ts | 12 ++--- tests/app/ui/layouts/stack-layout-tests.ts | 8 ++-- tests/app/ui/layouts/wrap-layout-tests.ts | 4 +- tests/app/ui/lifecycle/lifecycle-tests.ts | 2 +- .../app/ui/lifecycle/pages/button-counter.ts | 4 +- .../list-picker-tests-native.android.ts | 2 +- .../list-picker/list-picker-tests-native.d.ts | 2 +- .../list-picker-tests-native.ios.ts | 2 +- tests/app/ui/list-picker/list-picker-tests.ts | 6 +-- .../ui/list-view/list-view-safe-area-tests.ts | 8 ++-- tests/app/ui/list-view/list-view-tests.ts | 20 ++++---- .../app/ui/list-view/list-view-view-model.ts | 2 +- tests/app/ui/page/modal-page.ts | 4 +- tests/app/ui/page/modal-tab-page.ts | 8 ++-- tests/app/ui/page/modal-tab-root.ts | 8 ++-- tests/app/ui/page/page-tests-common.ts | 25 +++++----- tests/app/ui/page/page-tests.android.ts | 6 +-- tests/app/ui/page/page-tests.ios.ts | 6 +-- tests/app/ui/page/page21.ts | 2 +- tests/app/ui/page/test-module-css-page.ts | 4 +- tests/app/ui/page/test-page-module.ts | 4 +- tests/app/ui/placeholder/placeholder-tests.ts | 8 ++-- tests/app/ui/progress/progress-tests.ts | 10 ++-- .../proxy-view-container-tests.ts | 18 ++++---- .../ui/repeater/repeater-safe-area-tests.ts | 8 ++-- tests/app/ui/repeater/repeater-tests.ts | 22 ++++----- tests/app/ui/root-view/mymodule/MyControl.ts | 8 ++-- .../app/ui/root-view/reset-root-view-tests.ts | 10 ++-- tests/app/ui/root-view/root-view-tests.ts | 10 ++-- .../scroll-view-safe-area-tests.ts | 10 ++-- tests/app/ui/scroll-view/scroll-view-tests.ts | 6 +-- .../ui/search-bar/search-bar-code-snippet.ts | 4 +- .../search-bar-tests-native.android.ts | 6 +-- .../search-bar/search-bar-tests-native.d.ts | 4 +- .../search-bar/search-bar-tests-native.ios.ts | 4 +- tests/app/ui/search-bar/search-bar-tests.ts | 8 ++-- .../segmented-bar-tests-native.android.ts | 2 +- .../segmented-bar-tests-native.d.ts | 2 +- .../segmented-bar-tests-native.ios.ts | 2 +- .../ui/segmented-bar/segmented-bar-tests.ts | 10 ++-- tests/app/ui/slider/slider-tests.ts | 14 +++--- .../styling/root-views-css-classes-tests.ts | 18 ++++---- .../app/ui/styling/style-properties-tests.ts | 22 ++++----- tests/app/ui/styling/style-tests.ts | 28 +++++------ tests/app/ui/styling/value-source-tests.ts | 8 ++-- tests/app/ui/styling/visual-state-tests.ts | 6 +-- tests/app/ui/switch/switch-tests.ts | 12 ++--- .../ui/tab-view/tab-view-navigation-tests.ts | 16 +++---- tests/app/ui/tab-view/tab-view-root-tests.ts | 10 ++-- .../tab-view/tab-view-tests-native.android.ts | 2 +- .../ui/tab-view/tab-view-tests-native.d.ts | 2 +- .../ui/tab-view/tab-view-tests-native.ios.ts | 2 +- tests/app/ui/tab-view/tab-view-tests.ts | 8 ++-- tests/app/ui/tabs/tabs-navigation-tests.ts | 14 +++--- tests/app/ui/tabs/tabs-root-tests.ts | 8 ++-- .../app/ui/tabs/tabs-tests-native.android.ts | 2 +- tests/app/ui/tabs/tabs-tests-native.d.ts | 2 +- tests/app/ui/tabs/tabs-tests-native.ios.ts | 2 +- tests/app/ui/tabs/tabs-tests.ts | 4 +- ...bindingExpressions_arrayAccess_testPage.ts | 2 +- ...ingExpressions_binaryOperators_testPage.ts | 2 +- ...xpressions_comparisonOperators_testPage.ts | 2 +- ...xpressions_groupingParenthesis_testPage.ts | 2 +- ...ons_logicalComparisonOperators_testPage.ts | 2 +- ...ngExpressions_logicalOperators_testPage.ts | 2 +- ...ingExpressions_ternaryOperator_testPage.ts | 2 +- ...dingExpressions_unaryOperators_testPage.ts | 2 +- .../text-field-tests-native.android.ts | 8 ++-- .../text-field/text-field-tests-native.d.ts | 4 +- .../text-field/text-field-tests-native.ios.ts | 6 +-- tests/app/ui/text-field/text-field-tests.ts | 18 ++++---- .../text-view-tests-native.android.ts | 8 ++-- .../ui/text-view/text-view-tests-native.d.ts | 4 +- .../text-view/text-view-tests-native.ios.ts | 6 +-- tests/app/ui/text-view/text-view-tests.ts | 16 +++---- .../time-picker-tests-native.android.ts | 2 +- .../time-picker/time-picker-tests-native.d.ts | 2 +- .../time-picker-tests-native.ios.ts | 2 +- tests/app/ui/time-picker/time-picker-tests.ts | 6 +-- tests/app/ui/view/view-tests-common.ts | 26 +++++------ tests/app/ui/view/view-tests-layout-event.ts | 6 +-- tests/app/ui/view/view-tests.android.ts | 14 +++--- tests/app/ui/view/view-tests.d.ts | 2 +- tests/app/ui/view/view-tests.ios.ts | 10 ++-- .../app/ui/web-view/web-view-code-snippet.ts | 6 +-- .../ui/web-view/web-view-safe-area-tests.ts | 8 ++-- tests/app/ui/web-view/web-view-tests.ts | 2 +- tests/app/utils/utils-tests.ts | 4 +- tests/app/xhr/xhr-tests.ts | 2 +- .../xml-declaration/inherited-base-page.ts | 2 +- tests/app/xml-declaration/inherited-page.ts | 4 +- tests/app/xml-declaration/mainPage.ts | 10 ++-- .../app/xml-declaration/mymodule/MyControl.ts | 8 ++-- .../mymodulewithxml/MyControl.ts | 6 +-- .../mymodulewithxml/TabViewParentChainPage.ts | 6 +-- .../template-builder-tests/template-view.ts | 6 +-- .../xml-declaration/xml-declaration-tests.ts | 46 +++++++++---------- .../app/xml-parser-tests/xml-parser-tests.ts | 13 +++--- tests/package.json | 7 +-- tests/webpack.config.js | 16 +++---- 215 files changed, 779 insertions(+), 782 deletions(-) diff --git a/tests/app/app.ts b/tests/app/app.ts index 80567d7871..9bec903087 100644 --- a/tests/app/app.ts +++ b/tests/app/app.ts @@ -5,7 +5,7 @@ if (typeof NSDate !== "undefined") { start = java.lang.System.currentTimeMillis(); } -import * as application from "tns-core-modules/application"; +import * as application from "@nativescript/core/application"; if (application.ios) { // Observe application notifications. diff --git a/tests/app/application-settings/application-settings-tests.ts b/tests/app/application-settings/application-settings-tests.ts index 4ce83cecb3..2d49ddccb7 100644 --- a/tests/app/application-settings/application-settings-tests.ts +++ b/tests/app/application-settings/application-settings-tests.ts @@ -1,4 +1,4 @@ -var appSettings = require("tns-core-modules/application-settings"); +var appSettings = require("@nativescript/core/application-settings"); import * as TKUnit from "../tk-unit"; var stringKey: string = "stringKey"; diff --git a/tests/app/application/application-tests-common.ts b/tests/app/application/application-tests-common.ts index 283d0cc2d1..bc1d9fe258 100644 --- a/tests/app/application/application-tests-common.ts +++ b/tests/app/application/application-tests-common.ts @@ -1,5 +1,5 @@ -import * as app from "tns-core-modules/application"; -import * as platform from "tns-core-modules/platform"; +import * as app from "@nativescript/core/application"; +import * as platform from "@nativescript/core/platform"; import * as TKUnit from "../tk-unit"; diff --git a/tests/app/application/application-tests.android.ts b/tests/app/application/application-tests.android.ts index a60b687a74..bda9d08b3c 100644 --- a/tests/app/application/application-tests.android.ts +++ b/tests/app/application/application-tests.android.ts @@ -1,5 +1,5 @@ /* tslint:disable:no-unused-variable */ -import * as app from "tns-core-modules/application"; +import * as app from "@nativescript/core/application"; import * as TKUnit from "../tk-unit"; export * from "./application-tests-common"; diff --git a/tests/app/application/application-tests.ios.ts b/tests/app/application/application-tests.ios.ts index 5c93ab4dbb..207cdcca6f 100644 --- a/tests/app/application/application-tests.ios.ts +++ b/tests/app/application/application-tests.ios.ts @@ -1,6 +1,6 @@ /* tslint:disable:no-unused-variable */ -import * as app from "tns-core-modules/application"; -import { ios } from "tns-core-modules/utils/utils"; +import * as app from "@nativescript/core/application"; +import { ios } from "@nativescript/core/utils/utils"; import * as TKUnit from "../tk-unit"; export * from "./application-tests-common"; diff --git a/tests/app/color/color-tests.ts b/tests/app/color/color-tests.ts index e03a65b92e..61b4d5bbe7 100644 --- a/tests/app/color/color-tests.ts +++ b/tests/app/color/color-tests.ts @@ -1,5 +1,5 @@ // >> color-require -import * as colorModule from "tns-core-modules/color"; +import * as colorModule from "@nativescript/core/color"; var Color = colorModule.Color; // << color-require import * as TKUnit from "../tk-unit"; diff --git a/tests/app/connectivity/connectivity-tests.ts b/tests/app/connectivity/connectivity-tests.ts index c0cde0c40a..9dc6427fe8 100644 --- a/tests/app/connectivity/connectivity-tests.ts +++ b/tests/app/connectivity/connectivity-tests.ts @@ -1,5 +1,5 @@ // >> connectivity-require -import * as connectivity from "tns-core-modules/connectivity"; +import * as connectivity from "@nativescript/core/connectivity"; // << connectivity-require export var test_DummyTestForSnippetOnly0 = function () { diff --git a/tests/app/data/observable-array-tests.ts b/tests/app/data/observable-array-tests.ts index 38fdff924f..b099715a88 100644 --- a/tests/app/data/observable-array-tests.ts +++ b/tests/app/data/observable-array-tests.ts @@ -1,7 +1,7 @@ import * as TKUnit from "../tk-unit"; -import { Label } from "tns-core-modules/ui/label"; +import { Label } from "@nativescript/core/ui/label"; // >> observable-array-require -import { ObservableArray, ChangedData, ChangeType } from "tns-core-modules/data/observable-array"; +import { ObservableArray, ChangedData, ChangeType } from "@nativescript/core/data/observable-array"; // << observable-array-require export const test_ObservableArray_shouldCopySourceArrayItems = function () { diff --git a/tests/app/data/observable-tests.ts b/tests/app/data/observable-tests.ts index 291bbe9961..e47e592fcd 100644 --- a/tests/app/data/observable-tests.ts +++ b/tests/app/data/observable-tests.ts @@ -1,10 +1,10 @@ // >> observable-require -import { Observable, fromObject, fromObjectRecursive, PropertyChangeData, EventData, WrappedValue } from "tns-core-modules/data/observable"; +import { Observable, fromObject, fromObjectRecursive, PropertyChangeData, EventData, WrappedValue } from "@nativescript/core/data/observable"; // << observable-require import * as TKUnit from "../tk-unit"; -import * as types from "tns-core-modules/utils/types"; -import { ObservableArray } from "tns-core-modules/data/observable-array"; +import * as types from "@nativescript/core/utils/types"; +import { ObservableArray } from "@nativescript/core/data/observable-array"; var TESTED_NAME = "tested"; class TestObservable extends Observable { diff --git a/tests/app/data/virtual-array-tests.ts b/tests/app/data/virtual-array-tests.ts index 446836f315..24a419d336 100644 --- a/tests/app/data/virtual-array-tests.ts +++ b/tests/app/data/virtual-array-tests.ts @@ -1,6 +1,6 @@ import * as TKUnit from "../tk-unit"; -import * as types from "tns-core-modules/utils/types"; -import * as virtualArrayModule from "tns-core-modules/data/virtual-array"; +import * as types from "@nativescript/core/utils/types"; +import * as virtualArrayModule from "@nativescript/core/data/virtual-array"; export var test_VirtualArray_shouldCreateArrayFromSpecifiedLength = function () { var array = new virtualArrayModule.VirtualArray(100); diff --git a/tests/app/debugger/dom-node-tests.ts b/tests/app/debugger/dom-node-tests.ts index f5a7e7845f..f6173e3884 100644 --- a/tests/app/debugger/dom-node-tests.ts +++ b/tests/app/debugger/dom-node-tests.ts @@ -1,15 +1,15 @@ import { assert, assertEqual } from "../tk-unit"; -import { DOMNode } from "tns-core-modules/debugger/dom-node"; -import { attachDOMInspectorCommandCallbacks, attachCSSInspectorCommandCallbacks, attachDOMInspectorEventCallbacks } from "tns-core-modules/debugger/devtools-elements"; -import { InspectorCommands, InspectorEvents } from "tns-core-modules/debugger/devtools-elements"; -import { unsetValue } from "tns-core-modules/ui/core/properties"; -import { Button } from "tns-core-modules/ui/button"; -import { Slider } from "tns-core-modules/ui/slider"; -import { Label } from "tns-core-modules/ui/label"; -import { textProperty } from "tns-core-modules/ui/text-base"; -import { TextView } from "tns-core-modules/ui/text-view"; -import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout"; -import { isAndroid } from "tns-core-modules/platform/platform"; +import { DOMNode } from "@nativescript/core/debugger/dom-node"; +import { attachDOMInspectorCommandCallbacks, attachCSSInspectorCommandCallbacks, attachDOMInspectorEventCallbacks } from "@nativescript/core/debugger/devtools-elements"; +import { InspectorCommands, InspectorEvents } from "@nativescript/core/debugger/devtools-elements"; +import { unsetValue } from "@nativescript/core/ui/core/properties"; +import { Button } from "@nativescript/core/ui/button"; +import { Slider } from "@nativescript/core/ui/slider"; +import { Label } from "@nativescript/core/ui/label"; +import { textProperty } from "@nativescript/core/ui/text-base"; +import { TextView } from "@nativescript/core/ui/text-view"; +import { StackLayout } from "@nativescript/core/ui/layouts/stack-layout"; +import { isAndroid } from "@nativescript/core/platform/platform"; let originalInspectorGlobal: InspectorCommands & InspectorEvents; diff --git a/tests/app/fetch/fetch-tests.ts b/tests/app/fetch/fetch-tests.ts index b6542061ff..46ff5f27c3 100644 --- a/tests/app/fetch/fetch-tests.ts +++ b/tests/app/fetch/fetch-tests.ts @@ -1,6 +1,6 @@ /* tslint:disable:no-unused-variable */ import * as TKUnit from "../tk-unit"; -import * as types from "tns-core-modules/utils/types"; +import * as types from "@nativescript/core/utils/types"; export var test_fetch_defined = function () { TKUnit.assert(types.isDefined((fetch)), "Method fetch() should be defined!"); diff --git a/tests/app/file-system-access-tests/file-system-access-tests.ts b/tests/app/file-system-access-tests/file-system-access-tests.ts index 3645614498..380885ccd2 100644 --- a/tests/app/file-system-access-tests/file-system-access-tests.ts +++ b/tests/app/file-system-access-tests/file-system-access-tests.ts @@ -1,5 +1,5 @@ import * as TKUnit from "../tk-unit"; -import * as fs from "tns-core-modules/file-system"; +import * as fs from "@nativescript/core/file-system"; export var test_UTF8_BOM_is_not_returned = function () { var path = fs.path.join(fs.knownFolders.currentApp().path, "file-system-access-tests", "xml.expected"); diff --git a/tests/app/file-system/file-system-tests.ts b/tests/app/file-system/file-system-tests.ts index cd13d34cdb..c9c1e19dbb 100644 --- a/tests/app/file-system/file-system-tests.ts +++ b/tests/app/file-system/file-system-tests.ts @@ -1,11 +1,11 @@ /* tslint:disable:no-unused-variable */ // >> file-system-require -import * as fs from "tns-core-modules/file-system"; +import * as fs from "@nativescript/core/file-system"; // << file-system-require import * as TKUnit from "../tk-unit"; -import * as appModule from "tns-core-modules/application"; -import * as platform from "tns-core-modules/platform"; +import * as appModule from "@nativescript/core/application"; +import * as platform from "@nativescript/core/platform"; export var testPathNormalize = function () { // >> file-system-normalize diff --git a/tests/app/fps-meter/fps-meter-tests.ts b/tests/app/fps-meter/fps-meter-tests.ts index 294d0d5824..b3268c631e 100644 --- a/tests/app/fps-meter/fps-meter-tests.ts +++ b/tests/app/fps-meter/fps-meter-tests.ts @@ -1,5 +1,5 @@ // >> fps-meter-require -import * as fpsMeter from "tns-core-modules/fps-meter"; +import * as fpsMeter from "@nativescript/core/fps-meter"; // << fps-meter-require export var test_DummyTestForSnippetOnly0 = function () { diff --git a/tests/app/globals/globals-tests.ts b/tests/app/globals/globals-tests.ts index 994ad70e5c..414ed77fdb 100644 --- a/tests/app/globals/globals-tests.ts +++ b/tests/app/globals/globals-tests.ts @@ -1,4 +1,4 @@ -import "tns-core-modules/globals"; +import "@nativescript/core/globals"; import * as TKUnit from "../tk-unit"; declare var System: any; diff --git a/tests/app/http/http-string-worker.ts b/tests/app/http/http-string-worker.ts index a0f6ee9d20..224bd001f0 100644 --- a/tests/app/http/http-string-worker.ts +++ b/tests/app/http/http-string-worker.ts @@ -1,4 +1,4 @@ -import * as http from "tns-core-modules/http"; +import * as http from "@nativescript/core/http"; declare var postMessage: any; diff --git a/tests/app/http/http-tests.ts b/tests/app/http/http-tests.ts index 4ea6bfdc85..b719002bc3 100644 --- a/tests/app/http/http-tests.ts +++ b/tests/app/http/http-tests.ts @@ -1,8 +1,8 @@ -import { ImageSource } from "tns-core-modules/image-source"; +import { ImageSource } from "@nativescript/core/image-source"; import * as TKUnit from "../tk-unit"; -import * as http from "tns-core-modules/http"; -import * as fs from "tns-core-modules/file-system"; -import { addHeader } from "tns-core-modules/http/http-request"; +import * as http from "@nativescript/core/http"; +import * as fs from "@nativescript/core/file-system"; +import { addHeader } from "@nativescript/core/http/http-request"; export var test_getString_isDefined = function () { TKUnit.assert(typeof (http.getString) !== "undefined", "Method http.getString() should be defined!"); diff --git a/tests/app/image-source/image-source-snippet.ts b/tests/app/image-source/image-source-snippet.ts index c341aad70a..edf6b63685 100644 --- a/tests/app/image-source/image-source-snippet.ts +++ b/tests/app/image-source/image-source-snippet.ts @@ -1,5 +1,5 @@ -import * as imageSource from "tns-core-modules/image-source"; -import * as fs from "tns-core-modules/file-system"; +import * as imageSource from "@nativescript/core/image-source"; +import * as fs from "@nativescript/core/file-system"; // >> imagesource-from-imageasset-save-to export function imageSourceFromAsset(imageAsset) { diff --git a/tests/app/image-source/image-source-tests.ts b/tests/app/image-source/image-source-tests.ts index cfc5ec8b36..d2ea701fd1 100644 --- a/tests/app/image-source/image-source-tests.ts +++ b/tests/app/image-source/image-source-tests.ts @@ -1,10 +1,10 @@ -import * as imageSource from "tns-core-modules/image-source"; -import * as imageAssetModule from "tns-core-modules/image-asset"; -import * as fs from "tns-core-modules/file-system"; -import * as app from "tns-core-modules/application"; +import * as imageSource from "@nativescript/core/image-source"; +import * as imageAssetModule from "@nativescript/core/image-asset"; +import * as fs from "@nativescript/core/file-system"; +import * as app from "@nativescript/core/application"; import * as TKUnit from "../tk-unit"; -import { Font } from "tns-core-modules/ui/styling/font"; -import { Color } from "tns-core-modules/color"; +import { Font } from "@nativescript/core/ui/styling/font"; +import { Color } from "@nativescript/core/color"; const imagePath = "~/assets/logo.png"; const splashscreenPath = "~/assets/splashscreen.png"; diff --git a/tests/app/livesync/livesync-modal-view-page.ts b/tests/app/livesync/livesync-modal-view-page.ts index 6160a186b2..ae16b2a912 100644 --- a/tests/app/livesync/livesync-modal-view-page.ts +++ b/tests/app/livesync/livesync-modal-view-page.ts @@ -1,4 +1,4 @@ -import { View, ShowModalOptions } from "tns-core-modules/ui/core/view"; +import { View, ShowModalOptions } from "@nativescript/core/ui/core/view"; const LIVESYNC_FOLDER = "livesync/"; const buttonPageModuleName = `${LIVESYNC_FOLDER}livesync-button-page`; diff --git a/tests/app/livesync/livesync-tests.ts b/tests/app/livesync/livesync-tests.ts index 2ede70f509..d9305d35a1 100644 --- a/tests/app/livesync/livesync-tests.ts +++ b/tests/app/livesync/livesync-tests.ts @@ -1,19 +1,19 @@ import * as helper from "../ui-helper"; import * as TKUnit from "../tk-unit"; -import * as app from "tns-core-modules/application/application"; -import * as frame from "tns-core-modules/ui/frame"; -import { Color } from "tns-core-modules/color"; -import { createViewFromEntry } from "tns-core-modules/ui/builder"; -import { Page } from "tns-core-modules/ui/page"; -import { Frame } from "tns-core-modules/ui/frame"; +import * as app from "@nativescript/core/application/application"; +import * as frame from "@nativescript/core/ui/frame"; +import { Color } from "@nativescript/core/color"; +import { createViewFromEntry } from "@nativescript/core/ui/builder"; +import { Page } from "@nativescript/core/ui/page"; +import { Frame } from "@nativescript/core/ui/frame"; const LIVESYNC_FOLDER = "livesync/"; const appCssFileName = `${LIVESYNC_FOLDER}application-page.css`; const appNewCssFileName = `${LIVESYNC_FOLDER}app-new-page.css`; // `.scss` module registers in webpack as `.css` -// https://github.com/NativeScript/NativeScript/blob/5.4.2/tns-core-modules/globals/globals.ts#L32-L33 +// https://github.com/NativeScript/NativeScript/blob/5.4.2/@nativescript/core/globals/globals.ts#L32-L33 const appNewScssFileNameAsCss = `${LIVESYNC_FOLDER}app-new-scss-page.css`; const appNewScssFileName = `${LIVESYNC_FOLDER}app-new-scss-page.scss`; diff --git a/tests/app/main-page.ts b/tests/app/main-page.ts index e489827120..b44b48d58c 100644 --- a/tests/app/main-page.ts +++ b/tests/app/main-page.ts @@ -1,5 +1,5 @@ -import * as trace from "tns-core-modules/trace"; -import { Page } from "tns-core-modules/ui/page"; +import * as trace from "@nativescript/core/trace"; +import { Page } from "@nativescript/core/ui/page"; import * as tests from "./test-runner"; diff --git a/tests/app/name-resolvers-tests/file-name-resolver-tests.ts b/tests/app/name-resolvers-tests/file-name-resolver-tests.ts index 548c713afc..d974dbc039 100644 --- a/tests/app/name-resolvers-tests/file-name-resolver-tests.ts +++ b/tests/app/name-resolvers-tests/file-name-resolver-tests.ts @@ -1,6 +1,6 @@ import * as TKUnit from "../tk-unit"; -import * as fs from "tns-core-modules/file-system"; -import { FileNameResolver } from "tns-core-modules/file-system/file-name-resolver"; +import * as fs from "@nativescript/core/file-system"; +import { FileNameResolver } from "@nativescript/core/file-system/file-name-resolver"; import { androidPhonePortraitContext, androidPhoneLandscapeContext, diff --git a/tests/app/name-resolvers-tests/module-name-resolver-tests.ts b/tests/app/name-resolvers-tests/module-name-resolver-tests.ts index c843050217..5ffe9524a6 100644 --- a/tests/app/name-resolvers-tests/module-name-resolver-tests.ts +++ b/tests/app/name-resolvers-tests/module-name-resolver-tests.ts @@ -1,5 +1,5 @@ import * as TKUnit from "../tk-unit"; -import { ModuleNameResolver, ModuleListProvider } from "tns-core-modules/module-name-resolver"; +import { ModuleNameResolver, ModuleListProvider } from "@nativescript/core/module-name-resolver"; import { androidPhonePortraitContext, diff --git a/tests/app/name-resolvers-tests/qualifier-matcher-tests.ts b/tests/app/name-resolvers-tests/qualifier-matcher-tests.ts index 6e95230e27..85232e4134 100644 --- a/tests/app/name-resolvers-tests/qualifier-matcher-tests.ts +++ b/tests/app/name-resolvers-tests/qualifier-matcher-tests.ts @@ -1,6 +1,6 @@ import * as TKUnit from "../tk-unit"; -import * as enums from "tns-core-modules/ui/enums"; -import { findMatch, PlatformContext } from "tns-core-modules/module-name-resolver/qualifier-matcher"; +import * as enums from "@nativescript/core/ui/enums"; +import { findMatch, PlatformContext } from "@nativescript/core/module-name-resolver/qualifier-matcher"; export const androidPhonePortraitContext: PlatformContext = { width: 360, diff --git a/tests/app/navigation/custom-transition.android.ts b/tests/app/navigation/custom-transition.android.ts index 24434118fd..1be326b5fb 100644 --- a/tests/app/navigation/custom-transition.android.ts +++ b/tests/app/navigation/custom-transition.android.ts @@ -1,4 +1,4 @@ -import * as transition from "tns-core-modules/ui/transition"; +import * as transition from "@nativescript/core/ui/transition"; export class CustomTransition extends transition.Transition { constructor(duration: number, curve: any) { diff --git a/tests/app/navigation/custom-transition.d.ts b/tests/app/navigation/custom-transition.d.ts index 958994bdbd..5ed5e7649c 100644 --- a/tests/app/navigation/custom-transition.d.ts +++ b/tests/app/navigation/custom-transition.d.ts @@ -1,4 +1,4 @@ -import { Transition } from "tns-core-modules/ui/transition"; +import { Transition } from "@nativescript/core/ui/transition"; export class CustomTransition extends Transition { constructor(); diff --git a/tests/app/navigation/custom-transition.ios.ts b/tests/app/navigation/custom-transition.ios.ts index a0433bbc85..c587a35b98 100644 --- a/tests/app/navigation/custom-transition.ios.ts +++ b/tests/app/navigation/custom-transition.ios.ts @@ -1,4 +1,4 @@ -import * as transition from "tns-core-modules/ui/transition"; +import * as transition from "@nativescript/core/ui/transition"; export class CustomTransition extends transition.Transition { constructor(duration: number, curve: any) { diff --git a/tests/app/navigation/navigation-tests.ts b/tests/app/navigation/navigation-tests.ts index 5dd97733e2..bb19d9d8d6 100644 --- a/tests/app/navigation/navigation-tests.ts +++ b/tests/app/navigation/navigation-tests.ts @@ -1,10 +1,10 @@ import * as TKUnit from "../tk-unit"; -import { EventData, Page, NavigatedData } from "tns-core-modules/ui/page"; -import { topmost as topmostFrame, NavigationTransition } from "tns-core-modules/ui/frame"; -import { StackLayout, } from "tns-core-modules/ui/layouts/stack-layout"; -import { Color } from "tns-core-modules/color"; +import { EventData, Page, NavigatedData } from "@nativescript/core/ui/page"; +import { topmost as topmostFrame, NavigationTransition } from "@nativescript/core/ui/frame"; +import { StackLayout, } from "@nativescript/core/ui/layouts/stack-layout"; +import { Color } from "@nativescript/core/color"; import * as helper from "../ui-helper"; -import * as frame from "tns-core-modules/ui/frame"; +import * as frame from "@nativescript/core/ui/frame"; // Creates a random colorful page full of meaningless stuff. let id = 0; let pageFactory = function (): Page { diff --git a/tests/app/navigation/transition-tests.ts b/tests/app/navigation/transition-tests.ts index 1d49af6be7..a5d123de8f 100644 --- a/tests/app/navigation/transition-tests.ts +++ b/tests/app/navigation/transition-tests.ts @@ -1,10 +1,10 @@ import * as helper from "../ui-helper"; -import * as platform from "tns-core-modules/platform"; -import * as trace from "tns-core-modules/trace"; -import { Color } from "tns-core-modules/color"; -import { NavigationEntry, NavigationTransition } from "tns-core-modules/ui/frame"; -import { Page } from "tns-core-modules/ui/page"; -import { AnimationCurve } from "tns-core-modules/ui/enums"; +import * as platform from "@nativescript/core/platform"; +import * as trace from "@nativescript/core/trace"; +import { Color } from "@nativescript/core/color"; +import { NavigationEntry, NavigationTransition } from "@nativescript/core/ui/frame"; +import { Page } from "@nativescript/core/ui/page"; +import { AnimationCurve } from "@nativescript/core/ui/enums"; import { CustomTransition } from "./custom-transition"; function _testTransition(navigationTransition: NavigationTransition) { diff --git a/tests/app/pages/background-test.ts b/tests/app/pages/background-test.ts index 63b2739b6c..9b7e0edba8 100644 --- a/tests/app/pages/background-test.ts +++ b/tests/app/pages/background-test.ts @@ -1,5 +1,5 @@ -import * as view from "tns-core-modules/ui/core/view"; -import * as pages from "tns-core-modules/ui/page"; +import * as view from "@nativescript/core/ui/core/view"; +import * as pages from "@nativescript/core/ui/page"; export function applyTap(args) { var page = (args.object).page; diff --git a/tests/app/pages/file-load-test.ts b/tests/app/pages/file-load-test.ts index 5274f676e5..ce1270d7ef 100644 --- a/tests/app/pages/file-load-test.ts +++ b/tests/app/pages/file-load-test.ts @@ -1,7 +1,7 @@ -import * as label from "tns-core-modules/ui/label"; -import * as pages from "tns-core-modules/ui/page"; -import * as fs from "tns-core-modules/file-system"; -import * as fileResolverModule from "tns-core-modules/file-system/file-name-resolver"; +import * as label from "@nativescript/core/ui/label"; +import * as pages from "@nativescript/core/ui/page"; +import * as fs from "@nativescript/core/file-system"; +import * as fileResolverModule from "@nativescript/core/file-system/file-name-resolver"; export function createPage() { var page = new pages.Page(); diff --git a/tests/app/pages/fonts-test.ts b/tests/app/pages/fonts-test.ts index bf86e134a8..ea83e9c36a 100644 --- a/tests/app/pages/fonts-test.ts +++ b/tests/app/pages/fonts-test.ts @@ -1,5 +1,5 @@ -import * as stack from "tns-core-modules/ui/layouts/stack-layout"; -import { unsetValue } from "tns-core-modules/ui/core/view"; +import * as stack from "@nativescript/core/ui/layouts/stack-layout"; +import { unsetValue } from "@nativescript/core/ui/core/view"; export function buttonTap(args) { var stackLayout = args.object.parent; diff --git a/tests/app/pages/page10.ts b/tests/app/pages/page10.ts index d0f9aadeee..17054647dc 100644 --- a/tests/app/pages/page10.ts +++ b/tests/app/pages/page10.ts @@ -1,10 +1,10 @@ -import * as pages from "tns-core-modules/ui/page"; -import * as imageSource from "tns-core-modules/image-source"; -import * as gridModule from "tns-core-modules/ui/layouts/grid-layout"; -import * as enums from "tns-core-modules/ui/enums"; -import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout"; -import { Label } from "tns-core-modules/ui/label"; -import { Image } from "tns-core-modules/ui/image"; +import * as pages from "@nativescript/core/ui/page"; +import * as imageSource from "@nativescript/core/image-source"; +import * as gridModule from "@nativescript/core/ui/layouts/grid-layout"; +import * as enums from "@nativescript/core/ui/enums"; +import { StackLayout } from "@nativescript/core/ui/layouts/stack-layout"; +import { Label } from "@nativescript/core/ui/label"; +import { Image } from "@nativescript/core/ui/image"; export function createPage() { var stack = new StackLayout(); diff --git a/tests/app/pages/page11.ts b/tests/app/pages/page11.ts index d20ec6aa1c..f945c676a6 100644 --- a/tests/app/pages/page11.ts +++ b/tests/app/pages/page11.ts @@ -1,7 +1,7 @@ -import * as gridModule from "tns-core-modules/ui/layouts/grid-layout"; -import * as sp from "tns-core-modules/ui/layouts/stack-layout"; -import * as button from "tns-core-modules/ui/button"; -import { Page } from "tns-core-modules/ui/page"; +import * as gridModule from "@nativescript/core/ui/layouts/grid-layout"; +import * as sp from "@nativescript/core/ui/layouts/stack-layout"; +import * as button from "@nativescript/core/ui/button"; +import { Page } from "@nativescript/core/ui/page"; export function createPage() { var StackLayout = new sp.StackLayout(); diff --git a/tests/app/pages/page12.ts b/tests/app/pages/page12.ts index 6ae2a7e5c7..bdcf5b7437 100644 --- a/tests/app/pages/page12.ts +++ b/tests/app/pages/page12.ts @@ -1,7 +1,7 @@ -import * as pages from "tns-core-modules/ui/page"; -import * as btns from "tns-core-modules/ui/button"; -import * as tb from "tns-core-modules/ui/text-field"; -import * as gridLayoutModule from "tns-core-modules/ui/layouts/grid-layout"; +import * as pages from "@nativescript/core/ui/page"; +import * as btns from "@nativescript/core/ui/button"; +import * as tb from "@nativescript/core/ui/text-field"; +import * as gridLayoutModule from "@nativescript/core/ui/layouts/grid-layout"; export function createPage() { var page = new pages.Page(); diff --git a/tests/app/pages/page13.ts b/tests/app/pages/page13.ts index acb6961d1d..bb0cea3dee 100644 --- a/tests/app/pages/page13.ts +++ b/tests/app/pages/page13.ts @@ -1,6 +1,6 @@ -import * as pages from "tns-core-modules/ui/page"; -import * as btns from "tns-core-modules/ui/button"; -import * as layout from "tns-core-modules/ui/layouts/stack-layout"; +import * as pages from "@nativescript/core/ui/page"; +import * as btns from "@nativescript/core/ui/button"; +import * as layout from "@nativescript/core/ui/layouts/stack-layout"; export function createPage() { var page = new pages.Page(); diff --git a/tests/app/pages/page15.ts b/tests/app/pages/page15.ts index 9b8c9de9ef..35a6a1230f 100644 --- a/tests/app/pages/page15.ts +++ b/tests/app/pages/page15.ts @@ -1,6 +1,6 @@ -import * as pageModule from "tns-core-modules/ui/page"; -import * as buttonModule from "tns-core-modules/ui/button"; -import * as stackModule from "tns-core-modules/ui/layouts/stack-layout"; +import * as pageModule from "@nativescript/core/ui/page"; +import * as buttonModule from "@nativescript/core/ui/button"; +import * as stackModule from "@nativescript/core/ui/layouts/stack-layout"; export function createPage() { var page = new pageModule.Page(); diff --git a/tests/app/pages/page16.ts b/tests/app/pages/page16.ts index 21493f1174..bf3adf9261 100644 --- a/tests/app/pages/page16.ts +++ b/tests/app/pages/page16.ts @@ -1,7 +1,7 @@ -import * as pageModule from "tns-core-modules/ui/page"; -import * as buttonModule from "tns-core-modules/ui/button"; -import * as stackModule from "tns-core-modules/ui/layouts/stack-layout"; -import * as frame from "tns-core-modules/ui/frame"; +import * as pageModule from "@nativescript/core/ui/page"; +import * as buttonModule from "@nativescript/core/ui/button"; +import * as stackModule from "@nativescript/core/ui/layouts/stack-layout"; +import * as frame from "@nativescript/core/ui/frame"; export function createPage() { var page = new pageModule.Page(); diff --git a/tests/app/pages/page17.ts b/tests/app/pages/page17.ts index 5e483ae89b..38aa49ace7 100644 --- a/tests/app/pages/page17.ts +++ b/tests/app/pages/page17.ts @@ -1,7 +1,7 @@ -import * as observable from "tns-core-modules/data/observable"; -import * as action from "tns-core-modules/ui/action-bar"; +import * as observable from "@nativescript/core/data/observable"; +import * as action from "@nativescript/core/ui/action-bar"; -import * as pages from "tns-core-modules/ui/page"; +import * as pages from "@nativescript/core/ui/page"; var currentPage: pages.Page; // Event handler for Page "loaded" event attached in main-page.xml diff --git a/tests/app/pages/page18.ts b/tests/app/pages/page18.ts index c855b0b743..4c6a722538 100644 --- a/tests/app/pages/page18.ts +++ b/tests/app/pages/page18.ts @@ -1,7 +1,7 @@ -import * as frame from "tns-core-modules/ui/frame"; -import * as observable from "tns-core-modules/data/observable"; +import * as frame from "@nativescript/core/ui/frame"; +import * as observable from "@nativescript/core/data/observable"; -import * as trace from "tns-core-modules/trace"; +import * as trace from "@nativescript/core/trace"; trace.setCategories("gestures"); trace.enable(); diff --git a/tests/app/pages/page19.ts b/tests/app/pages/page19.ts index cd3d866f6a..546ebd7e3c 100644 --- a/tests/app/pages/page19.ts +++ b/tests/app/pages/page19.ts @@ -1,5 +1,5 @@ -import * as observable from "tns-core-modules/data/observable"; -import * as trace from "tns-core-modules/trace"; +import * as observable from "@nativescript/core/data/observable"; +import * as trace from "@nativescript/core/trace"; trace.addCategories(trace.categories.Layout); trace.enable(); diff --git a/tests/app/pages/page20.ts b/tests/app/pages/page20.ts index 77c419073c..3e3a74a893 100644 --- a/tests/app/pages/page20.ts +++ b/tests/app/pages/page20.ts @@ -1,7 +1,7 @@ -import * as observable from "tns-core-modules/data/observable"; -import * as trace from "tns-core-modules/trace"; -import { Button } from "tns-core-modules/ui/button"; -import { Page } from "tns-core-modules/ui/page"; +import * as observable from "@nativescript/core/data/observable"; +import * as trace from "@nativescript/core/trace"; +import { Button } from "@nativescript/core/ui/button"; +import { Page } from "@nativescript/core/ui/page"; trace.addCategories(trace.categories.Layout); trace.enable(); diff --git a/tests/app/pages/page5.ts b/tests/app/pages/page5.ts index 2eced9fba9..e154c7a317 100644 --- a/tests/app/pages/page5.ts +++ b/tests/app/pages/page5.ts @@ -1,8 +1,8 @@ -import * as gridModule from "tns-core-modules/ui/layouts/grid-layout"; -import * as pages from "tns-core-modules/ui/page"; -import * as buttons from "tns-core-modules/ui/button"; -import * as app from "tns-core-modules/application"; -import * as platform from "tns-core-modules/platform"; +import * as gridModule from "@nativescript/core/ui/layouts/grid-layout"; +import * as pages from "@nativescript/core/ui/page"; +import * as buttons from "@nativescript/core/ui/button"; +import * as app from "@nativescript/core/application"; +import * as platform from "@nativescript/core/platform"; function printDeviceInfoAndroid() { console.log("android.os.Build.DEVICE = " + android.os.Build.DEVICE); //android.os.Build.DEVICE = hammerhead diff --git a/tests/app/pages/page6.ts b/tests/app/pages/page6.ts index 577516cb3d..5aeab61151 100644 --- a/tests/app/pages/page6.ts +++ b/tests/app/pages/page6.ts @@ -1,5 +1,5 @@ -import * as pages from "tns-core-modules/ui/page"; -import * as fpsModule from "tns-core-modules/fps-meter"; +import * as pages from "@nativescript/core/ui/page"; +import * as fpsModule from "@nativescript/core/fps-meter"; export function createPage() { var startTime; diff --git a/tests/app/pages/page7.ts b/tests/app/pages/page7.ts index 71c5f23733..ee632e193c 100644 --- a/tests/app/pages/page7.ts +++ b/tests/app/pages/page7.ts @@ -1,6 +1,6 @@ -import * as pages from "tns-core-modules/ui/page"; -import * as buttons from "tns-core-modules/ui/button"; -import { VerticalAlignment } from "tns-core-modules/ui/core/view"; +import * as pages from "@nativescript/core/ui/page"; +import * as buttons from "@nativescript/core/ui/button"; +import { VerticalAlignment } from "@nativescript/core/ui/core/view"; export function createPage() { var page = new pages.Page(); diff --git a/tests/app/pages/page8.ts b/tests/app/pages/page8.ts index 244d9cfc5f..598d54001e 100644 --- a/tests/app/pages/page8.ts +++ b/tests/app/pages/page8.ts @@ -1,11 +1,11 @@ -import * as btns from "tns-core-modules/ui/button"; -import * as pages from "tns-core-modules/ui/page"; -import * as stacks from "tns-core-modules/ui/layouts/stack-layout"; -import * as scroll from "tns-core-modules/ui/scroll-view"; -import * as textView from "tns-core-modules/ui/text-view"; -import * as timer from "tns-core-modules/timer"; -import * as http from "tns-core-modules/http"; -import * as trace from "tns-core-modules/trace"; +import * as btns from "@nativescript/core/ui/button"; +import * as pages from "@nativescript/core/ui/page"; +import * as stacks from "@nativescript/core/ui/layouts/stack-layout"; +import * as scroll from "@nativescript/core/ui/scroll-view"; +import * as textView from "@nativescript/core/ui/text-view"; +import * as timer from "@nativescript/core/timer"; +import * as http from "@nativescript/core/http"; +import * as trace from "@nativescript/core/trace"; trace.enable(); trace.setCategories(trace.categories.Style); diff --git a/tests/app/pages/page9.ts b/tests/app/pages/page9.ts index 06a0154b90..4b7eceaaa4 100644 --- a/tests/app/pages/page9.ts +++ b/tests/app/pages/page9.ts @@ -1,7 +1,7 @@ -import * as pages from "tns-core-modules/ui/page"; -import * as imageSource from "tns-core-modules/image-source"; -import * as gridModule from "tns-core-modules/ui/layouts/grid-layout"; -import * as img from "tns-core-modules/ui/image"; +import * as pages from "@nativescript/core/ui/page"; +import * as imageSource from "@nativescript/core/image-source"; +import * as gridModule from "@nativescript/core/ui/layouts/grid-layout"; +import * as img from "@nativescript/core/ui/image"; export function createPage() { var grid = new gridModule.GridLayout(); diff --git a/tests/app/pages/performance-test/start.ts b/tests/app/pages/performance-test/start.ts index c2a56247c4..5f0bc8a92f 100644 --- a/tests/app/pages/performance-test/start.ts +++ b/tests/app/pages/performance-test/start.ts @@ -1,5 +1,5 @@ -import * as frame from "tns-core-modules/ui/frame"; -import * as observable from "tns-core-modules/data/observable"; +import * as frame from "@nativescript/core/ui/frame"; +import * as observable from "@nativescript/core/data/observable"; declare function __startCPUProfiler(name: string); diff --git a/tests/app/pages/performance-test/test-big.ts b/tests/app/pages/performance-test/test-big.ts index 7e170599eb..e1dccbb894 100644 --- a/tests/app/pages/performance-test/test-big.ts +++ b/tests/app/pages/performance-test/test-big.ts @@ -1,4 +1,4 @@ -import * as observable from "tns-core-modules/data/observable"; +import * as observable from "@nativescript/core/data/observable"; declare function __stopCPUProfiler(name: string); diff --git a/tests/app/pages/performance-test/test-small.ts b/tests/app/pages/performance-test/test-small.ts index 97f6451490..b09707ca5d 100644 --- a/tests/app/pages/performance-test/test-small.ts +++ b/tests/app/pages/performance-test/test-small.ts @@ -1,4 +1,4 @@ -import * as observable from "tns-core-modules/data/observable"; +import * as observable from "@nativescript/core/data/observable"; declare function __stopCPUProfiler(name: string); diff --git a/tests/app/pages/property-bindings.ts b/tests/app/pages/property-bindings.ts index 6c6ca5aa20..5317af435e 100644 --- a/tests/app/pages/property-bindings.ts +++ b/tests/app/pages/property-bindings.ts @@ -1,14 +1,14 @@ -import * as btns from "tns-core-modules/ui/button"; -import * as pages from "tns-core-modules/ui/page"; -import * as stacks from "tns-core-modules/ui/layouts/stack-layout"; -import * as scroll from "tns-core-modules/ui/scroll-view"; -import * as textView from "tns-core-modules/ui/text-view"; -import * as labels from "tns-core-modules/ui/label"; -import * as trace from "tns-core-modules/trace"; -import * as gridModule from "tns-core-modules/ui/layouts/grid-layout"; -import * as sliders from "tns-core-modules/ui/slider"; -import * as switches from "tns-core-modules/ui/switch"; -import * as bindable from "tns-core-modules/ui/core/bindable"; +import * as btns from "@nativescript/core/ui/button"; +import * as pages from "@nativescript/core/ui/page"; +import * as stacks from "@nativescript/core/ui/layouts/stack-layout"; +import * as scroll from "@nativescript/core/ui/scroll-view"; +import * as textView from "@nativescript/core/ui/text-view"; +import * as labels from "@nativescript/core/ui/label"; +import * as trace from "@nativescript/core/trace"; +import * as gridModule from "@nativescript/core/ui/layouts/grid-layout"; +import * as sliders from "@nativescript/core/ui/slider"; +import * as switches from "@nativescript/core/ui/switch"; +import * as bindable from "@nativescript/core/ui/core/bindable"; trace.enable(); //trace.setCategories(trace.categories.Style + " ," + trace.categories.Binding); diff --git a/tests/app/pages/tab-view.ts b/tests/app/pages/tab-view.ts index a9a0d90055..7ab4c80c49 100644 --- a/tests/app/pages/tab-view.ts +++ b/tests/app/pages/tab-view.ts @@ -1,4 +1,4 @@ -import { Observable } from "tns-core-modules/data/observable"; +import { Observable } from "@nativescript/core/data/observable"; var vm = new Observable(); diff --git a/tests/app/platform/platform-tests.ts b/tests/app/platform/platform-tests.ts index 7d858d656b..c6b3f87349 100644 --- a/tests/app/platform/platform-tests.ts +++ b/tests/app/platform/platform-tests.ts @@ -1,6 +1,6 @@ import * as TKUnit from "../tk-unit"; -import * as app from "tns-core-modules/application"; -import * as platformModule from "tns-core-modules/platform"; +import * as app from "@nativescript/core/application"; +import * as platformModule from "@nativescript/core/platform"; export function test_platform() { let expectedPlatform; diff --git a/tests/app/profiling/profiling-tests.ts b/tests/app/profiling/profiling-tests.ts index c2f0536c38..6f532a95d7 100644 --- a/tests/app/profiling/profiling-tests.ts +++ b/tests/app/profiling/profiling-tests.ts @@ -1,5 +1,5 @@ import { assert, assertEqual, assertFalse, assertNull, assertTrue, assertThrows } from "../tk-unit"; -import { enable, disable, profile, time, start, stop, timer, isRunning, resetProfiles } from "tns-core-modules/profiling"; +import { enable, disable, profile, time, start, stop, timer, isRunning, resetProfiles } from "@nativescript/core/profiling"; enable(); class TestClass { diff --git a/tests/app/test-runner.ts b/tests/app/test-runner.ts index 8bc3ef1897..990a10d2a8 100644 --- a/tests/app/test-runner.ts +++ b/tests/app/test-runner.ts @@ -2,15 +2,15 @@ import * as TKUnit from './tk-unit'; import './ui-test'; -import { _resetRootView } from 'tns-core-modules/application'; -import * as platform from 'tns-core-modules/platform'; -import { messageType } from 'tns-core-modules/trace'; -import { Button } from 'tns-core-modules/ui/button'; -import { Frame, topmost } from 'tns-core-modules/ui/frame'; -import { StackLayout } from 'tns-core-modules/ui/layouts/stack-layout'; -import { Page } from 'tns-core-modules/ui/page'; -import { TextView } from 'tns-core-modules/ui/text-view'; -import { ios } from 'tns-core-modules/utils/utils'; +import { _resetRootView } from '@nativescript/core/application'; +import * as platform from '@nativescript/core/platform'; +import { messageType } from '@nativescript/core/trace'; +import { Button } from '@nativescript/core/ui/button'; +import { Frame, topmost } from '@nativescript/core/ui/frame'; +import { StackLayout } from '@nativescript/core/ui/layouts/stack-layout'; +import { Page } from '@nativescript/core/ui/page'; +import { TextView } from '@nativescript/core/ui/text-view'; +import { ios } from '@nativescript/core/utils/utils'; Frame.defaultAnimatedNavigation = false; diff --git a/tests/app/text/formatted-string-tests.ts b/tests/app/text/formatted-string-tests.ts index a66f28d5b2..46dda848b2 100644 --- a/tests/app/text/formatted-string-tests.ts +++ b/tests/app/text/formatted-string-tests.ts @@ -1,10 +1,10 @@ // >> formatted-string-require -import { FormattedString } from "tns-core-modules/text/formatted-string"; -import { Span } from "tns-core-modules/text/span"; +import { FormattedString } from "@nativescript/core/text/formatted-string"; +import { Span } from "@nativescript/core/text/span"; // << formatted-string-require -import { Observable } from "tns-core-modules/data/observable"; -import { Label } from "tns-core-modules/ui/label"; +import { Observable } from "@nativescript/core/data/observable"; +import { Label } from "@nativescript/core/ui/label"; import * as TKUnit from "../tk-unit"; export function test_FormattedString_RemovesEventListeners_for_spans() { diff --git a/tests/app/timer/timer-tests.ts b/tests/app/timer/timer-tests.ts index c0d9f125f4..1b5c37044b 100644 --- a/tests/app/timer/timer-tests.ts +++ b/tests/app/timer/timer-tests.ts @@ -1,5 +1,5 @@ import * as TKUnit from "../tk-unit"; -import * as timer from "tns-core-modules/timer"; +import * as timer from "@nativescript/core/timer"; // >> timer-require // require("globals"); diff --git a/tests/app/tk-unit.ts b/tests/app/tk-unit.ts index 9f81fdaf8d..3bf51f59d8 100644 --- a/tests/app/tk-unit.ts +++ b/tests/app/tk-unit.ts @@ -11,11 +11,11 @@ */ -import * as application from "tns-core-modules/application"; -import * as platform from "tns-core-modules/platform"; -import * as timer from "tns-core-modules/timer"; -import * as trace from "tns-core-modules/trace"; -import * as types from "tns-core-modules/utils/types"; +import * as application from "@nativescript/core/application"; +import * as platform from "@nativescript/core/platform"; +import * as timer from "@nativescript/core/timer"; +import * as trace from "@nativescript/core/trace"; +import * as types from "@nativescript/core/utils/types"; const sdkVersion = parseInt(platform.device.sdkVersion); diff --git a/tests/app/trace/trace-error-tests.ts b/tests/app/trace/trace-error-tests.ts index 48f9a8f333..413ab550e0 100644 --- a/tests/app/trace/trace-error-tests.ts +++ b/tests/app/trace/trace-error-tests.ts @@ -1,7 +1,7 @@ import { ErrorHandler, getErrorHandler, setErrorHandler, DefaultErrorHandler, error as traceError -} from "tns-core-modules/trace"; +} from "@nativescript/core/trace"; import * as TKUnit from "../tk-unit"; let cachedErrorHandler: ErrorHandler; diff --git a/tests/app/trace/trace-tests.ts b/tests/app/trace/trace-tests.ts index 2e71e95854..d32e7f4443 100644 --- a/tests/app/trace/trace-tests.ts +++ b/tests/app/trace/trace-tests.ts @@ -1,5 +1,5 @@ // >> trace-require -import * as trace from "tns-core-modules/trace"; +import * as trace from "@nativescript/core/trace"; // << trace-require export var test_DummyTestForSnippetOnly0 = function () { diff --git a/tests/app/ui-helper.ts b/tests/app/ui-helper.ts index 2dba322c9b..c65571ca77 100644 --- a/tests/app/ui-helper.ts +++ b/tests/app/ui-helper.ts @@ -1,16 +1,16 @@ -import { Color } from "tns-core-modules/color"; -import { FormattedString, Span } from "tns-core-modules/text/formatted-string"; -import { ActionBar } from "tns-core-modules/ui/action-bar"; +import { Color } from "@nativescript/core/color"; +import { FormattedString, Span } from "@nativescript/core/text/formatted-string"; +import { ActionBar } from "@nativescript/core/ui/action-bar"; // TODO: Remove this and get it from global to decouple builder for angular -import { createViewFromEntry } from "tns-core-modules/ui/builder"; -import { Button } from "tns-core-modules/ui/button"; -import { isIOS, unsetValue, View, ViewBase } from "tns-core-modules/ui/core/view"; -import * as frame from "tns-core-modules/ui/frame"; -import { LayoutBase } from "tns-core-modules/ui/layouts/layout-base"; -import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout"; -import { Page } from "tns-core-modules/ui/page"; -import { TabView, TabViewItem } from "tns-core-modules/ui/tab-view"; -import * as utils from "tns-core-modules/utils/utils"; +import { createViewFromEntry } from "@nativescript/core/ui/builder"; +import { Button } from "@nativescript/core/ui/button"; +import { isIOS, unsetValue, View, ViewBase } from "@nativescript/core/ui/core/view"; +import * as frame from "@nativescript/core/ui/frame"; +import { LayoutBase } from "@nativescript/core/ui/layouts/layout-base"; +import { StackLayout } from "@nativescript/core/ui/layouts/stack-layout"; +import { Page } from "@nativescript/core/ui/page"; +import { TabView, TabViewItem } from "@nativescript/core/ui/tab-view"; +import * as utils from "@nativescript/core/utils/utils"; import * as TKUnit from "./tk-unit"; diff --git a/tests/app/ui-test.ts b/tests/app/ui-test.ts index 3d32975364..45f54dd97b 100644 --- a/tests/app/ui-test.ts +++ b/tests/app/ui-test.ts @@ -1,6 +1,6 @@ -import * as trace from "tns-core-modules/trace"; -import { View } from "tns-core-modules/ui/core/view"; -import { Page } from "tns-core-modules/ui/page"; +import * as trace from "@nativescript/core/trace"; +import { View } from "@nativescript/core/ui/core/view"; +import { Page } from "@nativescript/core/ui/page"; import * as TKUnit from "./tk-unit"; import * as navHelper from "./ui-helper"; diff --git a/tests/app/ui/action-bar/ActionBar_NumberAsText.ts b/tests/app/ui/action-bar/ActionBar_NumberAsText.ts index 800acdcc40..b13f352204 100644 --- a/tests/app/ui/action-bar/ActionBar_NumberAsText.ts +++ b/tests/app/ui/action-bar/ActionBar_NumberAsText.ts @@ -1,4 +1,4 @@ -import * as frame from "tns-core-modules/ui/frame"; +import * as frame from "@nativescript/core/ui/frame"; export function buttonTap(args) { frame.topmost().goBack(); diff --git a/tests/app/ui/action-bar/ActionBar_NumberAsTitle.ts b/tests/app/ui/action-bar/ActionBar_NumberAsTitle.ts index 800acdcc40..b13f352204 100644 --- a/tests/app/ui/action-bar/ActionBar_NumberAsTitle.ts +++ b/tests/app/ui/action-bar/ActionBar_NumberAsTitle.ts @@ -1,4 +1,4 @@ -import * as frame from "tns-core-modules/ui/frame"; +import * as frame from "@nativescript/core/ui/frame"; export function buttonTap(args) { frame.topmost().goBack(); diff --git a/tests/app/ui/action-bar/action-bar-tests-common.ts b/tests/app/ui/action-bar/action-bar-tests-common.ts index 7be77399bf..82668864d0 100644 --- a/tests/app/ui/action-bar/action-bar-tests-common.ts +++ b/tests/app/ui/action-bar/action-bar-tests-common.ts @@ -1,15 +1,15 @@ import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; -import * as builder from "tns-core-modules/ui/builder"; -import { Label } from "tns-core-modules/ui/label"; -import { Button } from "tns-core-modules/ui/button"; -import { Page } from "tns-core-modules/ui/page"; -import { View, isIOS } from "tns-core-modules/ui/core/view"; -import { fromObject } from "tns-core-modules/data/observable"; -import { topmost } from "tns-core-modules/ui/frame"; +import * as builder from "@nativescript/core/ui/builder"; +import { Label } from "@nativescript/core/ui/label"; +import { Button } from "@nativescript/core/ui/button"; +import { Page } from "@nativescript/core/ui/page"; +import { View, isIOS } from "@nativescript/core/ui/core/view"; +import { fromObject } from "@nativescript/core/data/observable"; +import { topmost } from "@nativescript/core/ui/frame"; // >> actionbar-common-require -import * as actionBarModule from "tns-core-modules/ui/action-bar"; +import * as actionBarModule from "@nativescript/core/ui/action-bar"; // << actionbar-common-require export function test_actionItem_inherit_bindingContext() { diff --git a/tests/app/ui/action-bar/action-bar-tests.android.ts b/tests/app/ui/action-bar/action-bar-tests.android.ts index 6952b2f660..2154739226 100644 --- a/tests/app/ui/action-bar/action-bar-tests.android.ts +++ b/tests/app/ui/action-bar/action-bar-tests.android.ts @@ -1,8 +1,8 @@ import * as TKUnit from "../../tk-unit"; import { createPageAndNavigate } from "./action-bar-tests-common"; -import { ActionItem } from "tns-core-modules/ui/action-bar"; -import { Visibility } from "tns-core-modules/ui/enums"; -import { Button } from "tns-core-modules/ui/button"; +import { ActionItem } from "@nativescript/core/ui/action-bar"; +import { Visibility } from "@nativescript/core/ui/enums"; +import { Button } from "@nativescript/core/ui/button"; export * from "./action-bar-tests-common"; diff --git a/tests/app/ui/action-bar/action-bar-tests.ios.ts b/tests/app/ui/action-bar/action-bar-tests.ios.ts index e2addb7878..dbd804fefb 100644 --- a/tests/app/ui/action-bar/action-bar-tests.ios.ts +++ b/tests/app/ui/action-bar/action-bar-tests.ios.ts @@ -1,11 +1,11 @@ import { createPageAndNavigate } from "./action-bar-tests-common"; -import * as PageModule from "tns-core-modules/ui/page"; +import * as PageModule from "@nativescript/core/ui/page"; import * as TKUnit from "../../tk-unit"; -import * as LabelModule from "tns-core-modules/ui/label"; +import * as LabelModule from "@nativescript/core/ui/label"; import * as helper from "../../ui-helper"; -import * as view from "tns-core-modules/ui/core/view"; -import * as actionBar from "tns-core-modules/ui/action-bar"; -import { Visibility } from "tns-core-modules/ui/enums"; +import * as view from "@nativescript/core/ui/core/view"; +import * as actionBar from "@nativescript/core/ui/action-bar"; +import { Visibility } from "@nativescript/core/ui/enums"; export * from "./action-bar-tests-common"; diff --git a/tests/app/ui/activity-indicator/activity-indicator-tests.ts b/tests/app/ui/activity-indicator/activity-indicator-tests.ts index ad658e72a3..049eff9540 100644 --- a/tests/app/ui/activity-indicator/activity-indicator-tests.ts +++ b/tests/app/ui/activity-indicator/activity-indicator-tests.ts @@ -1,12 +1,12 @@ import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; -import * as viewModule from "tns-core-modules/ui/core/view"; -import * as imageModule from "tns-core-modules/ui/image"; -import * as platform from "tns-core-modules/platform"; -import * as color from "tns-core-modules/color"; +import * as viewModule from "@nativescript/core/ui/core/view"; +import * as imageModule from "@nativescript/core/ui/image"; +import * as platform from "@nativescript/core/platform"; +import * as color from "@nativescript/core/color"; // >> activity-indicator-require -import * as activityIndicatorModule from "tns-core-modules/ui/activity-indicator"; +import * as activityIndicatorModule from "@nativescript/core/ui/activity-indicator"; // << activity-indicator-require export function test_recycling() { diff --git a/tests/app/ui/animation/animation-tests.ts b/tests/app/ui/animation/animation-tests.ts index 4b3048bdb8..faf7f883d2 100644 --- a/tests/app/ui/animation/animation-tests.ts +++ b/tests/app/ui/animation/animation-tests.ts @@ -1,15 +1,15 @@ import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; -import * as viewModule from "tns-core-modules/ui/core/view"; -import { Label } from "tns-core-modules/ui/label"; -import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout"; -import * as colorModule from "tns-core-modules/color"; -import * as enums from "tns-core-modules/ui/enums"; -import { AnimationPromise } from "tns-core-modules/ui/animation"; +import * as viewModule from "@nativescript/core/ui/core/view"; +import { Label } from "@nativescript/core/ui/label"; +import { StackLayout } from "@nativescript/core/ui/layouts/stack-layout"; +import * as colorModule from "@nativescript/core/color"; +import * as enums from "@nativescript/core/ui/enums"; +import { AnimationPromise } from "@nativescript/core/ui/animation"; // >> animation-require -import * as animation from "tns-core-modules/ui/animation"; -import { PercentLength } from "tns-core-modules/ui/styling/style-properties"; +import * as animation from "@nativescript/core/ui/animation"; +import { PercentLength } from "@nativescript/core/ui/styling/style-properties"; // << animation-require function prepareTest(parentHeight?: number, parentWidth?: number): Label { diff --git a/tests/app/ui/animation/css-animation-tests.ts b/tests/app/ui/animation/css-animation-tests.ts index 01e2cf8012..33c9a32ef7 100644 --- a/tests/app/ui/animation/css-animation-tests.ts +++ b/tests/app/ui/animation/css-animation-tests.ts @@ -1,13 +1,13 @@ import * as TKUnit from "../../tk-unit"; -import * as styleScope from "tns-core-modules/ui/styling/style-scope"; -import * as keyframeAnimation from "tns-core-modules/ui/animation/keyframe-animation"; -import * as enums from "tns-core-modules/ui/enums"; +import * as styleScope from "@nativescript/core/ui/styling/style-scope"; +import * as keyframeAnimation from "@nativescript/core/ui/animation/keyframe-animation"; +import * as enums from "@nativescript/core/ui/enums"; import * as helper from "../../ui-helper"; -import * as stackModule from "tns-core-modules/ui/layouts/stack-layout"; -import * as labelModule from "tns-core-modules/ui/label"; -import * as color from "tns-core-modules/color"; +import * as stackModule from "@nativescript/core/ui/layouts/stack-layout"; +import * as labelModule from "@nativescript/core/ui/label"; +import * as color from "@nativescript/core/color"; -import { SelectorCore } from "tns-core-modules/ui/styling/css-selector"; +import { SelectorCore } from "@nativescript/core/ui/styling/css-selector"; const DELTA = 1; const SCALE_DELTA = 0.001; diff --git a/tests/app/ui/border/border-tests.ts b/tests/app/ui/border/border-tests.ts index ab545c0345..c2542f8cb6 100644 --- a/tests/app/ui/border/border-tests.ts +++ b/tests/app/ui/border/border-tests.ts @@ -1,5 +1,5 @@ // >> border-require -import { Border } from "tns-core-modules/ui/border"; +import { Border } from "@nativescript/core/ui/border"; // << border-require import * as helper from "../../ui-helper"; diff --git a/tests/app/ui/bottom-navigation/bottom-navigation-navigation-tests.ts b/tests/app/ui/bottom-navigation/bottom-navigation-navigation-tests.ts index a72d3e2e63..01d4a3a1ca 100644 --- a/tests/app/ui/bottom-navigation/bottom-navigation-navigation-tests.ts +++ b/tests/app/ui/bottom-navigation/bottom-navigation-navigation-tests.ts @@ -1,12 +1,12 @@ import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; -import { Label } from "tns-core-modules/ui/label"; -import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout"; -import * as frameModule from "tns-core-modules/ui/frame"; -import { Page } from "tns-core-modules/ui/page"; -import { ListView, ItemEventData } from "tns-core-modules/ui/list-view"; -import { BottomNavigation, TabContentItem, TabStrip, TabStripItem } from "tns-core-modules/ui/bottom-navigation"; -import { Button } from "tns-core-modules/ui/button"; +import { Label } from "@nativescript/core/ui/label"; +import { StackLayout } from "@nativescript/core/ui/layouts/stack-layout"; +import * as frameModule from "@nativescript/core/ui/frame"; +import { Page } from "@nativescript/core/ui/page"; +import { ListView, ItemEventData } from "@nativescript/core/ui/list-view"; +import { BottomNavigation, TabContentItem, TabStrip, TabStripItem } from "@nativescript/core/ui/bottom-navigation"; +import { Button } from "@nativescript/core/ui/button"; var ASYNC = 2; diff --git a/tests/app/ui/bottom-navigation/bottom-navigation-root-tests.ts b/tests/app/ui/bottom-navigation/bottom-navigation-root-tests.ts index c92841c23c..52a918279b 100644 --- a/tests/app/ui/bottom-navigation/bottom-navigation-root-tests.ts +++ b/tests/app/ui/bottom-navigation/bottom-navigation-root-tests.ts @@ -1,10 +1,10 @@ import * as TKUnit from "../../tk-unit"; -import { isAndroid } from "tns-core-modules/platform"; -import { _resetRootView } from "tns-core-modules/application/"; -import { Frame, NavigationEntry, topmost } from "tns-core-modules/ui/frame"; -import { Page } from "tns-core-modules/ui/page"; -// import { TabView, TabViewItem } from "tns-core-modules/ui/tab-view"; -import { BottomNavigation, TabContentItem, TabStrip, TabStripItem } from "tns-core-modules/ui/bottom-navigation"; +import { isAndroid } from "@nativescript/core/platform"; +import { _resetRootView } from "@nativescript/core/application/"; +import { Frame, NavigationEntry, topmost } from "@nativescript/core/ui/frame"; +import { Page } from "@nativescript/core/ui/page"; +// import { TabView, TabViewItem } from "@nativescript/core/ui/tab-view"; +import { BottomNavigation, TabContentItem, TabStrip, TabStripItem } from "@nativescript/core/ui/bottom-navigation"; function waitUntilNavigatedToMaxTimeout(pages: Page[], action: Function) { const maxTimeout = 8; diff --git a/tests/app/ui/bottom-navigation/bottom-navigation-tests-native.android.ts b/tests/app/ui/bottom-navigation/bottom-navigation-tests-native.android.ts index b58d76b593..111a86b0d0 100644 --- a/tests/app/ui/bottom-navigation/bottom-navigation-tests-native.android.ts +++ b/tests/app/ui/bottom-navigation/bottom-navigation-tests-native.android.ts @@ -1,4 +1,4 @@ -import { BottomNavigation } from "tns-core-modules/ui/bottom-navigation"; +import { BottomNavigation } from "@nativescript/core/ui/bottom-navigation"; export function getNativeTabCount(tabView: BottomNavigation): number { // there is no native tab content view implementation for Android Bottom Navigation diff --git a/tests/app/ui/bottom-navigation/bottom-navigation-tests-native.d.ts b/tests/app/ui/bottom-navigation/bottom-navigation-tests-native.d.ts index 50f6e9cfb3..bff328cde2 100644 --- a/tests/app/ui/bottom-navigation/bottom-navigation-tests-native.d.ts +++ b/tests/app/ui/bottom-navigation/bottom-navigation-tests-native.d.ts @@ -1,5 +1,5 @@ //@private -import { BottomNavigation } from "tns-core-modules/ui/bottom-navigation"; +import { BottomNavigation } from "@nativescript/core/ui/bottom-navigation"; export function getNativeTabCount(tabView: BottomNavigation): number; export function selectNativeTab(tabView: BottomNavigation, index: number): void; diff --git a/tests/app/ui/bottom-navigation/bottom-navigation-tests-native.ios.ts b/tests/app/ui/bottom-navigation/bottom-navigation-tests-native.ios.ts index 5d197bd125..c7a3548a94 100644 --- a/tests/app/ui/bottom-navigation/bottom-navigation-tests-native.ios.ts +++ b/tests/app/ui/bottom-navigation/bottom-navigation-tests-native.ios.ts @@ -1,4 +1,4 @@ -import tabViewModule = require("tns-core-modules/ui/tab-view"); +import tabViewModule = require("@nativescript/core/ui/tab-view"); export function getNativeTabCount(tabView: tabViewModule.TabView): number { if (!tabView.ios.viewControllers) { diff --git a/tests/app/ui/bottom-navigation/bottom-navigation-tests.ts b/tests/app/ui/bottom-navigation/bottom-navigation-tests.ts index c0afbaf0d2..61d758ea83 100644 --- a/tests/app/ui/bottom-navigation/bottom-navigation-tests.ts +++ b/tests/app/ui/bottom-navigation/bottom-navigation-tests.ts @@ -1,10 +1,10 @@ import { UITest } from "../../ui-test"; -import { Label } from "tns-core-modules/ui/label"; +import { Label } from "@nativescript/core/ui/label"; import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; import * as tabViewTestsNative from "./bottom-navigation-tests-native"; -import { BottomNavigation, TabContentItem, TabStrip, TabStripItem, SelectedIndexChangedEventData } from "tns-core-modules/ui/bottom-navigation"; +import { BottomNavigation, TabContentItem, TabStrip, TabStripItem, SelectedIndexChangedEventData } from "@nativescript/core/ui/bottom-navigation"; export class BottomNavigationTest extends UITest { diff --git a/tests/app/ui/builder/builder-file-qualifiers-tests.ts b/tests/app/ui/builder/builder-file-qualifiers-tests.ts index 816d0fee53..d0517f7dbc 100644 --- a/tests/app/ui/builder/builder-file-qualifiers-tests.ts +++ b/tests/app/ui/builder/builder-file-qualifiers-tests.ts @@ -1,9 +1,9 @@ -import { createViewFromEntry } from "tns-core-modules/ui/builder"; +import { createViewFromEntry } from "@nativescript/core/ui/builder"; import { assertEqual, assertNull, assertThrows, assertNotNull, assert } from "../../tk-unit"; -import { _setResolver, ModuleNameResolver, PlatformContext } from "tns-core-modules/module-name-resolver"; -import { Button } from "tns-core-modules/ui/button"; +import { _setResolver, ModuleNameResolver, PlatformContext } from "@nativescript/core/module-name-resolver"; +import { Button } from "@nativescript/core/ui/button"; import { navigate } from "../../ui-helper"; -import { Page, Color } from "tns-core-modules/ui/page"; +import { Page, Color } from "@nativescript/core/ui/page"; const testPrefix = "bundle-file-qualifiers-tests"; let modulesToCleanup: string[] = []; diff --git a/tests/app/ui/builder/builder-tests.ts b/tests/app/ui/builder/builder-tests.ts index d6f303549d..399371254d 100644 --- a/tests/app/ui/builder/builder-tests.ts +++ b/tests/app/ui/builder/builder-tests.ts @@ -1,5 +1,5 @@ -import { createViewFromEntry } from "tns-core-modules/ui/builder"; -import { sanitizeModuleName } from "tns-core-modules/ui/builder/module-name-sanitizer"; +import { createViewFromEntry } from "@nativescript/core/ui/builder"; +import { sanitizeModuleName } from "@nativescript/core/ui/builder/module-name-sanitizer"; import { assertEqual, assertNull, assertThrows, assertNotNull } from "../../tk-unit"; diff --git a/tests/app/ui/button/button-tests-native.android.ts b/tests/app/ui/button/button-tests-native.android.ts index d5f41db618..e3f9eecfa9 100644 --- a/tests/app/ui/button/button-tests-native.android.ts +++ b/tests/app/ui/button/button-tests-native.android.ts @@ -1,7 +1,7 @@ -import * as buttonModule from "tns-core-modules/ui/button"; -import * as colorModule from "tns-core-modules/color"; -import * as utilsModule from "tns-core-modules/utils/utils"; -import * as enums from "tns-core-modules/ui/enums"; +import * as buttonModule from "@nativescript/core/ui/button"; +import * as colorModule from "@nativescript/core/color"; +import * as utilsModule from "@nativescript/core/utils/utils"; +import * as enums from "@nativescript/core/ui/enums"; export function getNativeText(button: buttonModule.Button): string { return button.android.getText(); diff --git a/tests/app/ui/button/button-tests-native.d.ts b/tests/app/ui/button/button-tests-native.d.ts index 3cf43e2bf5..ab5ed07ac7 100644 --- a/tests/app/ui/button/button-tests-native.d.ts +++ b/tests/app/ui/button/button-tests-native.d.ts @@ -1,6 +1,6 @@ //@private -import * as buttonModule from "tns-core-modules/ui/button"; -import * as colorModule from "tns-core-modules/color"; +import * as buttonModule from "@nativescript/core/ui/button"; +import * as colorModule from "@nativescript/core/color"; export declare function getNativeText(button: buttonModule.Button): string; export declare function getNativeTextWrap(button: buttonModule.Button): boolean; diff --git a/tests/app/ui/button/button-tests-native.ios.ts b/tests/app/ui/button/button-tests-native.ios.ts index ced55b4c02..348f79ba1f 100644 --- a/tests/app/ui/button/button-tests-native.ios.ts +++ b/tests/app/ui/button/button-tests-native.ios.ts @@ -1,6 +1,6 @@ -import * as buttonModule from "tns-core-modules/ui/button"; -import * as colorModule from "tns-core-modules/color"; -import * as enums from "tns-core-modules/ui/enums"; +import * as buttonModule from "@nativescript/core/ui/button"; +import * as colorModule from "@nativescript/core/color"; +import * as enums from "@nativescript/core/ui/enums"; import { getColor } from "../../ui-helper"; export function getNativeText(button: buttonModule.Button): string { diff --git a/tests/app/ui/button/button-tests.ts b/tests/app/ui/button/button-tests.ts index a3119ca092..cd87b9472c 100644 --- a/tests/app/ui/button/button-tests.ts +++ b/tests/app/ui/button/button-tests.ts @@ -1,19 +1,19 @@ import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; -import * as viewModule from "tns-core-modules/ui/core/view"; -import * as pagesModule from "tns-core-modules/ui/page"; +import * as viewModule from "@nativescript/core/ui/core/view"; +import * as pagesModule from "@nativescript/core/ui/page"; import * as buttonTestsNative from "./button-tests-native"; -import * as colorModule from "tns-core-modules/color"; -import * as formattedStringModule from "tns-core-modules/text/formatted-string"; -import * as spanModule from "tns-core-modules/text/span"; +import * as colorModule from "@nativescript/core/color"; +import * as formattedStringModule from "@nativescript/core/text/formatted-string"; +import * as spanModule from "@nativescript/core/text/span"; // >> button-require -import * as buttonModule from "tns-core-modules/ui/button"; +import * as buttonModule from "@nativescript/core/ui/button"; // << button-require // >> button-require-others -import * as bindable from "tns-core-modules/ui/core/bindable"; -import * as observable from "tns-core-modules/data/observable"; +import * as bindable from "@nativescript/core/ui/core/bindable"; +import * as observable from "@nativescript/core/data/observable"; // << button-require-others export function test_recycling() { diff --git a/tests/app/ui/core/bindable/bindable-tests.ts b/tests/app/ui/core/bindable/bindable-tests.ts index 80d913e525..38e1f3639d 100644 --- a/tests/app/ui/core/bindable/bindable-tests.ts +++ b/tests/app/ui/core/bindable/bindable-tests.ts @@ -1,19 +1,19 @@ -import { Observable, fromObject, fromObjectRecursive } from "tns-core-modules/data/observable"; -import { ViewBase } from "tns-core-modules/ui/core/view-base"; -import { BindingOptions } from "tns-core-modules/ui/core/bindable"; +import { Observable, fromObject, fromObjectRecursive } from "@nativescript/core/data/observable"; +import { ViewBase } from "@nativescript/core/ui/core/view-base"; +import { BindingOptions } from "@nativescript/core/ui/core/bindable"; import * as TKUnit from "../../../tk-unit"; -import * as types from "tns-core-modules/utils/types"; +import * as types from "@nativescript/core/utils/types"; import * as helper from "../../../ui-helper"; -import * as utils from "tns-core-modules/utils/utils"; -import * as bindingBuilder from "tns-core-modules/ui/builder/binding-builder"; -import * as appModule from "tns-core-modules/application"; -import * as trace from "tns-core-modules/trace"; -import { View } from "tns-core-modules/ui/core/view"; -import { Button } from "tns-core-modules/ui/button"; -import { Page } from "tns-core-modules/ui/page"; -import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout"; -import { Label } from "tns-core-modules/ui/label"; -import { TextField } from "tns-core-modules/ui/text-field"; +import * as utils from "@nativescript/core/utils/utils"; +import * as bindingBuilder from "@nativescript/core/ui/builder/binding-builder"; +import * as appModule from "@nativescript/core/application"; +import * as trace from "@nativescript/core/trace"; +import { View } from "@nativescript/core/ui/core/view"; +import { Button } from "@nativescript/core/ui/button"; +import { Page } from "@nativescript/core/ui/page"; +import { StackLayout } from "@nativescript/core/ui/layouts/stack-layout"; +import { Label } from "@nativescript/core/ui/label"; +import { TextField } from "@nativescript/core/ui/text-field"; // // For information and examples how to use bindings please refer to special [**Data binding**](../../../../bindings.md) topic. diff --git a/tests/app/ui/core/bindable/binding-expressions-tests.ts b/tests/app/ui/core/bindable/binding-expressions-tests.ts index 6892825e2d..1351db6e20 100644 --- a/tests/app/ui/core/bindable/binding-expressions-tests.ts +++ b/tests/app/ui/core/bindable/binding-expressions-tests.ts @@ -1,5 +1,5 @@ -import * as frameModule from "tns-core-modules/ui/frame"; -import * as textFieldModule from "tns-core-modules/ui/text-field"; +import * as frameModule from "@nativescript/core/ui/frame"; +import * as textFieldModule from "@nativescript/core/ui/text-field"; import * as helper from "../../../ui-helper"; export var test_BindingExpressions_ArrayAccess = function () { diff --git a/tests/app/ui/core/bindable/bindingContext_testPage.ts b/tests/app/ui/core/bindable/bindingContext_testPage.ts index fdbacdc643..3d01766dcf 100644 --- a/tests/app/ui/core/bindable/bindingContext_testPage.ts +++ b/tests/app/ui/core/bindable/bindingContext_testPage.ts @@ -1,5 +1,5 @@ -import * as observableModule from "tns-core-modules/data/observable"; -import * as pageModule from "tns-core-modules/ui/page"; +import * as observableModule from "@nativescript/core/data/observable"; +import * as pageModule from "@nativescript/core/ui/page"; class MainViewModel extends observableModule.Observable { private _item: any; diff --git a/tests/app/ui/core/bindable/bindingContext_testPage1.ts b/tests/app/ui/core/bindable/bindingContext_testPage1.ts index 88eee134c2..58240855a7 100644 --- a/tests/app/ui/core/bindable/bindingContext_testPage1.ts +++ b/tests/app/ui/core/bindable/bindingContext_testPage1.ts @@ -1,5 +1,5 @@ -import * as observable from "tns-core-modules/data/observable"; -import * as pageModule from "tns-core-modules/ui/page"; +import * as observable from "@nativescript/core/data/observable"; +import * as pageModule from "@nativescript/core/ui/page"; function loadViewModel() { viewModel.set("testProperty", "Alabala"); diff --git a/tests/app/ui/core/bindable/bindingContext_testPage2.ts b/tests/app/ui/core/bindable/bindingContext_testPage2.ts index 6b5e3b0418..15f02273b6 100644 --- a/tests/app/ui/core/bindable/bindingContext_testPage2.ts +++ b/tests/app/ui/core/bindable/bindingContext_testPage2.ts @@ -1,4 +1,4 @@ -import * as pageModule from "tns-core-modules/ui/page"; +import * as pageModule from "@nativescript/core/ui/page"; export function pageNavigatedTo(args: pageModule.NavigatedData) { var page = args.object; diff --git a/tests/app/ui/core/weak-event-listener/weak-event-listener-tests.ts b/tests/app/ui/core/weak-event-listener/weak-event-listener-tests.ts index 663a3a180d..a8ffb800f7 100644 --- a/tests/app/ui/core/weak-event-listener/weak-event-listener-tests.ts +++ b/tests/app/ui/core/weak-event-listener/weak-event-listener-tests.ts @@ -1,6 +1,6 @@ import * as TKUnit from "../../../tk-unit"; -import { Observable, EventData } from "tns-core-modules/data/observable"; -import { addWeakEventListener, removeWeakEventListener } from "tns-core-modules/ui/core/weak-event-listener"; +import { Observable, EventData } from "@nativescript/core/data/observable"; +import { addWeakEventListener, removeWeakEventListener } from "@nativescript/core/ui/core/weak-event-listener"; import { forceGC } from "../../../ui-helper"; class Target { diff --git a/tests/app/ui/date-picker/date-picker-tests-native.android.ts b/tests/app/ui/date-picker/date-picker-tests-native.android.ts index 0b1c4353fe..c8a92a34a2 100644 --- a/tests/app/ui/date-picker/date-picker-tests-native.android.ts +++ b/tests/app/ui/date-picker/date-picker-tests-native.android.ts @@ -1,4 +1,4 @@ -import * as datePickerModule from "tns-core-modules/ui/date-picker"; +import * as datePickerModule from "@nativescript/core/ui/date-picker"; export function getNativeYear(datePicker: datePickerModule.DatePicker): number { return datePicker.android.getYear(); diff --git a/tests/app/ui/date-picker/date-picker-tests-native.d.ts b/tests/app/ui/date-picker/date-picker-tests-native.d.ts index 9682b47385..b34fb4ff63 100644 --- a/tests/app/ui/date-picker/date-picker-tests-native.d.ts +++ b/tests/app/ui/date-picker/date-picker-tests-native.d.ts @@ -1,5 +1,5 @@ //@private -import * as datePickerModule from "tns-core-modules/ui/date-picker"; +import * as datePickerModule from "@nativescript/core/ui/date-picker"; export declare function getNativeYear(datePicker: datePickerModule.DatePicker): number; export declare function getNativeMonth(datePicker: datePickerModule.DatePicker): number; diff --git a/tests/app/ui/date-picker/date-picker-tests-native.ios.ts b/tests/app/ui/date-picker/date-picker-tests-native.ios.ts index 3a3231eac4..f6a9e5bfbf 100644 --- a/tests/app/ui/date-picker/date-picker-tests-native.ios.ts +++ b/tests/app/ui/date-picker/date-picker-tests-native.ios.ts @@ -1,4 +1,4 @@ -import * as datePickerModule from "tns-core-modules/ui/date-picker"; +import * as datePickerModule from "@nativescript/core/ui/date-picker"; export function getNativeYear(datePicker: datePickerModule.DatePicker): number { return NSCalendar.currentCalendar.componentsFromDate(NSCalendarUnit.CalendarUnitYear | NSCalendarUnit.CalendarUnitMonth | NSCalendarUnit.CalendarUnitDay, datePicker.ios.date).year; diff --git a/tests/app/ui/date-picker/date-picker-tests.ts b/tests/app/ui/date-picker/date-picker-tests.ts index f86a4f600b..f4c4520e4f 100644 --- a/tests/app/ui/date-picker/date-picker-tests.ts +++ b/tests/app/ui/date-picker/date-picker-tests.ts @@ -1,11 +1,11 @@ import * as TKUnit from "../../tk-unit"; import * as testModule from "../../ui-test"; import * as datePickerTestsNative from "./date-picker-tests-native"; -import * as color from "tns-core-modules/color"; -import * as platform from "tns-core-modules/platform"; +import * as color from "@nativescript/core/color"; +import * as platform from "@nativescript/core/platform"; // >> date-picker-require -import * as datePickerModule from "tns-core-modules/ui/date-picker"; +import * as datePickerModule from "@nativescript/core/ui/date-picker"; // << date-picker-require import * as helper from "../../ui-helper"; diff --git a/tests/app/ui/dialogs/dialog-tests.ts b/tests/app/ui/dialogs/dialog-tests.ts index ce750b0b2d..722107773e 100644 --- a/tests/app/ui/dialogs/dialog-tests.ts +++ b/tests/app/ui/dialogs/dialog-tests.ts @@ -1,5 +1,5 @@ // >> dialog-require -import * as dialogs from "tns-core-modules/ui/dialogs"; +import * as dialogs from "@nativescript/core/ui/dialogs"; // << dialog-require export function test_DummyTestForSnippetOnly0() { diff --git a/tests/app/ui/frame/frame-tests-common.ts b/tests/app/ui/frame/frame-tests-common.ts index 777cc034ba..e0a178fe25 100644 --- a/tests/app/ui/frame/frame-tests-common.ts +++ b/tests/app/ui/frame/frame-tests-common.ts @@ -1,9 +1,9 @@ // >> frame-require -import { Frame, getFrameById, topmost, NavigationEntry } from "tns-core-modules/ui/frame"; +import { Frame, getFrameById, topmost, NavigationEntry } from "@nativescript/core/ui/frame"; // << frame-require -import { Label } from "tns-core-modules/ui/label"; -import { Page } from "tns-core-modules/ui/page"; +import { Label } from "@nativescript/core/ui/label"; +import { Page } from "@nativescript/core/ui/page"; import * as TKUnit from "../../tk-unit"; const NAV_WAIT = 15; diff --git a/tests/app/ui/frame/frame-tests.android.ts b/tests/app/ui/frame/frame-tests.android.ts index c5b9b0ab84..c981286b62 100644 --- a/tests/app/ui/frame/frame-tests.android.ts +++ b/tests/app/ui/frame/frame-tests.android.ts @@ -1,6 +1,6 @@ -import * as frameModule from "tns-core-modules/ui/frame"; +import * as frameModule from "@nativescript/core/ui/frame"; import * as TKUnit from "../../tk-unit"; -import { unsetValue, PercentLength } from "tns-core-modules/ui/core/view"; +import { unsetValue, PercentLength } from "@nativescript/core/ui/core/view"; export * from "./frame-tests-common"; diff --git a/tests/app/ui/gestures/gestures-tests.ts b/tests/app/ui/gestures/gestures-tests.ts index 5ed7d5cc55..a267318c38 100644 --- a/tests/app/ui/gestures/gestures-tests.ts +++ b/tests/app/ui/gestures/gestures-tests.ts @@ -1,8 +1,8 @@ /* tslint:disable:no-unused-variable */ // >> gestures-require -import * as gestures from "tns-core-modules/ui/gestures"; +import * as gestures from "@nativescript/core/ui/gestures"; // << gestures-require -import * as labelModule from "tns-core-modules/ui/label"; +import * as labelModule from "@nativescript/core/ui/label"; export var test_DummyTestForSnippetOnly0 = function () { // >> gestures-double-tap diff --git a/tests/app/ui/html-view/html-view-tests.ts b/tests/app/ui/html-view/html-view-tests.ts index 9078aa2a86..f5fc5bfff3 100644 --- a/tests/app/ui/html-view/html-view-tests.ts +++ b/tests/app/ui/html-view/html-view-tests.ts @@ -1,9 +1,9 @@ import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; -import * as types from "tns-core-modules/utils/types"; +import * as types from "@nativescript/core/utils/types"; // >> htmlview-require -import * as htmlViewModule from "tns-core-modules/ui/html-view"; +import * as htmlViewModule from "@nativescript/core/ui/html-view"; // << htmlview-require export function test_recycling() { diff --git a/tests/app/ui/image-cache/image-cache-tests.ts b/tests/app/ui/image-cache/image-cache-tests.ts index 29670e6e1f..ba935b89ab 100644 --- a/tests/app/ui/image-cache/image-cache-tests.ts +++ b/tests/app/ui/image-cache/image-cache-tests.ts @@ -1,9 +1,8 @@ -import * as imageCacheModule from "tns-core-modules/ui/image-cache"; -import * as imageSource from "tns-core-modules/image-source"; -import * as types from "tns-core-modules/utils/types"; -import { isAndroid } from "tns-core-modules/platform"; -import { device } from "tns-core-modules/platform"; -import lazy from "tns-core-modules/utils/lazy"; +import * as imageCacheModule from "@nativescript/core/ui/image-cache"; +import * as imageSource from "@nativescript/core/image-source"; +import * as types from "@nativescript/core/utils/types"; +import { isAndroid, device } from "@nativescript/core/platform"; +import lazy from "@nativescript/core/utils/lazy"; import * as TKUnit from "../../tk-unit"; diff --git a/tests/app/ui/image/image-tests.ts b/tests/app/ui/image/image-tests.ts index ddc8b8c343..fe9b3c117c 100644 --- a/tests/app/ui/image/image-tests.ts +++ b/tests/app/ui/image/image-tests.ts @@ -1,24 +1,24 @@ -import { Image } from "tns-core-modules/ui/image"; -import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout"; -import { GridLayout } from "tns-core-modules/ui/layouts/grid-layout"; -import { isIOS, isAndroid } from "tns-core-modules/platform"; -import { PropertyChangeData } from "tns-core-modules/data/observable"; -import * as utils from "tns-core-modules/utils/utils"; +import { Image } from "@nativescript/core/ui/image"; +import { StackLayout } from "@nativescript/core/ui/layouts/stack-layout"; +import { GridLayout } from "@nativescript/core/ui/layouts/grid-layout"; +import { isIOS, isAndroid } from "@nativescript/core/platform"; +import { PropertyChangeData } from "@nativescript/core/data/observable"; +import * as utils from "@nativescript/core/utils/utils"; import * as TKUnit from "../../tk-unit"; import { getColor } from "../../ui-helper"; // >> img-require -import * as ImageModule from "tns-core-modules/ui/image"; +import * as ImageModule from "@nativescript/core/ui/image"; // << img-require -import * as types from "tns-core-modules/utils/types"; -import * as ImageSourceModule from "tns-core-modules/image-source"; -import * as ViewModule from "tns-core-modules/ui/core/view"; +import * as types from "@nativescript/core/utils/types"; +import * as ImageSourceModule from "@nativescript/core/image-source"; +import * as ViewModule from "@nativescript/core/ui/core/view"; import * as helper from "../../ui-helper"; -import * as ObservableModule from "tns-core-modules/data/observable"; -import * as color from "tns-core-modules/color"; -import * as backgroundModule from "tns-core-modules/ui/styling/background"; -import { android as androidApp } from "tns-core-modules/application"; +import * as ObservableModule from "@nativescript/core/data/observable"; +import * as color from "@nativescript/core/color"; +import * as backgroundModule from "@nativescript/core/ui/styling/background"; +import { android as androidApp } from "@nativescript/core/application"; const imagePath = "~/assets/logo.png"; export function test_recycling() { diff --git a/tests/app/ui/label/label-tests-native.android.ts b/tests/app/ui/label/label-tests-native.android.ts index bf194422f1..454c0f80aa 100644 --- a/tests/app/ui/label/label-tests-native.android.ts +++ b/tests/app/ui/label/label-tests-native.android.ts @@ -1,6 +1,6 @@ -import * as labelModule from "tns-core-modules/ui/label"; -import * as enums from "tns-core-modules/ui/enums"; -import * as colorModule from "tns-core-modules/color"; +import * as labelModule from "@nativescript/core/ui/label"; +import * as enums from "@nativescript/core/ui/enums"; +import * as colorModule from "@nativescript/core/color"; export function getNativeTextAlignment(label: labelModule.Label): string { var gravity = label.android.getGravity(); diff --git a/tests/app/ui/label/label-tests-native.d.ts b/tests/app/ui/label/label-tests-native.d.ts index e5b60677d8..ed594a0c81 100644 --- a/tests/app/ui/label/label-tests-native.d.ts +++ b/tests/app/ui/label/label-tests-native.d.ts @@ -1,6 +1,6 @@ //@private -import * as labelModule from "tns-core-modules/ui/label"; -import * as colorModule from "tns-core-modules/color"; +import * as labelModule from "@nativescript/core/ui/label"; +import * as colorModule from "@nativescript/core/color"; export declare function getNativeTextAlignment(label: labelModule.Label): string; diff --git a/tests/app/ui/label/label-tests-native.ios.ts b/tests/app/ui/label/label-tests-native.ios.ts index 2cabc7fcae..cc5258ca16 100644 --- a/tests/app/ui/label/label-tests-native.ios.ts +++ b/tests/app/ui/label/label-tests-native.ios.ts @@ -1,6 +1,6 @@ -import * as labelModule from "tns-core-modules/ui/label"; -import * as enums from "tns-core-modules/ui/enums"; -import * as colorModule from "tns-core-modules/color"; +import * as labelModule from "@nativescript/core/ui/label"; +import * as enums from "@nativescript/core/ui/enums"; +import * as colorModule from "@nativescript/core/color"; import { getColor } from "../../ui-helper"; export function getNativeTextAlignment(label: labelModule.Label): string { diff --git a/tests/app/ui/label/label-tests.ts b/tests/app/ui/label/label-tests.ts index 17b3447506..1ffd535339 100644 --- a/tests/app/ui/label/label-tests.ts +++ b/tests/app/ui/label/label-tests.ts @@ -2,25 +2,25 @@ import * as TKUnit from "../../tk-unit"; import * as testModule from "../../ui-test"; //>> label-require -import * as LabelModule from "tns-core-modules/ui/label"; +import * as LabelModule from "@nativescript/core/ui/label"; // << label-require -import * as types from "tns-core-modules/utils/types"; -import * as colorModule from "tns-core-modules/color"; -import * as utils from "tns-core-modules/utils/utils"; -import * as observableModule from "tns-core-modules/data/observable"; -import * as bindable from "tns-core-modules/ui/core/bindable"; -import * as enums from "tns-core-modules/ui/enums"; +import * as types from "@nativescript/core/utils/types"; +import * as colorModule from "@nativescript/core/color"; +import * as utils from "@nativescript/core/utils/utils"; +import * as observableModule from "@nativescript/core/data/observable"; +import * as bindable from "@nativescript/core/ui/core/bindable"; +import * as enums from "@nativescript/core/ui/enums"; import * as labelTestsNative from "./label-tests-native"; -import * as fs from "tns-core-modules/file-system"; +import * as fs from "@nativescript/core/file-system"; -import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout"; -import { GridLayout } from "tns-core-modules/ui/layouts/grid-layout"; -import { isIOS, isAndroid } from "tns-core-modules/platform"; -import { Label } from "tns-core-modules/ui/label"; -import { LayoutBase } from "tns-core-modules/ui/layouts/layout-base"; +import { StackLayout } from "@nativescript/core/ui/layouts/stack-layout"; +import { GridLayout } from "@nativescript/core/ui/layouts/grid-layout"; +import { isIOS, isAndroid } from "@nativescript/core/platform"; +import { Label } from "@nativescript/core/ui/label"; +import { LayoutBase } from "@nativescript/core/ui/layouts/layout-base"; import * as helper from "../../ui-helper"; -import { Span, FormattedString } from "tns-core-modules/text/formatted-string"; +import { Span, FormattedString } from "@nativescript/core/text/formatted-string"; const testDir = "ui/label"; diff --git a/tests/app/ui/layouts/absolute-layout-tests.ts b/tests/app/ui/layouts/absolute-layout-tests.ts index d623a565c4..fe5e7eb47a 100644 --- a/tests/app/ui/layouts/absolute-layout-tests.ts +++ b/tests/app/ui/layouts/absolute-layout-tests.ts @@ -1,13 +1,13 @@ import * as testModule from "../../ui-test"; import * as TKUnit from "../../tk-unit"; -import * as labelModule from "tns-core-modules/ui/label"; -import * as colorModule from "tns-core-modules/color"; +import * as labelModule from "@nativescript/core/ui/label"; +import * as colorModule from "@nativescript/core/color"; import * as layoutHelper from "./layout-helper"; import * as commonTests from "./common-layout-tests"; import * as helper from "../../ui-helper"; // >> absolute-layout-require -import * as absoluteLayoutModule from "tns-core-modules/ui/layouts/absolute-layout"; +import * as absoluteLayoutModule from "@nativescript/core/ui/layouts/absolute-layout"; // << absolute-layout-require export class AbsoluteLayoutTest extends testModule.UITest { diff --git a/tests/app/ui/layouts/common-layout-tests.ts b/tests/app/ui/layouts/common-layout-tests.ts index f54d199e41..f2f1737b2f 100644 --- a/tests/app/ui/layouts/common-layout-tests.ts +++ b/tests/app/ui/layouts/common-layout-tests.ts @@ -1,8 +1,8 @@ import * as TKUnit from "../../tk-unit"; import * as layoutHelper from "./layout-helper"; import * as testModule from "../../ui-test"; -import { LayoutBase, unsetValue, PercentLength } from "tns-core-modules/ui/layouts/layout-base"; -import * as platform from "tns-core-modules/platform"; +import { LayoutBase, unsetValue, PercentLength } from "@nativescript/core/ui/layouts/layout-base"; +import * as platform from "@nativescript/core/platform"; function getNativeLayoutParams(nativeView: android.view.View): org.nativescript.widgets.CommonLayoutParams { var lp = nativeView.getLayoutParams(); diff --git a/tests/app/ui/layouts/dock-layout-tests.ts b/tests/app/ui/layouts/dock-layout-tests.ts index df95c733f7..217b708dc8 100644 --- a/tests/app/ui/layouts/dock-layout-tests.ts +++ b/tests/app/ui/layouts/dock-layout-tests.ts @@ -1,5 +1,5 @@ -import * as button from "tns-core-modules/ui/button"; -import { DockLayout } from "tns-core-modules/ui/layouts/dock-layout"; +import * as button from "@nativescript/core/ui/button"; +import { DockLayout } from "@nativescript/core/ui/layouts/dock-layout"; import * as TKUnit from "../../tk-unit"; import * as helper from "./layout-helper"; import * as testModule from "../../ui-test"; @@ -7,11 +7,11 @@ import * as commonTests from "./common-layout-tests"; import * as testHelper from "../../ui-helper"; // >> dock-layout-require -import * as dockModule from "tns-core-modules/ui/layouts/dock-layout"; +import * as dockModule from "@nativescript/core/ui/layouts/dock-layout"; // << dock-layout-require // >> dock-layout-others -import * as enums from "tns-core-modules/ui/enums"; +import * as enums from "@nativescript/core/ui/enums"; // << dock-layout-others export class DockLayoutTest extends testModule.UITest { diff --git a/tests/app/ui/layouts/flexbox-layout-tests.ts b/tests/app/ui/layouts/flexbox-layout-tests.ts index 7a4ee19541..c2fcdda7b9 100644 --- a/tests/app/ui/layouts/flexbox-layout-tests.ts +++ b/tests/app/ui/layouts/flexbox-layout-tests.ts @@ -1,8 +1,8 @@ // >> flexbox-layout-require -import { FlexboxLayout } from "tns-core-modules/ui/layouts/flexbox-layout"; +import { FlexboxLayout } from "@nativescript/core/ui/layouts/flexbox-layout"; // << flexbox-layout-require -import { Button } from "tns-core-modules/ui/button"; +import { Button } from "@nativescript/core/ui/button"; export namespace FlexDirection { export const ROW: "row" = "row"; @@ -51,13 +51,12 @@ export namespace AlignSelf { export const STRETCH: "stretch" = "stretch"; } -import { View, unsetValue, Length, PercentLength } from "tns-core-modules/ui/core/view"; -import { Label } from "tns-core-modules/ui/label"; +import { View, unsetValue, Length, PercentLength } from "@nativescript/core/ui/core/view"; +import { Label } from "@nativescript/core/ui/label"; import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; -import { parse } from "tns-core-modules/ui/builder"; -import { - dipToDp, left, top, right, bottom, height, width, +import { parse } from "@nativescript/core/ui/builder"; +import { dipToDp, left, top, right, bottom, height, width, paddingLeft, paddingTop, paddingRight, paddingBottom, equal, closeEnough, notEqual, check, heightEqual, widthEqual, diff --git a/tests/app/ui/layouts/grid-layout-tests.ts b/tests/app/ui/layouts/grid-layout-tests.ts index 3a331e8229..f99c508c23 100644 --- a/tests/app/ui/layouts/grid-layout-tests.ts +++ b/tests/app/ui/layouts/grid-layout-tests.ts @@ -1,13 +1,13 @@ -import { Page } from "tns-core-modules/ui/page"; -import { GridLayout, ItemSpec } from "tns-core-modules/ui/layouts/grid-layout"; -import { Button } from "tns-core-modules/ui/button"; +import { Page } from "@nativescript/core/ui/page"; +import { GridLayout, ItemSpec } from "@nativescript/core/ui/layouts/grid-layout"; +import { Button } from "@nativescript/core/ui/button"; import * as TKUnit from "../../tk-unit"; -import * as view from "tns-core-modules/ui/core/view"; -import { unsetValue } from "tns-core-modules/ui/core/view"; -import * as builder from "tns-core-modules/ui/builder"; +import * as view from "@nativescript/core/ui/core/view"; +import { unsetValue } from "@nativescript/core/ui/core/view"; +import * as builder from "@nativescript/core/ui/builder"; import * as testModule from "../../ui-test"; import * as layoutHelper from "./layout-helper"; -import * as platform from "tns-core-modules/platform"; +import * as platform from "@nativescript/core/platform"; import * as commonTests from "./common-layout-tests"; import * as helper from "../../ui-helper"; var DELTA = 1; diff --git a/tests/app/ui/layouts/layout-helper.android.ts b/tests/app/ui/layouts/layout-helper.android.ts index 5fe50dbf3f..c3b798c9e6 100644 --- a/tests/app/ui/layouts/layout-helper.android.ts +++ b/tests/app/ui/layouts/layout-helper.android.ts @@ -1,8 +1,8 @@ -import { Button } from "tns-core-modules/ui/button"; -import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout"; -import { GridLayout } from "tns-core-modules/ui/layouts/grid-layout"; +import { Button } from "@nativescript/core/ui/button"; +import { StackLayout } from "@nativescript/core/ui/layouts/stack-layout"; +import { GridLayout } from "@nativescript/core/ui/layouts/grid-layout"; -import * as utils from "tns-core-modules/utils/utils"; +import * as utils from "@nativescript/core/utils/utils"; import * as TKUnit from "../../tk-unit"; import * as def from "./layout-helper"; diff --git a/tests/app/ui/layouts/layout-helper.d.ts b/tests/app/ui/layouts/layout-helper.d.ts index eacad856c1..cd4c8fa657 100644 --- a/tests/app/ui/layouts/layout-helper.d.ts +++ b/tests/app/ui/layouts/layout-helper.d.ts @@ -1,6 +1,6 @@ -import { Button } from "tns-core-modules/ui/button"; -import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout"; -import { GridLayout } from "tns-core-modules/ui/layouts/grid-layout"; +import { Button } from "@nativescript/core/ui/button"; +import { StackLayout } from "@nativescript/core/ui/layouts/stack-layout"; +import { GridLayout } from "@nativescript/core/ui/layouts/grid-layout"; export interface MeasuredView { measureCount: number; diff --git a/tests/app/ui/layouts/layout-helper.ios.ts b/tests/app/ui/layouts/layout-helper.ios.ts index 9cf88fc588..31d61b285d 100644 --- a/tests/app/ui/layouts/layout-helper.ios.ts +++ b/tests/app/ui/layouts/layout-helper.ios.ts @@ -1,7 +1,7 @@ -import { Button } from "tns-core-modules/ui/button"; -import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout"; -import { GridLayout } from "tns-core-modules/ui/layouts/grid-layout"; -import * as utils from "tns-core-modules/utils/utils"; +import { Button } from "@nativescript/core/ui/button"; +import { StackLayout } from "@nativescript/core/ui/layouts/stack-layout"; +import { GridLayout } from "@nativescript/core/ui/layouts/grid-layout"; +import * as utils from "@nativescript/core/utils/utils"; import * as TKUnit from "../../tk-unit"; import * as def from "./layout-helper"; diff --git a/tests/app/ui/layouts/layout-tests-helper.ts b/tests/app/ui/layouts/layout-tests-helper.ts index 9a6e093f65..52ff778f5c 100644 --- a/tests/app/ui/layouts/layout-tests-helper.ts +++ b/tests/app/ui/layouts/layout-tests-helper.ts @@ -1,6 +1,6 @@ -import { View, Length } from "tns-core-modules/ui/core/view"; +import { View, Length } from "@nativescript/core/ui/core/view"; import * as TKUnit from "../../tk-unit"; -import { layout } from "tns-core-modules/utils/utils"; +import { layout } from "@nativescript/core/utils/utils"; import round = layout.round; export const dipToDp = layout.toDevicePixels; diff --git a/tests/app/ui/layouts/safe-area-tests.ts b/tests/app/ui/layouts/safe-area-tests.ts index fea89f3817..1770e82955 100644 --- a/tests/app/ui/layouts/safe-area-tests.ts +++ b/tests/app/ui/layouts/safe-area-tests.ts @@ -1,12 +1,12 @@ -import { GridLayout } from "tns-core-modules/ui/layouts/grid-layout"; +import { GridLayout } from "@nativescript/core/ui/layouts/grid-layout"; import * as TKUnit from "../../tk-unit"; -import * as view from "tns-core-modules/ui/core/view"; +import * as view from "@nativescript/core/ui/core/view"; import * as testModule from "../../ui-test"; -import * as platform from "tns-core-modules/platform"; +import * as platform from "@nativescript/core/platform"; import * as helper from "../../ui-helper"; -import { parse } from "tns-core-modules/ui/builder"; -import { Page } from "tns-core-modules/ui/page"; -import { Label } from "tns-core-modules/ui/label"; +import { parse } from "@nativescript/core/ui/builder"; +import { Page } from "@nativescript/core/ui/page"; +import { Label } from "@nativescript/core/ui/label"; import { dipToDp, left, top, right, bottom, height, width, equal, closeEnough, lessOrCloseEnough, greaterOrCloseEnough, diff --git a/tests/app/ui/layouts/stack-layout-tests.ts b/tests/app/ui/layouts/stack-layout-tests.ts index 81871a4c0a..b0701233fb 100644 --- a/tests/app/ui/layouts/stack-layout-tests.ts +++ b/tests/app/ui/layouts/stack-layout-tests.ts @@ -1,9 +1,9 @@ -import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout"; -import { Button } from "tns-core-modules/ui/button"; +import { StackLayout } from "@nativescript/core/ui/layouts/stack-layout"; +import { Button } from "@nativescript/core/ui/button"; import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; -import * as enums from "tns-core-modules/ui/enums"; -import * as utils from "tns-core-modules/utils/utils"; +import * as enums from "@nativescript/core/ui/enums"; +import * as utils from "@nativescript/core/utils/utils"; import * as testModule from "../../ui-test"; import * as layoutHelper from "./layout-helper"; import * as commonTests from "./common-layout-tests"; diff --git a/tests/app/ui/layouts/wrap-layout-tests.ts b/tests/app/ui/layouts/wrap-layout-tests.ts index c0fbb42b5d..6e2457728e 100644 --- a/tests/app/ui/layouts/wrap-layout-tests.ts +++ b/tests/app/ui/layouts/wrap-layout-tests.ts @@ -1,12 +1,12 @@ import * as TKUnit from "../../tk-unit"; -import { Label } from "tns-core-modules/ui/label"; +import { Label } from "@nativescript/core/ui/label"; import * as layoutHelper from "./layout-helper"; import * as testModule from "../../ui-test"; import * as commonTests from "./common-layout-tests"; import * as helper from "../../ui-helper"; // >> wrap-layout-require -import * as wrapLayoutModule from "tns-core-modules/ui/layouts/wrap-layout"; +import * as wrapLayoutModule from "@nativescript/core/ui/layouts/wrap-layout"; // << wrap-layout-require export class WrapLayoutTest extends testModule.UITest { diff --git a/tests/app/ui/lifecycle/lifecycle-tests.ts b/tests/app/ui/lifecycle/lifecycle-tests.ts index 5f72d46c4a..4145b172ea 100644 --- a/tests/app/ui/lifecycle/lifecycle-tests.ts +++ b/tests/app/ui/lifecycle/lifecycle-tests.ts @@ -1,7 +1,7 @@ import * as helper from "../../ui-helper"; import * as btnCounter from "./pages/button-counter"; import * as TKUnit from "../../tk-unit"; -import { isIOS, isAndroid } from "tns-core-modules/platform"; +import { isIOS, isAndroid } from "@nativescript/core/platform"; // Integration tests that asser sertain runtime behavior, lifecycle events atc. diff --git a/tests/app/ui/lifecycle/pages/button-counter.ts b/tests/app/ui/lifecycle/pages/button-counter.ts index bc0ee4a37e..d712252850 100644 --- a/tests/app/ui/lifecycle/pages/button-counter.ts +++ b/tests/app/ui/lifecycle/pages/button-counter.ts @@ -1,5 +1,5 @@ -import * as button from "tns-core-modules/ui/button"; -import * as view from "tns-core-modules/ui/core/view"; +import * as button from "@nativescript/core/ui/button"; +import * as view from "@nativescript/core/ui/core/view"; export class Button extends button.Button { nativeBackgroundRedraws = 0; diff --git a/tests/app/ui/list-picker/list-picker-tests-native.android.ts b/tests/app/ui/list-picker/list-picker-tests-native.android.ts index dbbe9acd4f..0154c9500a 100644 --- a/tests/app/ui/list-picker/list-picker-tests-native.android.ts +++ b/tests/app/ui/list-picker/list-picker-tests-native.android.ts @@ -1,4 +1,4 @@ -import * as listPickerModule from "tns-core-modules/ui/list-picker"; +import * as listPickerModule from "@nativescript/core/ui/list-picker"; export function getNativeItemsCount(listPicker: listPickerModule.ListPicker): number { var maxValue = listPicker.nativeViewProtected.getMaxValue(); diff --git a/tests/app/ui/list-picker/list-picker-tests-native.d.ts b/tests/app/ui/list-picker/list-picker-tests-native.d.ts index 87fc98beef..c2ac150ae7 100644 --- a/tests/app/ui/list-picker/list-picker-tests-native.d.ts +++ b/tests/app/ui/list-picker/list-picker-tests-native.d.ts @@ -1,5 +1,5 @@ //@private -import * as listPickerModule from "tns-core-modules/ui/list-picker"; +import * as listPickerModule from "@nativescript/core/ui/list-picker"; export declare function getNativeItemsCount(listPicker: listPickerModule.ListPicker): number; export declare function selectNativeItem(listPicker: listPickerModule.ListPicker, index: number): void; diff --git a/tests/app/ui/list-picker/list-picker-tests-native.ios.ts b/tests/app/ui/list-picker/list-picker-tests-native.ios.ts index f1a51f3e89..feeeaecc32 100644 --- a/tests/app/ui/list-picker/list-picker-tests-native.ios.ts +++ b/tests/app/ui/list-picker/list-picker-tests-native.ios.ts @@ -1,4 +1,4 @@ -import * as listPickerModule from "tns-core-modules/ui/list-picker"; +import * as listPickerModule from "@nativescript/core/ui/list-picker"; export function getNativeItemsCount(listPicker: listPickerModule.ListPicker): number { return listPicker.ios.numberOfRowsInComponent(0); diff --git a/tests/app/ui/list-picker/list-picker-tests.ts b/tests/app/ui/list-picker/list-picker-tests.ts index 057e4aceb7..4a2f027a85 100644 --- a/tests/app/ui/list-picker/list-picker-tests.ts +++ b/tests/app/ui/list-picker/list-picker-tests.ts @@ -1,11 +1,11 @@ import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; -import * as viewModule from "tns-core-modules/ui/core/view"; +import * as viewModule from "@nativescript/core/ui/core/view"; import * as listPickerTestsNative from "./list-picker-tests-native"; -import * as application from "tns-core-modules/application"; +import * as application from "@nativescript/core/application"; // >> article-require-listpicker-module -import * as listPickerModule from "tns-core-modules/ui/list-picker"; +import * as listPickerModule from "@nativescript/core/ui/list-picker"; // << article-require-listpicker-module function _createListPicker(): listPickerModule.ListPicker { diff --git a/tests/app/ui/list-view/list-view-safe-area-tests.ts b/tests/app/ui/list-view/list-view-safe-area-tests.ts index 5ef3884a5f..76a01b0024 100644 --- a/tests/app/ui/list-view/list-view-safe-area-tests.ts +++ b/tests/app/ui/list-view/list-view-safe-area-tests.ts @@ -1,9 +1,9 @@ import * as helper from "../../ui-helper"; import * as TKUnit from "../../tk-unit"; -import { parse } from "tns-core-modules/ui/builder"; -import * as view from "tns-core-modules/ui/core/view"; -import * as platform from "tns-core-modules/platform"; -import { ListView } from "tns-core-modules/ui/list-view"; +import { parse } from "@nativescript/core/ui/builder"; +import * as view from "@nativescript/core/ui/core/view"; +import * as platform from "@nativescript/core/platform"; +import { ListView } from "@nativescript/core/ui/list-view"; import { ViewModel } from "./list-view-view-model"; import { UITest } from "../../ui-test"; import { diff --git a/tests/app/ui/list-view/list-view-tests.ts b/tests/app/ui/list-view/list-view-tests.ts index 1a899c5832..3e1ea2af79 100644 --- a/tests/app/ui/list-view/list-view-tests.ts +++ b/tests/app/ui/list-view/list-view-tests.ts @@ -1,22 +1,22 @@ import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; import { UITest } from "../../ui-test"; -import { getResources as appGetResources } from "tns-core-modules/application"; -import { Observable, EventData } from "tns-core-modules/data/observable"; -import { isFunction, isUndefined } from "tns-core-modules/utils/types"; -import { isAndroid, isIOS } from "tns-core-modules/platform"; -import { GC } from "tns-core-modules/utils/utils"; -import { Page } from "tns-core-modules/ui/page"; -import { View, KeyedTemplate } from "tns-core-modules/ui/core/view"; +import { getResources as appGetResources } from "@nativescript/core/application"; +import { Observable, EventData } from "@nativescript/core/data/observable"; +import { isFunction, isUndefined } from "@nativescript/core/utils/types"; +import { isAndroid, isIOS } from "@nativescript/core/platform"; +import { GC } from "@nativescript/core/utils/utils"; +import { Page } from "@nativescript/core/ui/page"; +import { View, KeyedTemplate } from "@nativescript/core/ui/core/view"; import { MyButton, MyStackLayout } from "../layouts/layout-helper"; // >> article-require-listview-module -import { ListView, ItemEventData } from "tns-core-modules/ui/list-view"; +import { ListView, ItemEventData } from "@nativescript/core/ui/list-view"; // << article-require-listview-module // >> article-require-modules-listview -import { ObservableArray } from "tns-core-modules/data/observable-array"; -import { Label } from "tns-core-modules/ui/label"; +import { ObservableArray } from "@nativescript/core/data/observable-array"; +import { Label } from "@nativescript/core/ui/label"; // << article-require-modules-listview // >> article-item-tap diff --git a/tests/app/ui/list-view/list-view-view-model.ts b/tests/app/ui/list-view/list-view-view-model.ts index bc5a4a68b9..454fc57b3b 100644 --- a/tests/app/ui/list-view/list-view-view-model.ts +++ b/tests/app/ui/list-view/list-view-view-model.ts @@ -1,4 +1,4 @@ -import { Observable } from "tns-core-modules/data/observable"; +import { Observable } from "@nativescript/core/data/observable"; export class ViewModel extends Observable { items: Array; diff --git a/tests/app/ui/page/modal-page.ts b/tests/app/ui/page/modal-page.ts index 78433bf983..939c968ce3 100644 --- a/tests/app/ui/page/modal-page.ts +++ b/tests/app/ui/page/modal-page.ts @@ -1,6 +1,6 @@ -import { topmost } from "tns-core-modules/ui/frame"; +import { topmost } from "@nativescript/core/ui/frame"; import * as TKUnit from "../../tk-unit"; -import { Page, ShownModallyData } from "tns-core-modules/ui/page"; +import { Page, ShownModallyData } from "@nativescript/core/ui/page"; export var modalPage: Page; export function onShowingModally(args) { diff --git a/tests/app/ui/page/modal-tab-page.ts b/tests/app/ui/page/modal-tab-page.ts index f4334f44d1..f758bf3b3e 100644 --- a/tests/app/ui/page/modal-tab-page.ts +++ b/tests/app/ui/page/modal-tab-page.ts @@ -1,8 +1,8 @@ -import { NavigatedData } from "tns-core-modules/ui/page"; -import { View } from "tns-core-modules/ui/core/view"; +import { NavigatedData } from "@nativescript/core/ui/page"; +import { View } from "@nativescript/core/ui/core/view"; import * as TKUnit from "../../tk-unit"; -import { _stack } from "tns-core-modules/ui/frame"; -import { isAndroid } from "tns-core-modules/platform"; +import { _stack } from "@nativescript/core/ui/frame"; +import { isAndroid } from "@nativescript/core/platform"; export function onNavigatedTo(args: NavigatedData) { TKUnit.assertEqual(_stack().length, 2, "Host and tab modal frame should be instantiated at this point!"); diff --git a/tests/app/ui/page/modal-tab-root.ts b/tests/app/ui/page/modal-tab-root.ts index 608ea7c6a4..02dfd7335d 100644 --- a/tests/app/ui/page/modal-tab-root.ts +++ b/tests/app/ui/page/modal-tab-root.ts @@ -1,8 +1,8 @@ -import { ShownModallyData } from "tns-core-modules/ui/core/view"; -import { TabView } from "tns-core-modules/ui/tab-view/tab-view"; +import { ShownModallyData } from "@nativescript/core/ui/core/view"; +import { TabView } from "@nativescript/core/ui/tab-view/tab-view"; import * as TKUnit from "../../tk-unit"; -import { _stack } from "tns-core-modules/ui/frame"; -import { isIOS } from "tns-core-modules/platform"; +import { _stack } from "@nativescript/core/ui/frame"; +import { isIOS } from "@nativescript/core/platform"; export function onShownModally(args: ShownModallyData) { const tabView = args.object; diff --git a/tests/app/ui/page/page-tests-common.ts b/tests/app/ui/page/page-tests-common.ts index a74b2f7689..d9d2f51bfa 100644 --- a/tests/app/ui/page/page-tests-common.ts +++ b/tests/app/ui/page/page-tests-common.ts @@ -1,11 +1,11 @@ // >> article-require-page-module -import { Page, ShownModallyData, NavigatedData } from "tns-core-modules/ui/page"; +import { Page, ShownModallyData, NavigatedData } from "@nativescript/core/ui/page"; // FrameModule is needed in order to have an option to navigate to the new page. -import { topmost, NavigationEntry } from "tns-core-modules/ui/frame"; +import { topmost, NavigationEntry } from "@nativescript/core/ui/frame"; // << article-require-page-module // TODO: Remove this and get it from global to decouple builder for angular -import { createViewFromEntry } from "tns-core-modules/ui/builder"; +import { createViewFromEntry } from "@nativescript/core/ui/builder"; // >> article-set-bindingcontext function pageLoaded(args) { @@ -16,15 +16,16 @@ exports.pageLoaded = pageLoaded; // << article-set-bindingcontext import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; -import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout"; -import { View, PercentLength, unsetValue, EventData, isIOS } from "tns-core-modules/ui/core/view"; -import { Frame, _stack } from "tns-core-modules/ui/frame"; -import { Label } from "tns-core-modules/ui/label"; -import { Color } from "tns-core-modules/color"; -import { TabView, TabViewItem } from "tns-core-modules/ui/tab-view/tab-view"; -import { _resetRootView } from "tns-core-modules/application"; -import { Button } from "tns-core-modules/ui/button/button"; -import { ios } from "tns-core-modules/utils/utils"; + +import { StackLayout } from "@nativescript/core/ui/layouts/stack-layout"; +import { View, PercentLength, unsetValue, EventData, isIOS } from "@nativescript/core/ui/core/view"; +import { Frame, _stack } from "@nativescript/core/ui/frame"; +import { Label } from "@nativescript/core/ui/label"; +import { Color } from "@nativescript/core/color"; +import { TabView, TabViewItem } from "@nativescript/core/ui/tab-view/tab-view"; +import { _resetRootView } from "@nativescript/core/application"; +import { Button } from "@nativescript/core/ui/button/button"; +import { ios } from "@nativescript/core/utils/utils"; export function addLabelToPage(page: Page, text?: string) { const label = new Label(); diff --git a/tests/app/ui/page/page-tests.android.ts b/tests/app/ui/page/page-tests.android.ts index 0edb1499d6..d85e5746ad 100644 --- a/tests/app/ui/page/page-tests.android.ts +++ b/tests/app/ui/page/page-tests.android.ts @@ -1,9 +1,9 @@ import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; import { addLabelToPage } from "./page-tests-common"; -import { Page } from "tns-core-modules/ui/page"; -import { Label } from "tns-core-modules/ui/label"; -import { topmost } from "tns-core-modules/ui/frame"; +import { Page } from "@nativescript/core/ui/page"; +import { Label } from "@nativescript/core/ui/label"; +import { topmost } from "@nativescript/core/ui/frame"; export * from "./page-tests-common"; diff --git a/tests/app/ui/page/page-tests.ios.ts b/tests/app/ui/page/page-tests.ios.ts index 204cc753a3..b5d8cd803e 100644 --- a/tests/app/ui/page/page-tests.ios.ts +++ b/tests/app/ui/page/page-tests.ios.ts @@ -1,6 +1,6 @@ -import { Page, View, EventData } from "tns-core-modules/ui/page"; -import { Label } from "tns-core-modules/ui/label"; -import { topmost } from "tns-core-modules/ui/frame"; +import { Page, View, EventData } from "@nativescript/core/ui/page"; +import { Label } from "@nativescript/core/ui/label"; +import { topmost } from "@nativescript/core/ui/frame"; import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; import { addLabelToPage } from "./page-tests-common"; diff --git a/tests/app/ui/page/page21.ts b/tests/app/ui/page/page21.ts index a003429575..bacc930c56 100644 --- a/tests/app/ui/page/page21.ts +++ b/tests/app/ui/page/page21.ts @@ -1,4 +1,4 @@ -import { ShownModallyData } from "tns-core-modules/ui/page"; +import { ShownModallyData } from "@nativescript/core/ui/page"; export function onShownModally(args: ShownModallyData) { args.context.childPage = args.object; diff --git a/tests/app/ui/page/test-module-css-page.ts b/tests/app/ui/page/test-module-css-page.ts index f1eb7b8a14..1a23059717 100644 --- a/tests/app/ui/page/test-module-css-page.ts +++ b/tests/app/ui/page/test-module-css-page.ts @@ -1,5 +1,5 @@ -import * as PageModule from "tns-core-modules/ui/page"; -import * as LabelModule from "tns-core-modules/ui/label"; +import * as PageModule from "@nativescript/core/ui/page"; +import * as LabelModule from "@nativescript/core/ui/label"; export class TestPageModule extends PageModule.Page { constructor() { diff --git a/tests/app/ui/page/test-page-module.ts b/tests/app/ui/page/test-page-module.ts index c0ec01d468..abdc0bdd99 100644 --- a/tests/app/ui/page/test-page-module.ts +++ b/tests/app/ui/page/test-page-module.ts @@ -1,5 +1,5 @@ -import * as PageModule from "tns-core-modules/ui/page"; -import * as LabelModule from "tns-core-modules/ui/label"; +import * as PageModule from "@nativescript/core/ui/page"; +import * as LabelModule from "@nativescript/core/ui/label"; export class TestPageModule extends PageModule.Page { constructor() { diff --git a/tests/app/ui/placeholder/placeholder-tests.ts b/tests/app/ui/placeholder/placeholder-tests.ts index f00df319f1..05450bad2d 100644 --- a/tests/app/ui/placeholder/placeholder-tests.ts +++ b/tests/app/ui/placeholder/placeholder-tests.ts @@ -1,12 +1,12 @@ import * as TKUnit from "../../tk-unit"; // >> article-creating-view -import { isIOS, isAndroid } from "tns-core-modules/platform"; -import * as utils from "tns-core-modules/utils/utils"; +import { isIOS, isAndroid } from "@nativescript/core/platform"; +import * as utils from "@nativescript/core/utils/utils"; import * as helper from "../../ui-helper"; -import * as viewModule from "tns-core-modules/ui/core/view"; +import * as viewModule from "@nativescript/core/ui/core/view"; // >> article-require-placeholder-module -import * as placeholderModule from "tns-core-modules/ui/placeholder"; +import * as placeholderModule from "@nativescript/core/ui/placeholder"; // << article-require-placeholder-module function creatingView(args) { diff --git a/tests/app/ui/progress/progress-tests.ts b/tests/app/ui/progress/progress-tests.ts index 4559a7769f..9945c7af80 100644 --- a/tests/app/ui/progress/progress-tests.ts +++ b/tests/app/ui/progress/progress-tests.ts @@ -1,12 +1,12 @@ import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; -import * as viewModule from "tns-core-modules/ui/core/view"; -import * as observable from "tns-core-modules/data/observable"; -import * as color from "tns-core-modules/color"; -import * as platform from "tns-core-modules/platform"; +import * as viewModule from "@nativescript/core/ui/core/view"; +import * as observable from "@nativescript/core/data/observable"; +import * as color from "@nativescript/core/color"; +import * as platform from "@nativescript/core/platform"; // >> article-require-progress-module -import * as progressModule from "tns-core-modules/ui/progress"; +import * as progressModule from "@nativescript/core/ui/progress"; // << article-require-progress-module export function test_default_TNS_values() { diff --git a/tests/app/ui/proxy-view-container/proxy-view-container-tests.ts b/tests/app/ui/proxy-view-container/proxy-view-container-tests.ts index 7b7b70c7fe..278519cda2 100644 --- a/tests/app/ui/proxy-view-container/proxy-view-container-tests.ts +++ b/tests/app/ui/proxy-view-container/proxy-view-container-tests.ts @@ -1,14 +1,14 @@ import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; -import { View } from "tns-core-modules/ui/core/view"; -import { Button } from "tns-core-modules/ui/button"; -import { Page } from "tns-core-modules/ui/page"; -import { ScrollView } from "tns-core-modules/ui/scroll-view"; -import { LayoutBase } from "tns-core-modules/ui/layouts/layout-base"; -import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout"; -import { GridLayout } from "tns-core-modules/ui/layouts/grid-layout"; -import { ProxyViewContainer } from "tns-core-modules/ui/proxy-view-container"; -import { ListView } from "tns-core-modules/ui/list-view"; +import { View } from "@nativescript/core/ui/core/view"; +import { Button } from "@nativescript/core/ui/button"; +import { Page } from "@nativescript/core/ui/page"; +import { ScrollView } from "@nativescript/core/ui/scroll-view"; +import { LayoutBase } from "@nativescript/core/ui/layouts/layout-base"; +import { StackLayout } from "@nativescript/core/ui/layouts/stack-layout"; +import { GridLayout } from "@nativescript/core/ui/layouts/grid-layout"; +import { ProxyViewContainer } from "@nativescript/core/ui/proxy-view-container"; +import { ListView } from "@nativescript/core/ui/list-view"; export function test_add_children_to_attached_proxy() { const outer = new StackLayout(); diff --git a/tests/app/ui/repeater/repeater-safe-area-tests.ts b/tests/app/ui/repeater/repeater-safe-area-tests.ts index c2f45cae1b..3445ad7f3a 100644 --- a/tests/app/ui/repeater/repeater-safe-area-tests.ts +++ b/tests/app/ui/repeater/repeater-safe-area-tests.ts @@ -1,9 +1,9 @@ import * as helper from "../../ui-helper"; import * as TKUnit from "../../tk-unit"; -import { parse } from "tns-core-modules/ui/builder"; -import * as view from "tns-core-modules/ui/core/view"; -import * as platform from "tns-core-modules/platform"; -import { Repeater } from "tns-core-modules/ui/repeater"; +import { parse } from "@nativescript/core/ui/builder"; +import * as view from "@nativescript/core/ui/core/view"; +import * as platform from "@nativescript/core/platform"; +import { Repeater } from "@nativescript/core/ui/repeater"; import { UITest } from "../../ui-test"; import { left, top, right, bottom, equal } from "../layouts/layout-tests-helper"; diff --git a/tests/app/ui/repeater/repeater-tests.ts b/tests/app/ui/repeater/repeater-tests.ts index 51ff30c60d..c568492e6a 100644 --- a/tests/app/ui/repeater/repeater-tests.ts +++ b/tests/app/ui/repeater/repeater-tests.ts @@ -1,21 +1,21 @@ import * as TKUnit from "../../tk-unit"; -import * as app from "tns-core-modules/application"; +import * as app from "@nativescript/core/application"; import * as helper from "../../ui-helper"; -import * as viewModule from "tns-core-modules/ui/core/view"; -import * as stackLayoutModule from "tns-core-modules/ui/layouts/stack-layout"; -import * as wrapLayoutModule from "tns-core-modules/ui/layouts/wrap-layout"; -import * as layoutBaseModule from "tns-core-modules/ui/layouts/layout-base"; -import * as pageModule from "tns-core-modules/ui/page"; -import * as gestureModule from "tns-core-modules/ui/gestures"; -import { Label } from "tns-core-modules/ui/label"; +import * as viewModule from "@nativescript/core/ui/core/view"; +import * as stackLayoutModule from "@nativescript/core/ui/layouts/stack-layout"; +import * as wrapLayoutModule from "@nativescript/core/ui/layouts/wrap-layout"; +import * as layoutBaseModule from "@nativescript/core/ui/layouts/layout-base"; +import * as pageModule from "@nativescript/core/ui/page"; +import * as gestureModule from "@nativescript/core/ui/gestures"; +import { Label } from "@nativescript/core/ui/label"; // >> article-require-repeater-module -import * as repeaterModule from "tns-core-modules/ui/repeater"; +import * as repeaterModule from "@nativescript/core/ui/repeater"; // << article-require-repeater-module // >> article-require-modules-repeater -import * as observableArray from "tns-core-modules/data/observable-array"; -import * as labelModule from "tns-core-modules/ui/label"; +import * as observableArray from "@nativescript/core/data/observable-array"; +import * as labelModule from "@nativescript/core/ui/label"; // << article-require-modules-repeater var FEW_ITEMS = [0, 1, 2]; diff --git a/tests/app/ui/root-view/mymodule/MyControl.ts b/tests/app/ui/root-view/mymodule/MyControl.ts index d882094e3b..30dccfd9da 100644 --- a/tests/app/ui/root-view/mymodule/MyControl.ts +++ b/tests/app/ui/root-view/mymodule/MyControl.ts @@ -1,7 +1,7 @@ -import * as observable from "tns-core-modules/data/observable"; -import * as stackLayoutModule from "tns-core-modules/ui/layouts/stack-layout"; -import * as label from "tns-core-modules/ui/label"; -import * as button from "tns-core-modules/ui/button"; +import * as observable from "@nativescript/core/data/observable"; +import * as stackLayoutModule from "@nativescript/core/ui/layouts/stack-layout"; +import * as label from "@nativescript/core/ui/label"; +import * as button from "@nativescript/core/ui/button"; export class MyControl extends stackLayoutModule.StackLayout { constructor() { diff --git a/tests/app/ui/root-view/reset-root-view-tests.ts b/tests/app/ui/root-view/reset-root-view-tests.ts index 51db842fff..1157e99efd 100644 --- a/tests/app/ui/root-view/reset-root-view-tests.ts +++ b/tests/app/ui/root-view/reset-root-view-tests.ts @@ -1,10 +1,10 @@ import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; -import { Page } from "tns-core-modules/ui/page"; -import { isAndroid } from "tns-core-modules/platform"; -import { Frame, NavigationEntry, _stack } from "tns-core-modules/ui/frame"; -import { _resetRootView, getRootView } from "tns-core-modules/application"; -import { TabView, TabViewItem } from "tns-core-modules/ui/tab-view"; +import { Page } from "@nativescript/core/ui/page"; +import { isAndroid } from "@nativescript/core/platform"; +import { Frame, NavigationEntry, _stack } from "@nativescript/core/ui/frame"; +import { _resetRootView, getRootView } from "@nativescript/core/application"; +import { TabView, TabViewItem } from "@nativescript/core/ui/tab-view"; function waitUntilTabViewReady(page: Page, action: Function) { helper.waitUntilNavigatedTo(page, action); diff --git a/tests/app/ui/root-view/root-view-tests.ts b/tests/app/ui/root-view/root-view-tests.ts index ec564717a6..3be4e6b92a 100644 --- a/tests/app/ui/root-view/root-view-tests.ts +++ b/tests/app/ui/root-view/root-view-tests.ts @@ -1,9 +1,9 @@ import * as TKUnit from "../../tk-unit"; -import { Page, View } from "tns-core-modules/ui/page"; -import { Frame, NavigationEntry, _stack } from "tns-core-modules/ui/frame"; -import { _resetRootView, getRootView } from "tns-core-modules/application"; -import { TabView } from "tns-core-modules/ui/tab-view"; -import { GridLayout } from "tns-core-modules/ui/layouts/grid-layout"; +import { Page, View } from "@nativescript/core/ui/page"; +import { Frame, NavigationEntry, _stack } from "@nativescript/core/ui/frame"; +import { _resetRootView, getRootView } from "@nativescript/core/application"; +import { TabView } from "@nativescript/core/ui/tab-view"; +import { GridLayout } from "@nativescript/core/ui/layouts/grid-layout"; import * as helper from "../../ui-helper"; function createTestFrameRootEntry() { diff --git a/tests/app/ui/scroll-view/scroll-view-safe-area-tests.ts b/tests/app/ui/scroll-view/scroll-view-safe-area-tests.ts index ad2021ebbd..2db73bd84e 100644 --- a/tests/app/ui/scroll-view/scroll-view-safe-area-tests.ts +++ b/tests/app/ui/scroll-view/scroll-view-safe-area-tests.ts @@ -1,12 +1,12 @@ import { UITest } from "../../ui-test"; -import { ScrollView } from "tns-core-modules/ui/scroll-view"; -import { GridLayout } from "tns-core-modules/ui/layouts/grid-layout"; +import { ScrollView } from "@nativescript/core/ui/scroll-view"; +import { GridLayout } from "@nativescript/core/ui/layouts/grid-layout"; import * as TKUnit from "../../tk-unit"; -import * as view from "tns-core-modules/ui/core/view"; -import * as platform from "tns-core-modules/platform"; +import * as view from "@nativescript/core/ui/core/view"; +import * as platform from "@nativescript/core/platform"; import * as helper from "../../ui-helper"; -import { parse } from "tns-core-modules/ui/builder"; +import { parse } from "@nativescript/core/ui/builder"; import { dipToDp, left, top, right, bottom, height, width, equal, lessOrCloseEnough, greaterOrCloseEnough, diff --git a/tests/app/ui/scroll-view/scroll-view-tests.ts b/tests/app/ui/scroll-view/scroll-view-tests.ts index 3bb231c47f..b9db12762e 100644 --- a/tests/app/ui/scroll-view/scroll-view-tests.ts +++ b/tests/app/ui/scroll-view/scroll-view-tests.ts @@ -1,12 +1,12 @@ import * as TKUnit from "../../tk-unit"; -import { Button } from "tns-core-modules/ui/button"; -import { Page, isIOS } from "tns-core-modules/ui/page"; +import { Button } from "@nativescript/core/ui/button"; +import { Page, isIOS } from "@nativescript/core/ui/page"; import { UITest } from "../../ui-test"; import * as layoutHelper from "../layouts/layout-helper"; import * as helper from "../../ui-helper"; // >> article-require-scrollview-module -import { ScrollView, ScrollEventData } from "tns-core-modules/ui/scroll-view"; +import { ScrollView, ScrollEventData } from "@nativescript/core/ui/scroll-view"; // << article-require-scrollview-module class ScrollLayoutTest extends UITest { diff --git a/tests/app/ui/search-bar/search-bar-code-snippet.ts b/tests/app/ui/search-bar/search-bar-code-snippet.ts index fc129ac91f..5283d5d555 100644 --- a/tests/app/ui/search-bar/search-bar-code-snippet.ts +++ b/tests/app/ui/search-bar/search-bar-code-snippet.ts @@ -1,5 +1,5 @@ -import { EventData } from "tns-core-modules/data/observable"; -import { SearchBar } from "tns-core-modules/ui/search-bar"; +import { EventData } from "@nativescript/core/data/observable"; +import { SearchBar } from "@nativescript/core/ui/search-bar"; export function navigatingTo(args: EventData) { console.log("page navigating to"); diff --git a/tests/app/ui/search-bar/search-bar-tests-native.android.ts b/tests/app/ui/search-bar/search-bar-tests-native.android.ts index edf4f0474a..37c036ba6e 100644 --- a/tests/app/ui/search-bar/search-bar-tests-native.android.ts +++ b/tests/app/ui/search-bar/search-bar-tests-native.android.ts @@ -1,6 +1,6 @@ -import * as colorModule from "tns-core-modules/color"; -import * as searchBarModule from "tns-core-modules/ui/search-bar"; -import * as utils from "tns-core-modules/utils/utils"; +import * as colorModule from "@nativescript/core/color"; +import * as searchBarModule from "@nativescript/core/ui/search-bar"; +import * as utils from "@nativescript/core/utils/utils"; function getTextView(bar: android.widget.SearchView): android.widget.TextView { if (bar) { diff --git a/tests/app/ui/search-bar/search-bar-tests-native.d.ts b/tests/app/ui/search-bar/search-bar-tests-native.d.ts index 2f62edce7a..2248a2460a 100644 --- a/tests/app/ui/search-bar/search-bar-tests-native.d.ts +++ b/tests/app/ui/search-bar/search-bar-tests-native.d.ts @@ -1,6 +1,6 @@ //@private -import * as searchBarModule from "tns-core-modules/ui/search-bar"; -import * as colorModule from "tns-core-modules/color"; +import * as searchBarModule from "@nativescript/core/ui/search-bar"; +import * as colorModule from "@nativescript/core/color"; export declare function getNativeHintColor(textView: searchBarModule.SearchBar): colorModule.Color; export declare function getNativeTextFieldBackgroundColor(textView: searchBarModule.SearchBar): colorModule.Color; diff --git a/tests/app/ui/search-bar/search-bar-tests-native.ios.ts b/tests/app/ui/search-bar/search-bar-tests-native.ios.ts index 7764ccc13a..20c27ae9d5 100644 --- a/tests/app/ui/search-bar/search-bar-tests-native.ios.ts +++ b/tests/app/ui/search-bar/search-bar-tests-native.ios.ts @@ -1,5 +1,5 @@ -import { SearchBar } from "tns-core-modules/ui/search-bar"; -import { Color } from "tns-core-modules/color"; +import { SearchBar } from "@nativescript/core/ui/search-bar"; +import { Color } from "@nativescript/core/color"; import { getColor } from "../../ui-helper"; export function getNativeHintColor(searchBar: SearchBar): Color { diff --git a/tests/app/ui/search-bar/search-bar-tests.ts b/tests/app/ui/search-bar/search-bar-tests.ts index 70e8d9062f..7b75d7c1dc 100644 --- a/tests/app/ui/search-bar/search-bar-tests.ts +++ b/tests/app/ui/search-bar/search-bar-tests.ts @@ -1,11 +1,11 @@ import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; -import * as viewModule from "tns-core-modules/ui/core/view"; +import * as viewModule from "@nativescript/core/ui/core/view"; import * as searchBarTestsNative from "./search-bar-tests-native"; -import * as colorModule from "tns-core-modules/color"; -import * as observable from "tns-core-modules/data/observable"; +import * as colorModule from "@nativescript/core/color"; +import * as observable from "@nativescript/core/data/observable"; // >> article-require-searchbar-module -import * as searchBarModule from "tns-core-modules/ui/search-bar"; +import * as searchBarModule from "@nativescript/core/ui/search-bar"; // << article-require-searchbar-module // ### Declaring a SearchBar. diff --git a/tests/app/ui/segmented-bar/segmented-bar-tests-native.android.ts b/tests/app/ui/segmented-bar/segmented-bar-tests-native.android.ts index b58803cc99..1b4304f9cd 100644 --- a/tests/app/ui/segmented-bar/segmented-bar-tests-native.android.ts +++ b/tests/app/ui/segmented-bar/segmented-bar-tests-native.android.ts @@ -1,4 +1,4 @@ -import * as segmentedBarModule from "tns-core-modules/ui/segmented-bar"; +import * as segmentedBarModule from "@nativescript/core/ui/segmented-bar"; export function getNativeItemsCount(bar: segmentedBarModule.SegmentedBar): number { return (bar.android).getTabWidget().getTabCount(); diff --git a/tests/app/ui/segmented-bar/segmented-bar-tests-native.d.ts b/tests/app/ui/segmented-bar/segmented-bar-tests-native.d.ts index 450540baf7..4592578460 100644 --- a/tests/app/ui/segmented-bar/segmented-bar-tests-native.d.ts +++ b/tests/app/ui/segmented-bar/segmented-bar-tests-native.d.ts @@ -1,5 +1,5 @@ //@private -import * as segmentedBarModule from "tns-core-modules/ui/segmented-bar"; +import * as segmentedBarModule from "@nativescript/core/ui/segmented-bar"; export declare function getNativeItemsCount(bar: segmentedBarModule.SegmentedBar): number; export declare function setNativeSelectedIndex(bar: segmentedBarModule.SegmentedBar, index: number): void; diff --git a/tests/app/ui/segmented-bar/segmented-bar-tests-native.ios.ts b/tests/app/ui/segmented-bar/segmented-bar-tests-native.ios.ts index b4da9c29d0..32857b7350 100644 --- a/tests/app/ui/segmented-bar/segmented-bar-tests-native.ios.ts +++ b/tests/app/ui/segmented-bar/segmented-bar-tests-native.ios.ts @@ -1,4 +1,4 @@ -import * as segmentedBarModule from "tns-core-modules/ui/segmented-bar"; +import * as segmentedBarModule from "@nativescript/core/ui/segmented-bar"; export function getNativeItemsCount(bar: segmentedBarModule.SegmentedBar): number { return (bar.nativeViewProtected).numberOfSegments; diff --git a/tests/app/ui/segmented-bar/segmented-bar-tests.ts b/tests/app/ui/segmented-bar/segmented-bar-tests.ts index 24caeab0ba..c918bc3ab4 100644 --- a/tests/app/ui/segmented-bar/segmented-bar-tests.ts +++ b/tests/app/ui/segmented-bar/segmented-bar-tests.ts @@ -1,14 +1,14 @@ import * as TKUnit from "../../tk-unit"; import * as segmentedBarTestsNative from "./segmented-bar-tests-native"; import { buildUIAndRunTest } from "../../ui-helper"; -import { View } from "tns-core-modules/ui/core/view"; -import { BindingOptions } from "tns-core-modules/ui/core/bindable"; -import { Observable } from "tns-core-modules/data/observable"; -import { Color } from "tns-core-modules/color"; +import { View } from "@nativescript/core/ui/core/view"; +import { BindingOptions } from "@nativescript/core/ui/core/bindable"; +import { Observable } from "@nativescript/core/data/observable"; +import { Color } from "@nativescript/core/color"; import * as helper from "../../ui-helper"; // >> article-require-segmentedbar-module -import * as segmentedBarModule from "tns-core-modules/ui/segmented-bar"; +import * as segmentedBarModule from "@nativescript/core/ui/segmented-bar"; // << article-require-segmentedbar-module function _createSegmentedBar(): segmentedBarModule.SegmentedBar { diff --git a/tests/app/ui/slider/slider-tests.ts b/tests/app/ui/slider/slider-tests.ts index 2fe0276d6c..244315448f 100644 --- a/tests/app/ui/slider/slider-tests.ts +++ b/tests/app/ui/slider/slider-tests.ts @@ -1,14 +1,14 @@ import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; -import { View } from "tns-core-modules/ui/core/view"; -import { Page } from "tns-core-modules/ui/page"; -import { BindingOptions } from "tns-core-modules/ui/core/bindable"; -import { Observable, EventData, PropertyChangeData } from "tns-core-modules/data/observable"; -import { Color } from "tns-core-modules/color"; -import { isIOS } from "tns-core-modules/platform"; +import { View } from "@nativescript/core/ui/core/view"; +import { Page } from "@nativescript/core/ui/page"; +import { BindingOptions } from "@nativescript/core/ui/core/bindable"; +import { Observable, EventData, PropertyChangeData } from "@nativescript/core/data/observable"; +import { Color } from "@nativescript/core/color"; +import { isIOS } from "@nativescript/core/platform"; // >> article-require-slider -import { Slider } from "tns-core-modules/ui/slider"; +import { Slider } from "@nativescript/core/ui/slider"; // << article-require-slider // ### Binding the Progress and Slider value properties to a observable view-model property. diff --git a/tests/app/ui/styling/root-views-css-classes-tests.ts b/tests/app/ui/styling/root-views-css-classes-tests.ts index e30ad6d8a7..b7987b892e 100644 --- a/tests/app/ui/styling/root-views-css-classes-tests.ts +++ b/tests/app/ui/styling/root-views-css-classes-tests.ts @@ -5,24 +5,22 @@ import { android, getRootView, ios -} from "tns-core-modules/application"; +} from "@nativescript/core/application"; import { isAndroid, isIOS, device -} from "tns-core-modules/platform"; -import { Button } from "tns-core-modules/ui/button/button"; -import { Page } from "tns-core-modules/ui/page"; +} from "@nativescript/core/platform"; +import { Button } from "@nativescript/core/ui/button/button"; +import { Page } from "@nativescript/core/ui/page"; import { ShownModallyData, ShowModalOptions, View -} from "tns-core-modules/ui/frame"; -import { - _rootModalViews -} from "tns-core-modules/ui/core/view/view-common"; -import { DeviceType } from "tns-core-modules/ui/enums/enums"; -import { ios as iosUtils } from "tns-core-modules/utils/utils"; +} from "@nativescript/core/ui/frame"; +import { _rootModalViews } from "@nativescript/core/ui/core/view/view-common"; +import { DeviceType } from "@nativescript/core/ui/enums/enums"; +import { ios as iosUtils } from "@nativescript/core/utils/utils"; const CLASS_NAME = "class-name"; const ROOT_CSS_CLASS = "ns-root"; diff --git a/tests/app/ui/styling/style-properties-tests.ts b/tests/app/ui/styling/style-properties-tests.ts index 931270f71a..4610172d63 100644 --- a/tests/app/ui/styling/style-properties-tests.ts +++ b/tests/app/ui/styling/style-properties-tests.ts @@ -1,16 +1,16 @@ import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; -import { Button } from "tns-core-modules/ui/button"; -import { Label } from "tns-core-modules/ui/label"; -import { TextField } from "tns-core-modules/ui/text-field"; -import { TextView } from "tns-core-modules/ui/text-view"; -import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout"; -import { Color } from "tns-core-modules/color"; -import { isAndroid, isIOS } from "tns-core-modules/platform"; -import { View } from "tns-core-modules/ui/core/view"; -import { Length, PercentLength } from "tns-core-modules/ui/core/view"; -import * as fontModule from "tns-core-modules/ui/styling/font"; -import { LengthPercentUnit, LengthPxUnit } from "tns-core-modules/ui/styling/style-properties"; +import { Button } from "@nativescript/core/ui/button"; +import { Label } from "@nativescript/core/ui/label"; +import { TextField } from "@nativescript/core/ui/text-field"; +import { TextView } from "@nativescript/core/ui/text-view"; +import { StackLayout } from "@nativescript/core/ui/layouts/stack-layout"; +import { Color } from "@nativescript/core/color"; +import { isAndroid, isIOS } from "@nativescript/core/platform"; +import { View } from "@nativescript/core/ui/core/view"; +import { Length, PercentLength } from "@nativescript/core/ui/core/view"; +import * as fontModule from "@nativescript/core/ui/styling/font"; +import { LengthPercentUnit, LengthPxUnit } from "@nativescript/core/ui/styling/style-properties"; export function test_setting_textDecoration_property_from_CSS_is_applied_to_Style() { test_property_from_CSS_is_applied_to_style("textDecoration", "text-decoration", "underline"); diff --git a/tests/app/ui/styling/style-tests.ts b/tests/app/ui/styling/style-tests.ts index 004ddeacd5..0eb398cdc3 100644 --- a/tests/app/ui/styling/style-tests.ts +++ b/tests/app/ui/styling/style-tests.ts @@ -1,19 +1,19 @@ import * as TKUnit from "../../tk-unit"; -import * as application from "tns-core-modules/application"; -import * as buttonModule from "tns-core-modules/ui/button"; -import * as labelModule from "tns-core-modules/ui/label"; -import * as pageModule from "tns-core-modules/ui/page"; -import * as stackModule from "tns-core-modules/ui/layouts/stack-layout"; -import * as wrapModule from "tns-core-modules/ui/layouts/wrap-layout"; -import * as tabViewModule from "tns-core-modules/ui/tab-view"; +import * as application from "@nativescript/core/application"; +import * as buttonModule from "@nativescript/core/ui/button"; +import * as labelModule from "@nativescript/core/ui/label"; +import * as pageModule from "@nativescript/core/ui/page"; +import * as stackModule from "@nativescript/core/ui/layouts/stack-layout"; +import * as wrapModule from "@nativescript/core/ui/layouts/wrap-layout"; +import * as tabViewModule from "@nativescript/core/ui/tab-view"; import * as helper from "../../ui-helper"; -import * as types from "tns-core-modules/utils/types"; -import * as viewModule from "tns-core-modules/ui/core/view"; -import { resolveFileNameFromUrl, removeTaggedAdditionalCSS, addTaggedAdditionalCSS } from "tns-core-modules/ui/styling/style-scope"; -import { unsetValue } from "tns-core-modules/ui/core/view"; -import * as color from "tns-core-modules/color"; -import * as fs from "tns-core-modules/file-system"; -import { _evaluateCssCalcExpression } from "tns-core-modules/ui/core/properties/properties"; +import * as types from "@nativescript/core/utils/types"; +import * as viewModule from "@nativescript/core/ui/core/view"; +import { resolveFileNameFromUrl, removeTaggedAdditionalCSS, addTaggedAdditionalCSS } from "@nativescript/core/ui/styling/style-scope"; +import { unsetValue } from "@nativescript/core/ui/core/view"; +import * as color from "@nativescript/core/color"; +import * as fs from "@nativescript/core/file-system"; +import { _evaluateCssCalcExpression } from "@nativescript/core/ui/core/properties/properties"; export function test_css_dataURI_is_applied_to_backgroundImageSource() { const stack = new stackModule.StackLayout(); diff --git a/tests/app/ui/styling/value-source-tests.ts b/tests/app/ui/styling/value-source-tests.ts index 2e72c06902..8ae95faa8c 100644 --- a/tests/app/ui/styling/value-source-tests.ts +++ b/tests/app/ui/styling/value-source-tests.ts @@ -1,9 +1,9 @@ -import * as color from "tns-core-modules/color"; -import * as button from "tns-core-modules/ui/button"; -import * as stack from "tns-core-modules/ui/layouts/stack-layout"; +import * as color from "@nativescript/core/color"; +import * as button from "@nativescript/core/ui/button"; +import * as stack from "@nativescript/core/ui/layouts/stack-layout"; import * as helper from "../../ui-helper"; import * as TKUnit from "../../tk-unit"; -import { unsetValue } from "tns-core-modules/ui/core/view"; +import { unsetValue } from "@nativescript/core/ui/core/view"; export var test_value_Inherited_after_unset = function () { let page = helper.getCurrentPage(); diff --git a/tests/app/ui/styling/visual-state-tests.ts b/tests/app/ui/styling/visual-state-tests.ts index b72fabd2c9..e80564f044 100644 --- a/tests/app/ui/styling/visual-state-tests.ts +++ b/tests/app/ui/styling/visual-state-tests.ts @@ -1,7 +1,7 @@ import * as TKUnit from "../../tk-unit"; -import * as view from "tns-core-modules/ui/core/view"; -import * as page from "tns-core-modules/ui/page"; -import * as types from "tns-core-modules/utils/types"; +import * as view from "@nativescript/core/ui/core/view"; +import * as page from "@nativescript/core/ui/page"; +import * as types from "@nativescript/core/utils/types"; import * as helper from "../../ui-helper"; function assertInState(view: view.View, state: string, knownStates: string[]): void { diff --git a/tests/app/ui/switch/switch-tests.ts b/tests/app/ui/switch/switch-tests.ts index 0da19f252c..1926723086 100644 --- a/tests/app/ui/switch/switch-tests.ts +++ b/tests/app/ui/switch/switch-tests.ts @@ -1,12 +1,12 @@ import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; -import * as viewModule from "tns-core-modules/ui/core/view"; -import * as bindable from "tns-core-modules/ui/core/bindable"; -import * as observable from "tns-core-modules/data/observable"; -import * as color from "tns-core-modules/color"; -import * as platform from "tns-core-modules/platform"; +import * as viewModule from "@nativescript/core/ui/core/view"; +import * as bindable from "@nativescript/core/ui/core/bindable"; +import * as observable from "@nativescript/core/data/observable"; +import * as color from "@nativescript/core/color"; +import * as platform from "@nativescript/core/platform"; // >> article-require-switch -import * as switchModule from "tns-core-modules/ui/switch"; +import * as switchModule from "@nativescript/core/ui/switch"; // << article-require-switch // ### Binding the Switch checked property and Button isEanbled property to a observable view-model property. diff --git a/tests/app/ui/tab-view/tab-view-navigation-tests.ts b/tests/app/ui/tab-view/tab-view-navigation-tests.ts index 54cb4489ec..436852570e 100644 --- a/tests/app/ui/tab-view/tab-view-navigation-tests.ts +++ b/tests/app/ui/tab-view/tab-view-navigation-tests.ts @@ -1,13 +1,13 @@ import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; -import { isIOS, isAndroid } from "tns-core-modules/platform"; -import { Label } from "tns-core-modules/ui/label"; -import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout"; -import * as frameModule from "tns-core-modules/ui/frame"; -import { Page } from "tns-core-modules/ui/page"; -import { ListView, ItemEventData } from "tns-core-modules/ui/list-view"; -import { TabView, TabViewItem } from "tns-core-modules/ui/tab-view"; -import { Button } from "tns-core-modules/ui/button"; +import { isIOS, isAndroid } from "@nativescript/core/platform"; +import { Label } from "@nativescript/core/ui/label"; +import { StackLayout } from "@nativescript/core/ui/layouts/stack-layout"; +import * as frameModule from "@nativescript/core/ui/frame"; +import { Page } from "@nativescript/core/ui/page"; +import { ListView, ItemEventData } from "@nativescript/core/ui/list-view"; +import { TabView, TabViewItem } from "@nativescript/core/ui/tab-view"; +import { Button } from "@nativescript/core/ui/button"; var ASYNC = 2; diff --git a/tests/app/ui/tab-view/tab-view-root-tests.ts b/tests/app/ui/tab-view/tab-view-root-tests.ts index 7eab7a11cb..4269c2ac37 100644 --- a/tests/app/ui/tab-view/tab-view-root-tests.ts +++ b/tests/app/ui/tab-view/tab-view-root-tests.ts @@ -1,9 +1,9 @@ import * as TKUnit from "../../tk-unit"; -import { isAndroid } from "tns-core-modules/platform"; -import { _resetRootView } from "tns-core-modules/application/"; -import { Frame, NavigationEntry, topmost } from "tns-core-modules/ui/frame"; -import { Page } from "tns-core-modules/ui/page"; -import { TabView, TabViewItem } from "tns-core-modules/ui/tab-view"; +import { isAndroid } from "@nativescript/core/platform"; +import { _resetRootView } from "@nativescript/core/application/"; +import { Frame, NavigationEntry, topmost } from "@nativescript/core/ui/frame"; +import { Page } from "@nativescript/core/ui/page"; +import { TabView, TabViewItem } from "@nativescript/core/ui/tab-view"; function waitUntilNavigatedToMaxTimeout(pages: Page[], action: Function) { const maxTimeout = 8; diff --git a/tests/app/ui/tab-view/tab-view-tests-native.android.ts b/tests/app/ui/tab-view/tab-view-tests-native.android.ts index 405ee0f32c..fb3678e435 100644 --- a/tests/app/ui/tab-view/tab-view-tests-native.android.ts +++ b/tests/app/ui/tab-view/tab-view-tests-native.android.ts @@ -1,4 +1,4 @@ -import { TabView } from "tns-core-modules/ui/tab-view"; +import { TabView } from "@nativescript/core/ui/tab-view"; export function getNativeTabCount(tabView: TabView): number { const pagerAdapter: androidx.viewpager.widget.PagerAdapter = (tabView)._pagerAdapter; diff --git a/tests/app/ui/tab-view/tab-view-tests-native.d.ts b/tests/app/ui/tab-view/tab-view-tests-native.d.ts index c54065b6d8..441f938e27 100644 --- a/tests/app/ui/tab-view/tab-view-tests-native.d.ts +++ b/tests/app/ui/tab-view/tab-view-tests-native.d.ts @@ -1,5 +1,5 @@ //@private -import { TabView } from "tns-core-modules/ui/tab-view"; +import { TabView } from "@nativescript/core/ui/tab-view"; export function getNativeTabCount(tabView: TabView): number; export function selectNativeTab(tabView: TabView, index: number): void; diff --git a/tests/app/ui/tab-view/tab-view-tests-native.ios.ts b/tests/app/ui/tab-view/tab-view-tests-native.ios.ts index 5d197bd125..c7a3548a94 100644 --- a/tests/app/ui/tab-view/tab-view-tests-native.ios.ts +++ b/tests/app/ui/tab-view/tab-view-tests-native.ios.ts @@ -1,4 +1,4 @@ -import tabViewModule = require("tns-core-modules/ui/tab-view"); +import tabViewModule = require("@nativescript/core/ui/tab-view"); export function getNativeTabCount(tabView: tabViewModule.TabView): number { if (!tabView.ios.viewControllers) { diff --git a/tests/app/ui/tab-view/tab-view-tests.ts b/tests/app/ui/tab-view/tab-view-tests.ts index 3d12fa7dd9..e7ef7aef8e 100644 --- a/tests/app/ui/tab-view/tab-view-tests.ts +++ b/tests/app/ui/tab-view/tab-view-tests.ts @@ -1,14 +1,14 @@ import { UITest } from "../../ui-test"; -import { Label } from "tns-core-modules/ui/label"; -import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout"; -import { unsetValue } from "tns-core-modules/ui/core/view"; +import { Label } from "@nativescript/core/ui/label"; +import { StackLayout } from "@nativescript/core/ui/layouts/stack-layout"; +import { unsetValue } from "@nativescript/core/ui/core/view"; import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; import * as tabViewTestsNative from "./tab-view-tests-native"; // Using a TabView requires the "ui/tab-view" module. // >> article-require-tabview-module -import * as tabViewModule from "tns-core-modules/ui/tab-view"; +import * as tabViewModule from "@nativescript/core/ui/tab-view"; // << article-require-tabview-module export class TabViewTest extends UITest { diff --git a/tests/app/ui/tabs/tabs-navigation-tests.ts b/tests/app/ui/tabs/tabs-navigation-tests.ts index 03e8ca1918..0e3438f552 100644 --- a/tests/app/ui/tabs/tabs-navigation-tests.ts +++ b/tests/app/ui/tabs/tabs-navigation-tests.ts @@ -1,12 +1,12 @@ import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; -import { Label } from "tns-core-modules/ui/label"; -import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout"; -import * as frameModule from "tns-core-modules/ui/frame"; -import { Page } from "tns-core-modules/ui/page"; -import { ListView, ItemEventData } from "tns-core-modules/ui/list-view"; -import { Tabs, TabContentItem, TabStrip, TabStripItem } from "tns-core-modules/ui/tabs"; -import { Button } from "tns-core-modules/ui/button"; +import { Label } from "@nativescript/core/ui/label"; +import { StackLayout } from "@nativescript/core/ui/layouts/stack-layout"; +import * as frameModule from "@nativescript/core/ui/frame"; +import { Page } from "@nativescript/core/ui/page"; +import { ListView, ItemEventData } from "@nativescript/core/ui/list-view"; +import { Tabs, TabContentItem, TabStrip, TabStripItem } from "@nativescript/core/ui/tabs"; +import { Button } from "@nativescript/core/ui/button"; var ASYNC = 2; diff --git a/tests/app/ui/tabs/tabs-root-tests.ts b/tests/app/ui/tabs/tabs-root-tests.ts index c06f6d0dbf..1ab08b6c81 100644 --- a/tests/app/ui/tabs/tabs-root-tests.ts +++ b/tests/app/ui/tabs/tabs-root-tests.ts @@ -1,8 +1,8 @@ import * as TKUnit from "../../tk-unit"; -import { _resetRootView } from "tns-core-modules/application/"; -import { Frame, NavigationEntry, topmost } from "tns-core-modules/ui/frame"; -import { Page } from "tns-core-modules/ui/page"; -import { Tabs, TabContentItem, TabStrip, TabStripItem } from "tns-core-modules/ui/tabs"; +import { _resetRootView } from "@nativescript/core/application/"; +import { Frame, NavigationEntry, topmost } from "@nativescript/core/ui/frame"; +import { Page } from "@nativescript/core/ui/page"; +import { Tabs, TabContentItem, TabStrip, TabStripItem } from "@nativescript/core/ui/tabs"; function waitUntilNavigatedToMaxTimeout(pages: Page[], action: Function) { const maxTimeout = 8; diff --git a/tests/app/ui/tabs/tabs-tests-native.android.ts b/tests/app/ui/tabs/tabs-tests-native.android.ts index b58d76b593..111a86b0d0 100644 --- a/tests/app/ui/tabs/tabs-tests-native.android.ts +++ b/tests/app/ui/tabs/tabs-tests-native.android.ts @@ -1,4 +1,4 @@ -import { BottomNavigation } from "tns-core-modules/ui/bottom-navigation"; +import { BottomNavigation } from "@nativescript/core/ui/bottom-navigation"; export function getNativeTabCount(tabView: BottomNavigation): number { // there is no native tab content view implementation for Android Bottom Navigation diff --git a/tests/app/ui/tabs/tabs-tests-native.d.ts b/tests/app/ui/tabs/tabs-tests-native.d.ts index c54065b6d8..441f938e27 100644 --- a/tests/app/ui/tabs/tabs-tests-native.d.ts +++ b/tests/app/ui/tabs/tabs-tests-native.d.ts @@ -1,5 +1,5 @@ //@private -import { TabView } from "tns-core-modules/ui/tab-view"; +import { TabView } from "@nativescript/core/ui/tab-view"; export function getNativeTabCount(tabView: TabView): number; export function selectNativeTab(tabView: TabView, index: number): void; diff --git a/tests/app/ui/tabs/tabs-tests-native.ios.ts b/tests/app/ui/tabs/tabs-tests-native.ios.ts index 2644cb1571..e55b8307de 100644 --- a/tests/app/ui/tabs/tabs-tests-native.ios.ts +++ b/tests/app/ui/tabs/tabs-tests-native.ios.ts @@ -1,4 +1,4 @@ -import { Tabs } from "tns-core-modules/ui/tabs"; +import { Tabs } from "@nativescript/core/ui/tabs"; // TODO: Should we add getCount to UIPageViewController??? export function getNativeTabCount(tabView: Tabs): number { diff --git a/tests/app/ui/tabs/tabs-tests.ts b/tests/app/ui/tabs/tabs-tests.ts index 2e5d34de60..f609d85693 100644 --- a/tests/app/ui/tabs/tabs-tests.ts +++ b/tests/app/ui/tabs/tabs-tests.ts @@ -1,10 +1,10 @@ import { UITest } from "../../ui-test"; -import { Label } from "tns-core-modules/ui/label"; +import { Label } from "@nativescript/core/ui/label"; import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; import * as tabViewTestsNative from "./tabs-tests-native"; -import { Tabs, TabContentItem, TabStrip, TabStripItem, SelectedIndexChangedEventData } from "tns-core-modules/ui/tabs"; +import { Tabs, TabContentItem, TabStrip, TabStripItem, SelectedIndexChangedEventData } from "@nativescript/core/ui/tabs"; export class TabsTest extends UITest { diff --git a/tests/app/ui/test-pages/bindingExpressions_arrayAccess_testPage.ts b/tests/app/ui/test-pages/bindingExpressions_arrayAccess_testPage.ts index dece8594bc..cbd37fee94 100644 --- a/tests/app/ui/test-pages/bindingExpressions_arrayAccess_testPage.ts +++ b/tests/app/ui/test-pages/bindingExpressions_arrayAccess_testPage.ts @@ -1,4 +1,4 @@ -import * as pages from "tns-core-modules/ui/page"; +import * as pages from "@nativescript/core/ui/page"; export function pageLoaded(args) { var strArr: string[] = ["tests", "bindings", "tests"]; diff --git a/tests/app/ui/test-pages/bindingExpressions_binaryOperators_testPage.ts b/tests/app/ui/test-pages/bindingExpressions_binaryOperators_testPage.ts index 1688dde51a..1cdbee5658 100644 --- a/tests/app/ui/test-pages/bindingExpressions_binaryOperators_testPage.ts +++ b/tests/app/ui/test-pages/bindingExpressions_binaryOperators_testPage.ts @@ -1,4 +1,4 @@ -import * as pages from "tns-core-modules/ui/page"; +import * as pages from "@nativescript/core/ui/page"; export function pageLoaded(args) { var page = args.object; diff --git a/tests/app/ui/test-pages/bindingExpressions_comparisonOperators_testPage.ts b/tests/app/ui/test-pages/bindingExpressions_comparisonOperators_testPage.ts index 1688dde51a..1cdbee5658 100644 --- a/tests/app/ui/test-pages/bindingExpressions_comparisonOperators_testPage.ts +++ b/tests/app/ui/test-pages/bindingExpressions_comparisonOperators_testPage.ts @@ -1,4 +1,4 @@ -import * as pages from "tns-core-modules/ui/page"; +import * as pages from "@nativescript/core/ui/page"; export function pageLoaded(args) { var page = args.object; diff --git a/tests/app/ui/test-pages/bindingExpressions_groupingParenthesis_testPage.ts b/tests/app/ui/test-pages/bindingExpressions_groupingParenthesis_testPage.ts index 97934dd152..708e4fe735 100644 --- a/tests/app/ui/test-pages/bindingExpressions_groupingParenthesis_testPage.ts +++ b/tests/app/ui/test-pages/bindingExpressions_groupingParenthesis_testPage.ts @@ -1,4 +1,4 @@ -import * as pages from "tns-core-modules/ui/page"; +import * as pages from "@nativescript/core/ui/page"; export function pageLoaded(args) { var page = args.object; diff --git a/tests/app/ui/test-pages/bindingExpressions_logicalComparisonOperators_testPage.ts b/tests/app/ui/test-pages/bindingExpressions_logicalComparisonOperators_testPage.ts index 98a1ad136e..2911cc1e13 100644 --- a/tests/app/ui/test-pages/bindingExpressions_logicalComparisonOperators_testPage.ts +++ b/tests/app/ui/test-pages/bindingExpressions_logicalComparisonOperators_testPage.ts @@ -1,4 +1,4 @@ -import * as pages from "tns-core-modules/ui/page"; +import * as pages from "@nativescript/core/ui/page"; export function pageLoaded(args) { var page = args.object; diff --git a/tests/app/ui/test-pages/bindingExpressions_logicalOperators_testPage.ts b/tests/app/ui/test-pages/bindingExpressions_logicalOperators_testPage.ts index 98a1ad136e..2911cc1e13 100644 --- a/tests/app/ui/test-pages/bindingExpressions_logicalOperators_testPage.ts +++ b/tests/app/ui/test-pages/bindingExpressions_logicalOperators_testPage.ts @@ -1,4 +1,4 @@ -import * as pages from "tns-core-modules/ui/page"; +import * as pages from "@nativescript/core/ui/page"; export function pageLoaded(args) { var page = args.object; diff --git a/tests/app/ui/test-pages/bindingExpressions_ternaryOperator_testPage.ts b/tests/app/ui/test-pages/bindingExpressions_ternaryOperator_testPage.ts index a8fbe41567..d09c89f5cd 100644 --- a/tests/app/ui/test-pages/bindingExpressions_ternaryOperator_testPage.ts +++ b/tests/app/ui/test-pages/bindingExpressions_ternaryOperator_testPage.ts @@ -1,4 +1,4 @@ -import * as pages from "tns-core-modules/ui/page"; +import * as pages from "@nativescript/core/ui/page"; export function pageLoaded(args) { var page = args.object; diff --git a/tests/app/ui/test-pages/bindingExpressions_unaryOperators_testPage.ts b/tests/app/ui/test-pages/bindingExpressions_unaryOperators_testPage.ts index 5cde55388d..d0ce3ea9ec 100644 --- a/tests/app/ui/test-pages/bindingExpressions_unaryOperators_testPage.ts +++ b/tests/app/ui/test-pages/bindingExpressions_unaryOperators_testPage.ts @@ -1,4 +1,4 @@ -import * as pages from "tns-core-modules/ui/page"; +import * as pages from "@nativescript/core/ui/page"; export function pageLoaded(args) { var page = args.object; diff --git a/tests/app/ui/text-field/text-field-tests-native.android.ts b/tests/app/ui/text-field/text-field-tests-native.android.ts index ecc60ef5b8..8dfa28ab6b 100644 --- a/tests/app/ui/text-field/text-field-tests-native.android.ts +++ b/tests/app/ui/text-field/text-field-tests-native.android.ts @@ -1,7 +1,7 @@ -import * as textFieldModule from "tns-core-modules/ui/text-field"; -import * as colorModule from "tns-core-modules/color"; -import * as utilsModule from "tns-core-modules/utils/utils"; -import * as enums from "tns-core-modules/ui/enums"; +import * as textFieldModule from "@nativescript/core/ui/text-field"; +import * as colorModule from "@nativescript/core/color"; +import * as utilsModule from "@nativescript/core/utils/utils"; +import * as enums from "@nativescript/core/ui/enums"; export function getNativeText(textField: textFieldModule.TextField): string { return textField.android.getText().toString(); diff --git a/tests/app/ui/text-field/text-field-tests-native.d.ts b/tests/app/ui/text-field/text-field-tests-native.d.ts index 4cb771c9ef..42e294ffd1 100644 --- a/tests/app/ui/text-field/text-field-tests-native.d.ts +++ b/tests/app/ui/text-field/text-field-tests-native.d.ts @@ -1,6 +1,6 @@ //@private -import * as textFieldModule from "tns-core-modules/ui/text-field"; -import * as colorModule from "tns-core-modules/color"; +import * as textFieldModule from "@nativescript/core/ui/text-field"; +import * as colorModule from "@nativescript/core/color"; export declare function getNativeText(textField: textFieldModule.TextField): string; export declare function getNativeHint(textField: textFieldModule.TextField): string; diff --git a/tests/app/ui/text-field/text-field-tests-native.ios.ts b/tests/app/ui/text-field/text-field-tests-native.ios.ts index ab14e166a7..03f1665932 100644 --- a/tests/app/ui/text-field/text-field-tests-native.ios.ts +++ b/tests/app/ui/text-field/text-field-tests-native.ios.ts @@ -1,7 +1,7 @@ -import * as textFieldModule from "tns-core-modules/ui/text-field"; -import * as colorModule from "tns-core-modules/color"; +import * as textFieldModule from "@nativescript/core/ui/text-field"; +import * as colorModule from "@nativescript/core/color"; import { getColor } from "../../ui-helper"; -import * as enums from "tns-core-modules/ui/enums"; +import * as enums from "@nativescript/core/ui/enums"; export function getNativeText(textField: textFieldModule.TextField): string { return textField.ios.text; diff --git a/tests/app/ui/text-field/text-field-tests.ts b/tests/app/ui/text-field/text-field-tests.ts index c11206bbfd..b17cff7850 100644 --- a/tests/app/ui/text-field/text-field-tests.ts +++ b/tests/app/ui/text-field/text-field-tests.ts @@ -1,25 +1,25 @@ import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; -import { View, isIOS } from "tns-core-modules/ui/core/view"; -import { Page } from "tns-core-modules/ui/page"; -import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout"; -import { Color } from "tns-core-modules/color"; +import { View, isIOS } from "@nativescript/core/ui/core/view"; +import { Page } from "@nativescript/core/ui/page"; +import { StackLayout } from "@nativescript/core/ui/layouts/stack-layout"; +import { Color } from "@nativescript/core/color"; import { getNativeText, getNativeHint, typeTextNatively, getNativeSecure, getNativeFontSize, getNativeColor, getNativeBackgroundColor, getNativeTextAlignment, getNativePlaceholderColor } from "./text-field-tests-native"; -import { FormattedString } from "tns-core-modules/text/formatted-string"; -import { Span } from "tns-core-modules/text/span"; +import { FormattedString } from "@nativescript/core/text/formatted-string"; +import { Span } from "@nativescript/core/text/span"; // >> require-textfield -import { TextField } from "tns-core-modules/ui/text-field"; +import { TextField } from "@nativescript/core/ui/text-field"; // << require-textfield // Other frequently used modules when working with buttons include: // >> require-observable-binding-options-textfield -import { BindingOptions } from "tns-core-modules/ui/core/bindable"; +import { BindingOptions } from "@nativescript/core/ui/core/bindable"; -import { Observable } from "tns-core-modules/data/observable"; +import { Observable } from "@nativescript/core/data/observable"; // << require-observable-binding-options-textfield // ### Binding two TextFields text property to observable view-model property. diff --git a/tests/app/ui/text-view/text-view-tests-native.android.ts b/tests/app/ui/text-view/text-view-tests-native.android.ts index 2d336d0508..25adc22904 100644 --- a/tests/app/ui/text-view/text-view-tests-native.android.ts +++ b/tests/app/ui/text-view/text-view-tests-native.android.ts @@ -1,7 +1,7 @@ -import * as textViewModule from "tns-core-modules/ui/text-view"; -import * as colorModule from "tns-core-modules/color"; -import * as utilsModule from "tns-core-modules/utils/utils"; -import * as enums from "tns-core-modules/ui/enums"; +import * as textViewModule from "@nativescript/core/ui/text-view"; +import * as colorModule from "@nativescript/core/color"; +import * as utilsModule from "@nativescript/core/utils/utils"; +import * as enums from "@nativescript/core/ui/enums"; export function getNativeText(textView: textViewModule.TextView): string { return textView.android.getText().toString(); diff --git a/tests/app/ui/text-view/text-view-tests-native.d.ts b/tests/app/ui/text-view/text-view-tests-native.d.ts index 2f6acfcf45..93ba627088 100644 --- a/tests/app/ui/text-view/text-view-tests-native.d.ts +++ b/tests/app/ui/text-view/text-view-tests-native.d.ts @@ -1,6 +1,6 @@ //@private -import * as textViewModule from "tns-core-modules/ui/text-view"; -import * as colorModule from "tns-core-modules/color"; +import * as textViewModule from "@nativescript/core/ui/text-view"; +import * as colorModule from "@nativescript/core/color"; export declare function getNativeText(textView: textViewModule.TextView): string; export declare function getNativeHint(textView: textViewModule.TextView): string; diff --git a/tests/app/ui/text-view/text-view-tests-native.ios.ts b/tests/app/ui/text-view/text-view-tests-native.ios.ts index 4aeae4985e..790670e5b8 100644 --- a/tests/app/ui/text-view/text-view-tests-native.ios.ts +++ b/tests/app/ui/text-view/text-view-tests-native.ios.ts @@ -1,7 +1,7 @@ -import * as textViewModule from "tns-core-modules/ui/text-view"; -import * as colorModule from "tns-core-modules/color"; +import * as textViewModule from "@nativescript/core/ui/text-view"; +import * as colorModule from "@nativescript/core/color"; import { getColor } from "../../ui-helper"; -import * as enums from "tns-core-modules/ui/enums"; +import * as enums from "@nativescript/core/ui/enums"; export function getNativeText(textView: textViewModule.TextView): string { return textView.ios.text; diff --git a/tests/app/ui/text-view/text-view-tests.ts b/tests/app/ui/text-view/text-view-tests.ts index 2df5b7baa1..5add67c0fc 100644 --- a/tests/app/ui/text-view/text-view-tests.ts +++ b/tests/app/ui/text-view/text-view-tests.ts @@ -1,20 +1,20 @@ import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; -import * as viewModule from "tns-core-modules/ui/core/view"; -import * as pagesModule from "tns-core-modules/ui/page"; +import * as viewModule from "@nativescript/core/ui/core/view"; +import * as pagesModule from "@nativescript/core/ui/page"; import * as textViewTestsNative from "./text-view-tests-native"; -import * as colorModule from "tns-core-modules/color"; -import * as enums from "tns-core-modules/ui/enums"; -import * as platform from "tns-core-modules/platform"; +import * as colorModule from "@nativescript/core/color"; +import * as enums from "@nativescript/core/ui/enums"; +import * as platform from "@nativescript/core/platform"; // >> require-textmodules -import * as textViewModule from "tns-core-modules/ui/text-view"; +import * as textViewModule from "@nativescript/core/ui/text-view"; // << require-textmodules // Other frequently used modules when working with buttons include: -import * as bindable from "tns-core-modules/ui/core/bindable"; +import * as bindable from "@nativescript/core/ui/core/bindable"; // >> require-observable-textview -import * as observable from "tns-core-modules/data/observable"; +import * as observable from "@nativescript/core/data/observable"; // << require-observable-textview // >> text-view-xml diff --git a/tests/app/ui/time-picker/time-picker-tests-native.android.ts b/tests/app/ui/time-picker/time-picker-tests-native.android.ts index 55fde70098..796388ee78 100644 --- a/tests/app/ui/time-picker/time-picker-tests-native.android.ts +++ b/tests/app/ui/time-picker/time-picker-tests-native.android.ts @@ -1,4 +1,4 @@ -import * as timePickerModule from "tns-core-modules/ui/time-picker"; +import * as timePickerModule from "@nativescript/core/ui/time-picker"; export function getNativeHour(timePicker: timePickerModule.TimePicker): number { return timePicker.android.getCurrentHour().intValue(); diff --git a/tests/app/ui/time-picker/time-picker-tests-native.d.ts b/tests/app/ui/time-picker/time-picker-tests-native.d.ts index 60e63debd5..0a12f66995 100644 --- a/tests/app/ui/time-picker/time-picker-tests-native.d.ts +++ b/tests/app/ui/time-picker/time-picker-tests-native.d.ts @@ -1,5 +1,5 @@ //@private -import * as timePickerModule from "tns-core-modules/ui/time-picker"; +import * as timePickerModule from "@nativescript/core/ui/time-picker"; export declare function getNativeHour(timePicker: timePickerModule.TimePicker): number; export declare function getNativeMinute(timePicker: timePickerModule.TimePicker): number; diff --git a/tests/app/ui/time-picker/time-picker-tests-native.ios.ts b/tests/app/ui/time-picker/time-picker-tests-native.ios.ts index b8f06729c2..5c90a3f98a 100644 --- a/tests/app/ui/time-picker/time-picker-tests-native.ios.ts +++ b/tests/app/ui/time-picker/time-picker-tests-native.ios.ts @@ -1,4 +1,4 @@ -import * as timePickerModule from "tns-core-modules/ui/time-picker"; +import * as timePickerModule from "@nativescript/core/ui/time-picker"; export function getNativeHour(timePicker: timePickerModule.TimePicker): number { return NSCalendar.currentCalendar.componentsFromDate(NSCalendarUnit.CalendarUnitHour | NSCalendarUnit.CalendarUnitMinute, timePicker.ios.date).hour; diff --git a/tests/app/ui/time-picker/time-picker-tests.ts b/tests/app/ui/time-picker/time-picker-tests.ts index 0856826eee..0209788067 100644 --- a/tests/app/ui/time-picker/time-picker-tests.ts +++ b/tests/app/ui/time-picker/time-picker-tests.ts @@ -1,12 +1,12 @@ import * as TKUnit from "../../tk-unit"; import * as testModule from "../../ui-test"; import * as timePickerTestsNative from "./time-picker-tests-native"; -import * as color from "tns-core-modules/color"; -import * as platform from "tns-core-modules/platform"; +import * as color from "@nativescript/core/color"; +import * as platform from "@nativescript/core/platform"; import * as helper from "../../ui-helper"; // >> require-time-picker -import * as timePickerModule from "tns-core-modules/ui/time-picker"; +import * as timePickerModule from "@nativescript/core/ui/time-picker"; // << require-time-picker function assertTime(timePicker: timePickerModule.TimePicker, expectedHour: number, expectedMinute) { diff --git a/tests/app/ui/view/view-tests-common.ts b/tests/app/ui/view/view-tests-common.ts index c1a8cc05d9..8961d79b1a 100644 --- a/tests/app/ui/view/view-tests-common.ts +++ b/tests/app/ui/view/view-tests-common.ts @@ -1,19 +1,19 @@ import * as TKUnit from "../../tk-unit"; -import { View, eachDescendant, getViewById, InheritedProperty, CssProperty, CssAnimationProperty, ShorthandProperty, Property, Style } from "tns-core-modules/ui/core/view"; -import { topmost } from "tns-core-modules/ui/frame"; -import { Page } from "tns-core-modules/ui/page"; -import { Button } from "tns-core-modules/ui/button"; -import { Label } from "tns-core-modules/ui/label"; -import { Color } from "tns-core-modules/color"; -import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout"; -import { AbsoluteLayout } from "tns-core-modules/ui/layouts/absolute-layout"; -import * as types from "tns-core-modules/utils/types"; +import { View, eachDescendant, getViewById, InheritedProperty, CssProperty, CssAnimationProperty, ShorthandProperty, Property, Style } from "@nativescript/core/ui/core/view"; +import { topmost } from "@nativescript/core/ui/frame"; +import { Page } from "@nativescript/core/ui/page"; +import { Button } from "@nativescript/core/ui/button"; +import { Label } from "@nativescript/core/ui/label"; +import { Color } from "@nativescript/core/color"; +import { StackLayout } from "@nativescript/core/ui/layouts/stack-layout"; +import { AbsoluteLayout } from "@nativescript/core/ui/layouts/absolute-layout"; +import * as types from "@nativescript/core/utils/types"; import * as helper from "../../ui-helper"; -import * as observable from "tns-core-modules/data/observable"; -import * as bindable from "tns-core-modules/ui/core/bindable"; +import * as observable from "@nativescript/core/data/observable"; +import * as bindable from "@nativescript/core/ui/core/bindable"; import * as definition from "./view-tests"; -import { isAndroid } from "tns-core-modules/platform"; -import { LayoutBase } from "tns-core-modules/ui/layouts/layout-base"; +import { isAndroid } from "@nativescript/core/platform"; +import { LayoutBase } from "@nativescript/core/ui/layouts/layout-base"; export function test_eachDescendant() { const test = function (views: Array) { diff --git a/tests/app/ui/view/view-tests-layout-event.ts b/tests/app/ui/view/view-tests-layout-event.ts index 6fbfb392ea..e932239229 100644 --- a/tests/app/ui/view/view-tests-layout-event.ts +++ b/tests/app/ui/view/view-tests-layout-event.ts @@ -1,6 +1,6 @@ -import { View } from "tns-core-modules/ui/core/view"; -import { Button } from "tns-core-modules/ui/button"; -import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout/stack-layout"; +import { View } from "@nativescript/core/ui/core/view"; +import { Button } from "@nativescript/core/ui/button"; +import { StackLayout } from "@nativescript/core/ui/layouts/stack-layout/stack-layout"; import * as helper from "../../ui-helper"; import * as TKUnit from "../../tk-unit"; diff --git a/tests/app/ui/view/view-tests.android.ts b/tests/app/ui/view/view-tests.android.ts index 1397d467f0..bf8dd9f09d 100644 --- a/tests/app/ui/view/view-tests.android.ts +++ b/tests/app/ui/view/view-tests.android.ts @@ -1,12 +1,12 @@ import * as TKUnit from "../../tk-unit"; import * as helper from "../../ui-helper"; -import { View, isIOS, unsetValue } from "tns-core-modules/ui/core/view"; -import { Button } from "tns-core-modules/ui/button"; -import * as types from "tns-core-modules/utils/types"; -import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout"; -import { Label } from "tns-core-modules/ui/label"; -import * as trace from "tns-core-modules/trace"; -import { Color } from "tns-core-modules/color"; +import { View, isIOS, unsetValue } from "@nativescript/core/ui/core/view"; +import { Button } from "@nativescript/core/ui/button"; +import * as types from "@nativescript/core/utils/types"; +import { StackLayout } from "@nativescript/core/ui/layouts/stack-layout"; +import { Label } from "@nativescript/core/ui/label"; +import * as trace from "@nativescript/core/trace"; +import { Color } from "@nativescript/core/color"; // enable the trace, it is disabled by default trace.enable(); diff --git a/tests/app/ui/view/view-tests.d.ts b/tests/app/ui/view/view-tests.d.ts index 58580a1ca5..5b7c9bb965 100644 --- a/tests/app/ui/view/view-tests.d.ts +++ b/tests/app/ui/view/view-tests.d.ts @@ -1,5 +1,5 @@ //@private -import * as view from "tns-core-modules/ui/core/view"; +import * as view from "@nativescript/core/ui/core/view"; export declare function getUniformNativeBorderWidth(v: view.View): number; diff --git a/tests/app/ui/view/view-tests.ios.ts b/tests/app/ui/view/view-tests.ios.ts index f6518a141a..d4208c6179 100644 --- a/tests/app/ui/view/view-tests.ios.ts +++ b/tests/app/ui/view/view-tests.ios.ts @@ -1,10 +1,10 @@ -import { View } from "tns-core-modules/ui/core/view"; -import { Button } from "tns-core-modules/ui/button"; -import { GridLayout } from "tns-core-modules/ui/layouts/grid-layout"; -import { Color } from "tns-core-modules/color"; +import { View } from "@nativescript/core/ui/core/view"; +import { Button } from "@nativescript/core/ui/button"; +import { GridLayout } from "@nativescript/core/ui/layouts/grid-layout"; +import { Color } from "@nativescript/core/color"; import * as helper from "../../ui-helper"; import * as TKUnit from "../../tk-unit"; -import * as utils from "tns-core-modules/utils/utils"; +import * as utils from "@nativescript/core/utils/utils"; export * from "./view-tests-common"; diff --git a/tests/app/ui/web-view/web-view-code-snippet.ts b/tests/app/ui/web-view/web-view-code-snippet.ts index cc52164964..bfe1a42a3f 100644 --- a/tests/app/ui/web-view/web-view-code-snippet.ts +++ b/tests/app/ui/web-view/web-view-code-snippet.ts @@ -1,7 +1,7 @@ // >> web-view-loaded -import { EventData } from "tns-core-modules/data/observable"; -import { WebView } from "tns-core-modules/ui/web-view"; -import { isAndroid } from "tns-core-modules/platform"; +import { EventData } from "@nativescript/core/data/observable"; +import { WebView } from "@nativescript/core/ui/web-view"; +import { isAndroid } from "@nativescript/core/platform"; export function navigatingTo(args: EventData) { console.log("page navigating to"); diff --git a/tests/app/ui/web-view/web-view-safe-area-tests.ts b/tests/app/ui/web-view/web-view-safe-area-tests.ts index 9382390345..3639796c1b 100644 --- a/tests/app/ui/web-view/web-view-safe-area-tests.ts +++ b/tests/app/ui/web-view/web-view-safe-area-tests.ts @@ -1,9 +1,9 @@ import * as helper from "../../ui-helper"; import * as TKUnit from "../../tk-unit"; -import { parse } from "tns-core-modules/ui/builder"; -import * as view from "tns-core-modules/ui/core/view"; -import * as platform from "tns-core-modules/platform"; -import { WebView } from "tns-core-modules/ui/web-view"; +import { parse } from "@nativescript/core/ui/builder"; +import * as view from "@nativescript/core/ui/core/view"; +import * as platform from "@nativescript/core/platform"; +import { WebView } from "@nativescript/core/ui/web-view"; import { UITest } from "../../ui-test"; import { left, top, right, bottom, equal } from "../layouts/layout-tests-helper"; diff --git a/tests/app/ui/web-view/web-view-tests.ts b/tests/app/ui/web-view/web-view-tests.ts index 3b35d8e26f..9005affd6b 100644 --- a/tests/app/ui/web-view/web-view-tests.ts +++ b/tests/app/ui/web-view/web-view-tests.ts @@ -2,7 +2,7 @@ import * as TKUnit from "../../tk-unit"; import * as testModule from "../../ui-test"; // >> webview-require -import * as webViewModule from "tns-core-modules/ui/web-view"; +import * as webViewModule from "@nativescript/core/ui/web-view"; // << webview-require // >> declare-webview-xml diff --git a/tests/app/utils/utils-tests.ts b/tests/app/utils/utils-tests.ts index 0cf64f5ee8..8eb721376d 100644 --- a/tests/app/utils/utils-tests.ts +++ b/tests/app/utils/utils-tests.ts @@ -1,6 +1,6 @@ import * as TKUnit from "../tk-unit"; -import * as utils from "tns-core-modules/utils/utils"; -import { isIOS } from "tns-core-modules/platform"; +import * as utils from "@nativescript/core/utils/utils"; +import { isIOS } from "@nativescript/core/platform"; export function test_GC_isDefined() { TKUnit.assertNotEqual(utils.GC, undefined, "Method utils.GC() should be defined!"); diff --git a/tests/app/xhr/xhr-tests.ts b/tests/app/xhr/xhr-tests.ts index bfd82293ee..a3faad6493 100644 --- a/tests/app/xhr/xhr-tests.ts +++ b/tests/app/xhr/xhr-tests.ts @@ -1,6 +1,6 @@ /* tslint:disable:no-unused-variable */ import * as TKUnit from "../tk-unit"; -import * as types from "tns-core-modules/utils/types"; +import * as types from "@nativescript/core/utils/types"; export var test_XMLHttpRequest_isDefined = function () { TKUnit.assert(types.isDefined(global["XMLHttpRequest"]), "XMLHttpRequest should be defined!"); diff --git a/tests/app/xml-declaration/inherited-base-page.ts b/tests/app/xml-declaration/inherited-base-page.ts index 4b47045a8f..5ae6adfcc7 100644 --- a/tests/app/xml-declaration/inherited-base-page.ts +++ b/tests/app/xml-declaration/inherited-base-page.ts @@ -1,4 +1,4 @@ -import { Page } from "tns-core-modules/ui/page"; +import { Page } from "@nativescript/core/ui/page"; export class InheritedPage extends Page { } diff --git a/tests/app/xml-declaration/inherited-page.ts b/tests/app/xml-declaration/inherited-page.ts index 2d214f78ce..c70e0020a4 100644 --- a/tests/app/xml-declaration/inherited-page.ts +++ b/tests/app/xml-declaration/inherited-page.ts @@ -1,5 +1,5 @@ -import { Page } from "tns-core-modules/ui/page"; -import { Label } from "tns-core-modules/ui/label"; +import { Page } from "@nativescript/core/ui/page"; +import { Label } from "@nativescript/core/ui/label"; export function pageLoaded(args) { var page = args.object; diff --git a/tests/app/xml-declaration/mainPage.ts b/tests/app/xml-declaration/mainPage.ts index 41f9a0d2fa..88f9158d23 100644 --- a/tests/app/xml-declaration/mainPage.ts +++ b/tests/app/xml-declaration/mainPage.ts @@ -1,8 +1,8 @@ -import * as observable from "tns-core-modules/data/observable"; -import * as view from "tns-core-modules/ui/core/view"; -import * as label from "tns-core-modules/ui/label"; -import * as pages from "tns-core-modules/ui/page"; -import * as http from "tns-core-modules/http"; +import * as observable from "@nativescript/core/data/observable"; +import * as view from "@nativescript/core/ui/core/view"; +import * as label from "@nativescript/core/ui/label"; +import * as pages from "@nativescript/core/ui/page"; +import * as http from "@nativescript/core/http"; var obj = new observable.Observable(); obj.set("id", 0); diff --git a/tests/app/xml-declaration/mymodule/MyControl.ts b/tests/app/xml-declaration/mymodule/MyControl.ts index d6455b3ab8..2e909883c7 100644 --- a/tests/app/xml-declaration/mymodule/MyControl.ts +++ b/tests/app/xml-declaration/mymodule/MyControl.ts @@ -1,7 +1,7 @@ -import * as observable from "tns-core-modules/data/observable"; -import * as stackLayoutModule from "tns-core-modules/ui/layouts/stack-layout"; -import * as label from "tns-core-modules/ui/label"; -import * as button from "tns-core-modules/ui/button"; +import * as observable from "@nativescript/core/data/observable"; +import * as stackLayoutModule from "@nativescript/core/ui/layouts/stack-layout"; +import * as label from "@nativescript/core/ui/label"; +import * as button from "@nativescript/core/ui/button"; export class MyControl extends stackLayoutModule.StackLayout { constructor() { diff --git a/tests/app/xml-declaration/mymodulewithxml/MyControl.ts b/tests/app/xml-declaration/mymodulewithxml/MyControl.ts index 48a7362333..24b5ae53e6 100644 --- a/tests/app/xml-declaration/mymodulewithxml/MyControl.ts +++ b/tests/app/xml-declaration/mymodulewithxml/MyControl.ts @@ -1,6 +1,6 @@ -import * as observable from "tns-core-modules/data/observable"; -import * as view from "tns-core-modules/ui/core/view"; -import * as label from "tns-core-modules/ui/label"; +import * as observable from "@nativescript/core/data/observable"; +import * as view from "@nativescript/core/ui/core/view"; +import * as label from "@nativescript/core/ui/label"; var count = 0; export function buttonTap2(args: observable.EventData) { diff --git a/tests/app/xml-declaration/mymodulewithxml/TabViewParentChainPage.ts b/tests/app/xml-declaration/mymodulewithxml/TabViewParentChainPage.ts index fffbc5b76a..f1c1f7771b 100644 --- a/tests/app/xml-declaration/mymodulewithxml/TabViewParentChainPage.ts +++ b/tests/app/xml-declaration/mymodulewithxml/TabViewParentChainPage.ts @@ -1,6 +1,6 @@ -import { Label } from "tns-core-modules/ui/label"; -import { Observable } from "tns-core-modules/data/observable"; -import { Page } from "tns-core-modules/ui/page"; +import { Label } from "@nativescript/core/ui/label"; +import { Observable } from "@nativescript/core/data/observable"; +import { Page } from "@nativescript/core/ui/page"; export function loaded(args) { ((