From 32fb5bfb58c443fcdf5c8815df225127a0fab9eb Mon Sep 17 00:00:00 2001 From: hamidbsd <50081218+hamidbsd@users.noreply.github.com> Date: Wed, 27 Nov 2019 20:17:57 +0300 Subject: [PATCH 01/15] fix the crash --- nativescript-core/ui/core/view/view.android.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nativescript-core/ui/core/view/view.android.ts b/nativescript-core/ui/core/view/view.android.ts index c6a3132f2..b11f7d73b 100644 --- a/nativescript-core/ui/core/view/view.android.ts +++ b/nativescript-core/ui/core/view/view.android.ts @@ -380,11 +380,13 @@ export class View extends ViewCommon { @profile public onUnloaded() { if (this.touchListenerIsSet) { - this.nativeViewProtected.setOnTouchListener(null); this.touchListenerIsSet = false; - this.nativeViewProtected.setClickable(this._isClickable); + if (this.nativeViewProtected) { + this.nativeViewProtected.setOnTouchListener(null); + this.nativeViewProtected.setClickable(this._isClickable); + } } - + this._manager = null; this._rootManager = null; super.onUnloaded(); From 9a6695f8383353c8d0c9fa048066d3da82cd8073 Mon Sep 17 00:00:00 2001 From: Vasil Trifonov Date: Mon, 9 Dec 2019 15:27:04 +0200 Subject: [PATCH 02/15] chore: update MaterialComponents pod (#8176) * chore: update MaterialComponents pod * chore: remove copy of pod file in build script --- build/prepare-compat.sh | 4 ---- nativescript-core/platforms/ios/Podfile | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/build/prepare-compat.sh b/build/prepare-compat.sh index 82e548500..8d09bcc37 100755 --- a/build/prepare-compat.sh +++ b/build/prepare-compat.sh @@ -31,10 +31,6 @@ NATIVESCRIPT_CORE_ARGS=${NATIVESCRIPT_CORE_ARGS:-$DEFAULT_NATIVESCRIPT_CORE_ARGS echo "Copying $PACKAGE_SOURCE $DIST/$PACKAGE..." npx ncp "$PACKAGE_SOURCE" "$DIST/$PACKAGE" - echo "TODO(REMOVE THIS HACK): Copying platfroms/ios/Podfile" - mkdir -p "$DIST/$PACKAGE/platforms/ios" - npx ncp "nativescript-core/platforms/ios/Podfile" "$DIST/$PACKAGE/platforms/ios/Podfile" - echo "Copying README and LICENSE to $DIST/$PACKAGE" npx ncp LICENSE "$DIST"/"$PACKAGE"/LICENSE diff --git a/nativescript-core/platforms/ios/Podfile b/nativescript-core/platforms/ios/Podfile index 8bdf3a050..7ba729baa 100644 --- a/nativescript-core/platforms/ios/Podfile +++ b/nativescript-core/platforms/ios/Podfile @@ -1,4 +1,4 @@ platform :ios, '9.0' use_frameworks! -pod 'MaterialComponents/Tabs', '~> 92.3' \ No newline at end of file +pod 'MaterialComponents/Tabs', '~> 94.5' \ No newline at end of file From ff710b76926014e261419bedaa22dfc5c6731794 Mon Sep 17 00:00:00 2001 From: Vasil Trifonov Date: Mon, 9 Dec 2019 16:22:30 +0200 Subject: [PATCH 03/15] chore: cut the 6.3.0 release (#8174) --- CHANGELOG.md | 21 +++++++++++++++++++++ e2e/scoped-packages/package.json | 4 ++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e72aaab8f..af4d43c54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,24 @@ +# [6.3.0](https://github.com/NativeScript/NativeScript/compare/6.2.2...6.3.0) (2019-12-06) + + +### Bug Fixes + +* **android:** Fatal Exception: java.lang.OutOfMemoryError ([#8061](https://github.com/NativeScript/NativeScript/issues/8061)) ([8d382a6](https://github.com/NativeScript/NativeScript/commit/8d382a6b2e722e9298becdcfb3b43a41352a9136)) +* **grid-layout:** value parser will now accept strings or numbers ([#8042](https://github.com/NativeScript/NativeScript/issues/8042)) ([3199a39](https://github.com/NativeScript/NativeScript/commit/3199a392b45635606e06119845099965246395c3)) +* **iOS:** Opening alert/confirm on top most of modal dialogs ([#7982](https://github.com/NativeScript/NativeScript/issues/7982)) ([60ac4e7](https://github.com/NativeScript/NativeScript/commit/60ac4e7a05c9e627eb9fc7a1bdf004c7fca99817)), closes [#6939](https://github.com/NativeScript/NativeScript/issues/6939) +* nested css-calc and css-variables with fallback ([#7987](https://github.com/NativeScript/NativeScript/issues/7987)) ([fc2a233](https://github.com/NativeScript/NativeScript/commit/fc2a233e9598def50969247c1516c32260b7e283)) + + +### Features + +* **css:** Added optional css-tree parser ([#8076](https://github.com/NativeScript/NativeScript/issues/8076)) ([49a7607](https://github.com/NativeScript/NativeScript/commit/49a7607f4e0f3d359820b5ae731f806966de2921)) +* **dialogs:** Setting the size of popup dialog thru dialog options ([#8041](https://github.com/NativeScript/NativeScript/issues/8041)) ([cd5703a](https://github.com/NativeScript/NativeScript/commit/cd5703a6b79598031ef334a9cf3132e688422aba)) +* support requestAnimationFrame ([#8112](https://github.com/NativeScript/NativeScript/issues/8112)) ([2aa6e9b](https://github.com/NativeScript/NativeScript/commit/2aa6e9bf922286f9ffd747f901dbc922cd9446b9)) +* System css classes for modals ([#8155](https://github.com/NativeScript/NativeScript/issues/8155)) ([7b78f3b](https://github.com/NativeScript/NativeScript/commit/7b78f3b0c640d9d43026744b919a03996191f788)) +* **modal-view-ios:** handle iOS 13 dismiss modal gesture ([#8024](https://github.com/NativeScript/NativeScript/issues/8024)) ([c5df258](https://github.com/NativeScript/NativeScript/commit/c5df2580439c24c57fb364cba91050a00e391c35)) + + + ## [6.2.2](https://github.com/NativeScript/NativeScript/compare/6.2.1...6.2.2) (2019-11-25) diff --git a/e2e/scoped-packages/package.json b/e2e/scoped-packages/package.json index 603688e15..5ccc47b88 100644 --- a/e2e/scoped-packages/package.json +++ b/e2e/scoped-packages/package.json @@ -13,9 +13,9 @@ "license": "SEE LICENSE IN ", "repository": "", "dependencies": { - "@nativescript/core": "file:../../dist/nativescript-core-6.2.0.tgz", + "@nativescript/core": "file:../../dist/nativescript-core-6.3.0.tgz", "nativescript-theme-core": "~1.0.6", - "tns-core-modules": "file:../../dist/tns-core-modules-6.2.0.tgz" + "tns-core-modules": "file:../../dist/tns-core-modules-6.3.0.tgz" }, "devDependencies": { "nativescript-dev-webpack": "~1.2.0", From e5dc0de54a513b77aedbdd5ae83654eb62370c6f Mon Sep 17 00:00:00 2001 From: Dimitar Topuzov Date: Mon, 16 Dec 2019 10:43:16 +0200 Subject: [PATCH 04/15] hore: cut the 6.3.1 release --- CHANGELOG.md | 9 +++++++++ nativescript-core/package.json | 2 +- tns-core-modules-package/package.json | 2 +- tns-platform-declarations/package.json | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af4d43c54..168be840c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## [6.3.1](https://github.com/NativeScript/NativeScript/compare/6.3.0...6.3.1) (2019-12-16) + + +### Bug Fixes + +* null reference exception in view.android.onUnloaded ([#8153](https://github.com/NativeScript/NativeScript/issues/8153)) ([da639f2](https://github.com/NativeScript/NativeScript/commit/da639f2)) + + + # [6.3.0](https://github.com/NativeScript/NativeScript/compare/6.2.2...6.3.0) (2019-12-06) diff --git a/nativescript-core/package.json b/nativescript-core/package.json index 5ff92805f..40923a866 100644 --- a/nativescript-core/package.json +++ b/nativescript-core/package.json @@ -3,7 +3,7 @@ "main": "index", "types": "index.d.ts", "description": "Telerik NativeScript Core Modules", - "version": "6.3.0", + "version": "6.3.1", "homepage": "https://www.nativescript.org", "repository": { "type": "git", diff --git a/tns-core-modules-package/package.json b/tns-core-modules-package/package.json index 80898b426..2be2790cc 100644 --- a/tns-core-modules-package/package.json +++ b/tns-core-modules-package/package.json @@ -3,7 +3,7 @@ "main": "index", "types": "index.d.ts", "description": "Telerik NativeScript Core Modules", - "version": "6.3.0", + "version": "6.3.1", "homepage": "https://www.nativescript.org", "repository": { "type": "git", diff --git a/tns-platform-declarations/package.json b/tns-platform-declarations/package.json index efdf880e3..2bb0ff065 100644 --- a/tns-platform-declarations/package.json +++ b/tns-platform-declarations/package.json @@ -1,6 +1,6 @@ { "name": "tns-platform-declarations", - "version": "6.3.0", + "version": "6.3.1", "description": "Platform-specific TypeScript declarations for NativeScript for accessing native objects", "main": "", "scripts": { From d1858f81b7e2e8df78cd466f8a74807ceddbeb54 Mon Sep 17 00:00:00 2001 From: Alexander Vakrilov Date: Tue, 17 Dec 2019 08:57:30 +0200 Subject: [PATCH 05/15] fix: handle fake attach after FragMgr is destroyed (#8200) --- .../ui/bottom-navigation/bottom-navigation.android.ts | 4 ++-- nativescript-core/ui/frame/frame.android.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nativescript-core/ui/bottom-navigation/bottom-navigation.android.ts b/nativescript-core/ui/bottom-navigation/bottom-navigation.android.ts index 077a4096c..0f253dfa1 100644 --- a/nativescript-core/ui/bottom-navigation/bottom-navigation.android.ts +++ b/nativescript-core/ui/bottom-navigation/bottom-navigation.android.ts @@ -385,14 +385,14 @@ export class BottomNavigation extends TabNavigationBase { _onAttachedToWindow(): void { super._onAttachedToWindow(); - this._attachedToWindow = true; // _onAttachedToWindow called from OS again after it was detach // TODO: Consider testing and removing it when update to androidx.fragment:1.2.0 if (this._manager && this._manager.isDestroyed()) { return; } - + + this._attachedToWindow = true; this.changeTab(this.selectedIndex); } diff --git a/nativescript-core/ui/frame/frame.android.ts b/nativescript-core/ui/frame/frame.android.ts index e06248e64..286575b3c 100644 --- a/nativescript-core/ui/frame/frame.android.ts +++ b/nativescript-core/ui/frame/frame.android.ts @@ -150,14 +150,14 @@ export class Frame extends FrameBase { _onAttachedToWindow(): void { super._onAttachedToWindow(); - this._attachedToWindow = true; - + // _onAttachedToWindow called from OS again after it was detach // TODO: Consider testing and removing it when update to androidx.fragment:1.2.0 if (this._manager && this._manager.isDestroyed()) { return; } - + + this._attachedToWindow = true; this._processNextNavigationEntry(); } From 4b00376957196295dd5231e2de0a7b10635f3e69 Mon Sep 17 00:00:00 2001 From: Alexander Vakrilov Date: Tue, 17 Dec 2019 12:04:32 +0200 Subject: [PATCH 06/15] fix: check is disposed fragment is in the FragmentManager (#8201) --- .../ui/core/view/view.android.ts | 2 ++ nativescript-core/ui/frame/frame.android.ts | 19 +++++++++++++------ nativescript-core/utils/utils.ios.ts | 4 ---- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/nativescript-core/ui/core/view/view.android.ts b/nativescript-core/ui/core/view/view.android.ts index b11f7d73b..244edad35 100644 --- a/nativescript-core/ui/core/view/view.android.ts +++ b/nativescript-core/ui/core/view/view.android.ts @@ -155,6 +155,8 @@ function initializeDialogFragment() { const ownerId = this.getArguments().getInt(DOMID); const options = getModalOptions(ownerId); this.owner = options.owner; + // Set owner._dialogFragment to this in case the DialogFragment was recreated after app suspend + this.owner._dialogFragment = this; this._fullscreen = options.fullscreen; this._animated = options.animated; this._cancelable = options.cancelable; diff --git a/nativescript-core/ui/frame/frame.android.ts b/nativescript-core/ui/frame/frame.android.ts index 286575b3c..e8f798f28 100644 --- a/nativescript-core/ui/frame/frame.android.ts +++ b/nativescript-core/ui/frame/frame.android.ts @@ -264,13 +264,13 @@ export class Frame extends FrameBase { !this._currentEntry.fragment.isAdded()) { return; } + const fragment: androidx.fragment.app.Fragment = this._currentEntry.fragment; + const fragmentManager: androidx.fragment.app.FragmentManager = fragment.getFragmentManager(); - const manager: androidx.fragment.app.FragmentManager = this._getFragmentManager(); - const transaction = manager.beginTransaction(); - const fragment = this._currentEntry.fragment; + const transaction = fragmentManager.beginTransaction(); const fragmentExitTransition = fragment.getExitTransition(); - // Reset animation to its initial state to prevent mirrorered effect when restore current fragment transitions + // Reset animation to its initial state to prevent mirrored effect when restore current fragment transitions if (fragmentExitTransition && fragmentExitTransition instanceof org.nativescript.widgets.CustomTransition) { fragmentExitTransition.setResetOnTransitionEnd(true); } @@ -637,7 +637,7 @@ function clearEntry(entry: BackstackEntry): void { entry.recreated = false; entry.fragment = null; const page = entry.resolvedPage; - if (page._context) { + if (page && page._context) { entry.resolvedPage._tearDownUI(true); } } @@ -1032,6 +1032,12 @@ class FragmentCallbacksImplementation implements AndroidFragmentCallbacks { } private loadBitmapFromView(view: android.view.View): android.graphics.Bitmap { + // Don't try to creat bitmaps with no dimensions as this causes a crash + // This might happen when showing and closing dialogs fast. + if (!(view && view.getWidth() > 0 && view.getHeight() > 0)) { + return undefined; + } + // Another way to get view bitmap. Test performance vs setDrawingCacheEnabled // const width = view.getWidth(); // const height = view.getHeight(); @@ -1041,7 +1047,8 @@ class FragmentCallbacksImplementation implements AndroidFragmentCallbacks { // view.draw(canvas); view.setDrawingCacheEnabled(true); - const bitmap = android.graphics.Bitmap.createBitmap(view.getDrawingCache()); + const drawCache = view.getDrawingCache(); + const bitmap = android.graphics.Bitmap.createBitmap(drawCache); view.setDrawingCacheEnabled(false); return bitmap; diff --git a/nativescript-core/utils/utils.ios.ts b/nativescript-core/utils/utils.ios.ts index 17474fd8d..c01e04f39 100644 --- a/nativescript-core/utils/utils.ios.ts +++ b/nativescript-core/utils/utils.ios.ts @@ -6,8 +6,6 @@ import { export { ios }; export * from "./utils-common"; -let mainScreenScale; - export function openFile(filePath: string): boolean { try { const appPath = ios.getCurrentAppPath(); @@ -47,5 +45,3 @@ export function openUrl(location: string): boolean { return false; } - -mainScreenScale = UIScreen.mainScreen.scale; From a02c92530617caed533f3ede5d7f4a014fe356dd Mon Sep 17 00:00:00 2001 From: Dimitar Topuzov Date: Fri, 20 Dec 2019 13:52:51 +0200 Subject: [PATCH 07/15] release: cut the 6.3.2 release --- CHANGELOG.md | 10 ++++++++++ nativescript-core/package.json | 2 +- tns-core-modules-package/package.json | 2 +- tns-core-modules-widgets/package.json | 2 +- tns-platform-declarations/package.json | 2 +- 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 168be840c..a359971c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## [6.3.2](https://github.com/NativeScript/NativeScript/compare/6.3.1...6.3.2) (2019-12-20) + + +### Bug Fixes + +* check is disposed fragment is in the FragmentManager ([#8201](https://github.com/NativeScript/NativeScript/issues/8201)) ([4b00376](https://github.com/NativeScript/NativeScript/commit/4b00376)) +* handle fake attach after FragMgr is destroyed ([#8200](https://github.com/NativeScript/NativeScript/issues/8200)) ([d1858f8](https://github.com/NativeScript/NativeScript/commit/d1858f8)) + + + ## [6.3.1](https://github.com/NativeScript/NativeScript/compare/6.3.0...6.3.1) (2019-12-16) diff --git a/nativescript-core/package.json b/nativescript-core/package.json index 40923a866..11eeda6ee 100644 --- a/nativescript-core/package.json +++ b/nativescript-core/package.json @@ -3,7 +3,7 @@ "main": "index", "types": "index.d.ts", "description": "Telerik NativeScript Core Modules", - "version": "6.3.1", + "version": "6.3.2", "homepage": "https://www.nativescript.org", "repository": { "type": "git", diff --git a/tns-core-modules-package/package.json b/tns-core-modules-package/package.json index 2be2790cc..5a50e7b61 100644 --- a/tns-core-modules-package/package.json +++ b/tns-core-modules-package/package.json @@ -3,7 +3,7 @@ "main": "index", "types": "index.d.ts", "description": "Telerik NativeScript Core Modules", - "version": "6.3.1", + "version": "6.3.2", "homepage": "https://www.nativescript.org", "repository": { "type": "git", diff --git a/tns-core-modules-widgets/package.json b/tns-core-modules-widgets/package.json index edc6372b7..160eaea21 100644 --- a/tns-core-modules-widgets/package.json +++ b/tns-core-modules-widgets/package.json @@ -1,6 +1,6 @@ { "name": "tns-core-modules-widgets", - "version": "6.3.0", + "version": "6.3.2", "description": "Native widgets used in the NativeScript framework.", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" diff --git a/tns-platform-declarations/package.json b/tns-platform-declarations/package.json index 2bb0ff065..55442e8f8 100644 --- a/tns-platform-declarations/package.json +++ b/tns-platform-declarations/package.json @@ -1,6 +1,6 @@ { "name": "tns-platform-declarations", - "version": "6.3.1", + "version": "6.3.2", "description": "Platform-specific TypeScript declarations for NativeScript for accessing native objects", "main": "", "scripts": { From 6b74054ae37f001c336128d40408056d5e64fe31 Mon Sep 17 00:00:00 2001 From: vakrilov Date: Fri, 31 Jan 2020 11:59:38 +0200 Subject: [PATCH 08/15] release: cut the 6.4.0 release --- CHANGELOG.md | 29 ++++++++++++++++++++++++++ e2e/scoped-packages/package.json | 4 ++-- nativescript-core/package.json | 4 ++-- tns-core-modules-package/package.json | 2 +- tns-core-modules-widgets/package.json | 2 +- tns-platform-declarations/package.json | 2 +- 6 files changed, 36 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a359971c9..9a25f68dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,32 @@ +# 6.4.0 (2020-01-31) + + +### Bug Fixes + +* button textAlignment on IOS (UIButton) ([#8181](https://github.com/NativeScript/NativeScript/issues/8181)) ([05ef9b0](https://github.com/NativeScript/NativeScript/commit/05ef9b0)) +* **android:** crash on setting elevation on API21 ([#8269](https://github.com/NativeScript/NativeScript/issues/8269)) ([02763ec](https://github.com/NativeScript/NativeScript/commit/02763ec)) +* **android:** Request Timeout [#6523](https://github.com/NativeScript/NativeScript/issues/6523) ([#8194](https://github.com/NativeScript/NativeScript/issues/8194)) ([d65a2db](https://github.com/NativeScript/NativeScript/commit/d65a2db)) +* invoke done callback in image cache unit test for API Level < 20 ([#8267](https://github.com/NativeScript/NativeScript/issues/8267)) ([f293398](https://github.com/NativeScript/NativeScript/commit/f293398)) +* make integer type visible ([ea8a436](https://github.com/NativeScript/NativeScript/commit/ea8a436)) +* remove the password for TextField as well ([#8290](https://github.com/NativeScript/NativeScript/issues/8290)) ([0b50f3e](https://github.com/NativeScript/NativeScript/commit/0b50f3e)) +* return default tab background color when the background color is not explicitely set through css ([#8240](https://github.com/NativeScript/NativeScript/issues/8240)) ([8569b51](https://github.com/NativeScript/NativeScript/commit/8569b51)) +* **ios:** ActionBar style wrong after cancelled swipe back navigation ([#8252](https://github.com/NativeScript/NativeScript/issues/8252)) ([6133d6b](https://github.com/NativeScript/NativeScript/commit/6133d6b)) +* **ios/bottom-navigation:** move TabStrip items event emitting to selectedIndex changed handler ([#8160](https://github.com/NativeScript/NativeScript/issues/8160)) ([8550c32](https://github.com/NativeScript/NativeScript/commit/8550c32)) + + +### Features + +* **html-view:** Additional properties for HtmlView component ([#8207](https://github.com/NativeScript/NativeScript/issues/8207)) ([9217094](https://github.com/NativeScript/NativeScript/commit/9217094)) +* **http:** better binary support & XHR support ([#7707](https://github.com/NativeScript/NativeScript/issues/7707)) ([e293367](https://github.com/NativeScript/NativeScript/commit/e293367)) +* **ios:** set preferredStatusBarStyle in Page VCs ([#8241](https://github.com/NativeScript/NativeScript/issues/8241)) ([4e48e68](https://github.com/NativeScript/NativeScript/commit/4e48e68)) +* add longPress state with UIGestureRecognizer (iOS) ([416f1c8](https://github.com/NativeScript/NativeScript/commit/416f1c8)) +* **textview:** added maxLines property ([#7943](https://github.com/NativeScript/NativeScript/issues/7943)) ([3c79ded](https://github.com/NativeScript/NativeScript/commit/3c79ded)) +* Add 3D rotation to view - takeover of PR# 5950 ([#8136](https://github.com/NativeScript/NativeScript/issues/8136)) ([e8f5ac8](https://github.com/NativeScript/NativeScript/commit/e8f5ac8)), closes [#8076](https://github.com/NativeScript/NativeScript/issues/8076) [#8041](https://github.com/NativeScript/NativeScript/issues/8041) +* Add Android APIs usage list ([#8286](https://github.com/NativeScript/NativeScript/issues/8286)) ([f031f6f](https://github.com/NativeScript/NativeScript/commit/f031f6f)) +* add integer only keyboard type for text-field and for all editable text components ([954e1c6](https://github.com/NativeScript/NativeScript/commit/954e1c6)) +* Add iOS APIs usage list ([#8291](https://github.com/NativeScript/NativeScript/issues/8291)) ([3bb8a40](https://github.com/NativeScript/NativeScript/commit/3bb8a40)) +* Make css-tree the default parser ([ab4c389](https://github.com/NativeScript/NativeScript/commit/ab4c389)) + ## [6.3.2](https://github.com/NativeScript/NativeScript/compare/6.3.1...6.3.2) (2019-12-20) diff --git a/e2e/scoped-packages/package.json b/e2e/scoped-packages/package.json index 5ccc47b88..9d8ed6d9b 100644 --- a/e2e/scoped-packages/package.json +++ b/e2e/scoped-packages/package.json @@ -13,9 +13,9 @@ "license": "SEE LICENSE IN ", "repository": "", "dependencies": { - "@nativescript/core": "file:../../dist/nativescript-core-6.3.0.tgz", + "@nativescript/core": "file:../../dist/nativescript-core-6.4.0.tgz", "nativescript-theme-core": "~1.0.6", - "tns-core-modules": "file:../../dist/tns-core-modules-6.3.0.tgz" + "tns-core-modules": "file:../../dist/tns-core-modules-6.4.0.tgz" }, "devDependencies": { "nativescript-dev-webpack": "~1.2.0", diff --git a/nativescript-core/package.json b/nativescript-core/package.json index 49eeb4d5f..1137c792b 100644 --- a/nativescript-core/package.json +++ b/nativescript-core/package.json @@ -3,7 +3,7 @@ "main": "index", "types": "index.d.ts", "description": "Telerik NativeScript Core Modules", - "version": "6.3.0", + "version": "6.4.0", "homepage": "https://www.nativescript.org", "repository": { "type": "git", @@ -59,4 +59,4 @@ } } } -} \ No newline at end of file +} diff --git a/tns-core-modules-package/package.json b/tns-core-modules-package/package.json index 80898b426..0ed032383 100644 --- a/tns-core-modules-package/package.json +++ b/tns-core-modules-package/package.json @@ -3,7 +3,7 @@ "main": "index", "types": "index.d.ts", "description": "Telerik NativeScript Core Modules", - "version": "6.3.0", + "version": "6.4.0", "homepage": "https://www.nativescript.org", "repository": { "type": "git", diff --git a/tns-core-modules-widgets/package.json b/tns-core-modules-widgets/package.json index edc6372b7..af49aaa7e 100644 --- a/tns-core-modules-widgets/package.json +++ b/tns-core-modules-widgets/package.json @@ -1,6 +1,6 @@ { "name": "tns-core-modules-widgets", - "version": "6.3.0", + "version": "6.4.0", "description": "Native widgets used in the NativeScript framework.", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" diff --git a/tns-platform-declarations/package.json b/tns-platform-declarations/package.json index efdf880e3..db262bbba 100644 --- a/tns-platform-declarations/package.json +++ b/tns-platform-declarations/package.json @@ -1,6 +1,6 @@ { "name": "tns-platform-declarations", - "version": "6.3.0", + "version": "6.4.0", "description": "Platform-specific TypeScript declarations for NativeScript for accessing native objects", "main": "", "scripts": { From 00d25adc789e4c5314b0c91952f750308c0fde9c Mon Sep 17 00:00:00 2001 From: vakrilov Date: Mon, 3 Feb 2020 11:24:09 +0200 Subject: [PATCH 09/15] chore(build): always use local typescript --- build/generate-barrel-dts.sh | 2 ++ build/pack-compat.sh | 9 ++++++--- build/prepare-core.sh | 7 +++++-- package.json | 2 +- tns-platform-declarations/package.json | 2 +- 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/build/generate-barrel-dts.sh b/build/generate-barrel-dts.sh index 36e711e0d..03df87383 100755 --- a/build/generate-barrel-dts.sh +++ b/build/generate-barrel-dts.sh @@ -13,6 +13,8 @@ DIST=dist; ROOT_DIR=$(cd `dirname $0` && pwd)/..; cd "$ROOT_DIR" +# Aways execute npx tsc from repo root to use the local typescript +npx tsc -v npx tsc -p nativescript-core/tsconfig.barrels.json FROM="temp/dts-out" diff --git a/build/pack-compat.sh b/build/pack-compat.sh index aec8378c2..538aec46f 100755 --- a/build/pack-compat.sh +++ b/build/pack-compat.sh @@ -11,12 +11,15 @@ set -e ## Pack tns-core-modules ( - cd "dist/tns-core-modules" - echo 'Run tsc ...' - npx tsc + # Aways execute npx tsc from repo root to use the local typescript + echo 'TypeScript transpile...' + npx tsc -v + npx tsc -p "dist/tns-core-modules" + echo 'NPM packing ...' + cd "dist/tns-core-modules" TGZ="$(npm pack)" mv "$TGZ" "../$TGZ" ) \ No newline at end of file diff --git a/build/prepare-core.sh b/build/prepare-core.sh index f564093c1..041b2d541 100755 --- a/build/prepare-core.sh +++ b/build/prepare-core.sh @@ -65,11 +65,14 @@ mkdir -p "$DIST" npx ncp README.md "$DIST"/"$PACKAGE"/README.md ( - echo 'TypeScript transpile...' cd "$DIST/$PACKAGE" npm install - npx tsc ) + + # Aways execute npx tsc from repo root to use the local typescript + echo 'TypeScript transpile...' + npx tsc -v + npx tsc -p "$DIST/$PACKAGE" echo "Clearing typescript definitions from private APIs..." npx ts-node --project ./build/tsconfig.json build/clear-private-definitions "$DIST/$PACKAGE" diff --git a/package.json b/package.json index 72ecee0d9..ad760437e 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "tslint": "^5.4.3", "typedoc": "^0.13.0", "typedoc-plugin-external-module-name": "git://github.com/PanayotCankov/typedoc-plugin-external-module-name.git#with-js", - "typescript": "^3.1.6" + "typescript": "^3.7.5" }, "scripts": { "setup": "npm run build-core && npm run build-compat && npm run setup-link", diff --git a/tns-platform-declarations/package.json b/tns-platform-declarations/package.json index db262bbba..0cde27773 100644 --- a/tns-platform-declarations/package.json +++ b/tns-platform-declarations/package.json @@ -32,6 +32,6 @@ }, "homepage": "https://github.com/NativeScript/NativeScript#readme", "devDependencies": { - "typescript": "^3.1.6" + "typescript": "^3.7.5" } } From c13b1044416c5ab2a5377e7758da120a3ef1f98b Mon Sep 17 00:00:00 2001 From: Nick Iliev Date: Wed, 5 Feb 2020 13:38:25 +0200 Subject: [PATCH 10/15] fix: flipLeft and flipRight on Android (#8307) --- nativescript-core/ui/frame/fragment.transitions.android.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nativescript-core/ui/frame/fragment.transitions.android.ts b/nativescript-core/ui/frame/fragment.transitions.android.ts index 6b024cd47..879c4d4a1 100644 --- a/nativescript-core/ui/frame/fragment.transitions.android.ts +++ b/nativescript-core/ui/frame/fragment.transitions.android.ts @@ -145,7 +145,7 @@ export function _setAndroidFragmentTransitions( if (currentFragmentNeedsDifferentAnimation) { setupCurrentFragmentExplodeTransition(navigationTransition, currentEntry); } - } else if (name === "flip") { + } else if (name.indexOf("flip") === 0) { const direction = name.substr("flip".length) || "right"; //Extract the direction from the string const flipTransition = new FlipTransition(direction, navigationTransition.duration, navigationTransition.curve); From cb8cea820dff159ba02d53bef24013055dfcd82e Mon Sep 17 00:00:00 2001 From: vakrilov Date: Wed, 5 Feb 2020 15:51:22 +0200 Subject: [PATCH 11/15] fix(android): tap-trip-item title disappearing --- .../ui/bottom-navigation/bottom-navigation.android.ts | 7 +++++-- .../tab-navigation-base/tab-strip-item/tab-strip-item.ts | 6 +++--- nativescript-core/ui/tabs/tabs.android.ts | 4 +++- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/nativescript-core/ui/bottom-navigation/bottom-navigation.android.ts b/nativescript-core/ui/bottom-navigation/bottom-navigation.android.ts index 49081f259..0048ed524 100644 --- a/nativescript-core/ui/bottom-navigation/bottom-navigation.android.ts +++ b/nativescript-core/ui/bottom-navigation/bottom-navigation.android.ts @@ -391,7 +391,7 @@ export class BottomNavigation extends TabNavigationBase { if (this._manager && this._manager.isDestroyed()) { return; } - + this._attachedToWindow = true; this.changeTab(this.selectedIndex); } @@ -705,7 +705,10 @@ export class BottomNavigation extends TabNavigationBase { } public setTabBarItemFontInternal(tabStripItem: TabStripItem, value: Font): void { - tabStripItem.nativeViewProtected.setTextSize(value.fontSize); + if (value.fontSize) { + tabStripItem.nativeViewProtected.setTextSize(value.fontSize); + } + tabStripItem.nativeViewProtected.setTypeface(value.getAndroidTypeface()); } diff --git a/nativescript-core/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 index bab24db82..ead226c81 100644 --- a/nativescript-core/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 @@ -127,7 +127,7 @@ export class TabStripItem extends View implements TabStripItemDefinition, AddChi const parent = this.parent; const tabStripParent = parent && parent.parent; - return tabStripParent && (tabStripParent).setTabBarIconColor(this, args.value); + return tabStripParent && tabStripParent.setTabBarIconColor(this, args.value); }); this.image.style.on("colorChange", this._imageColorHandler); @@ -135,7 +135,7 @@ export class TabStripItem extends View implements TabStripItemDefinition, AddChi const parent = this.parent; const tabStripParent = parent && parent.parent; - return tabStripParent && (tabStripParent).setTabBarIconColor(this, args.value); + return tabStripParent && tabStripParent.setTabBarIconColor(this, args.value); }); this.image.style.on("fontInternalChange", this._imageFontHandler); @@ -143,7 +143,7 @@ export class TabStripItem extends View implements TabStripItemDefinition, AddChi const parent = this.parent; const tabStripParent = parent && parent.parent; - return tabStripParent && (tabStripParent).setTabBarIconColor(this, args.value); + return tabStripParent && tabStripParent.setTabBarIconColor(this, args.value); }); this.image.on("srcChange", this._imageSrcHandler); } diff --git a/nativescript-core/ui/tabs/tabs.android.ts b/nativescript-core/ui/tabs/tabs.android.ts index 6008b7980..6d9e446be 100644 --- a/nativescript-core/ui/tabs/tabs.android.ts +++ b/nativescript-core/ui/tabs/tabs.android.ts @@ -819,7 +819,9 @@ export class Tabs extends TabsBase { } public setTabBarItemFontInternal(tabStripItem: TabStripItem, value: Font): void { - tabStripItem.nativeViewProtected.setTextSize(value.fontSize); + if (value.fontSize) { + tabStripItem.nativeViewProtected.setTextSize(value.fontSize); + } tabStripItem.nativeViewProtected.setTypeface(value.getAndroidTypeface()); } From 2dd3bb203a66544174992839d6af311e960bfb63 Mon Sep 17 00:00:00 2001 From: vakrilov Date: Wed, 5 Feb 2020 16:12:43 +0200 Subject: [PATCH 12/15] fix(andoid): crash when setting font on tab-item with no image --- .../ui/bottom-navigation/bottom-navigation.android.ts | 3 +++ nativescript-core/ui/tabs/tabs.android.ts | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/nativescript-core/ui/bottom-navigation/bottom-navigation.android.ts b/nativescript-core/ui/bottom-navigation/bottom-navigation.android.ts index 0048ed524..34de5c4ef 100644 --- a/nativescript-core/ui/bottom-navigation/bottom-navigation.android.ts +++ b/nativescript-core/ui/bottom-navigation/bottom-navigation.android.ts @@ -614,6 +614,9 @@ export class BottomNavigation extends TabNavigationBase { private getIcon(tabStripItem: TabStripItem): android.graphics.drawable.BitmapDrawable { const iconSource = tabStripItem.image && tabStripItem.image.src; + if (!iconSource) { + return null; + } let is: ImageSource; if (isFontIconURI(iconSource)) { diff --git a/nativescript-core/ui/tabs/tabs.android.ts b/nativescript-core/ui/tabs/tabs.android.ts index 6d9e446be..a2ab442df 100644 --- a/nativescript-core/ui/tabs/tabs.android.ts +++ b/nativescript-core/ui/tabs/tabs.android.ts @@ -689,6 +689,9 @@ export class Tabs extends TabsBase { private getIcon(tabStripItem: TabStripItem): android.graphics.drawable.BitmapDrawable { const iconSource = tabStripItem.image && tabStripItem.image.src; + if (!iconSource) { + return null; + } let is: ImageSource; if (isFontIconURI(iconSource)) { @@ -814,7 +817,7 @@ export class Tabs extends TabsBase { const tabBarItem = this._tabsBar.getViewForItemAt(index); const imgView = tabBarItem.getChildAt(0); const drawable = this.getIcon(tabStripItem); - + imgView.setImageDrawable(drawable); } From a644e40c1edc132c62aff481e6ac433f67f5885d Mon Sep 17 00:00:00 2001 From: Martin Bektchiev Date: Mon, 10 Feb 2020 09:35:30 +0200 Subject: [PATCH 13/15] fix(build): Add platforms/android to NPM package (#8312) Co-authored-by: Dimitar Topuzov Co-authored-by: Alexander Vakrilov --- nativescript-core/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/nativescript-core/package.json b/nativescript-core/package.json index 1137c792b..2d00c9613 100644 --- a/nativescript-core/package.json +++ b/nativescript-core/package.json @@ -13,6 +13,7 @@ "**/*.d.ts", "**/*.js", "**/platforms/ios/**", + "**/platforms/android/**", "**/package.json", "!org.nativescript.widgets.d.ts" ], From 0f6c9c37d24822879536ebfade4c67c4c2eca39c Mon Sep 17 00:00:00 2001 From: Martin Bektchiev Date: Mon, 17 Feb 2020 15:29:31 +0200 Subject: [PATCH 14/15] release: cut the 6.4.1 release --- CHANGELOG.md | 50 +++++++++++++++----------- e2e/scoped-packages/package.json | 4 +-- nativescript-core/package.json | 2 +- tns-core-modules-package/package.json | 2 +- tns-platform-declarations/package.json | 2 +- 5 files changed, 35 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a25f68dc..f501bab6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## 6.4.1 (2020-02-17) + + +### Bug Fixes + +* flipLeft and flipRight on Android ([#8307](https://github.com/NativeScript/NativeScript/issues/8307)) ([c13b104](https://github.com/NativeScript/NativeScript/commit/c13b104)) +* **andoid:** crash when setting font on tab-item with no image ([2dd3bb2](https://github.com/NativeScript/NativeScript/commit/2dd3bb2)) +* **android:** tap-trip-item title disappearing ([cb8cea8](https://github.com/NativeScript/NativeScript/commit/cb8cea8)) +* **build:** Add platforms/android to NPM package ([#8312](https://github.com/NativeScript/NativeScript/issues/8312)) ([a644e40](https://github.com/NativeScript/NativeScript/commit/a644e40)) + # 6.4.0 (2020-01-31) @@ -376,7 +386,7 @@ Before: * double tap: child tap -> parent tap -> child double tap -> parent double tap * tap: child tap -> parent tap -After: +After: * **iOS**: * double tap: child double tap * tap: child tap @@ -708,7 +718,7 @@ Move event handlers accordingly. * **android:** NativeScript core framework now extends support library APIs versus native framework classes as per Google's latest guidelines ([#6129](https://github.com/NativeScript/NativeScript/issues/6129)) ([cf034dd](https://github.com/NativeScript/NativeScript/commit/cf034dd)): - NativeScript activities now extend `android.support.v7.app.AppCompatActivity` (vs android.app.Activity) - NativeScript fragments now extend `android.support.v4.app.Fragment` (vs android.app.Fragment) - - NativeScript now works internally with `android.support.v4.app.FragmentManager` (vs android.app.FragmentManager) + - NativeScript now works internally with `android.support.v4.app.FragmentManager` (vs android.app.FragmentManager) The implications of these changes should be mostly transparent to the developer except for the fact that the support library Fragment / FragmentManager work with Animation APIs versus Animator APIs. @@ -751,7 +761,7 @@ let wrapLayout: LayoutBase; // or let wrapLayout: WrapLayout; export function pageLoaded(args: EventData) { const page = args.object; - wrapLayout = page.getViewById("wrapLayout"); // or wrapLayout = page.getViewById("wrapLayout"); + wrapLayout = page.getViewById("wrapLayout"); // or wrapLayout = page.getViewById("wrapLayout"); } ``` * **android:** change androidOffscreenTabLimit to 1 when using bottom tabs of tab-view([#6476](https://github.com/NativeScript/NativeScript/issues/6476)) ([371fc9b](https://github.com/NativeScript/NativeScript/commit/371fc9b)) @@ -836,7 +846,7 @@ The change is that now if these widgets touch the edge of the safe area, they wi ### BREAKING CHANGES -* **typings:** +* **typings:** * There is no longer added `I` prefix in the names of the interfaces. For example, `android.view.IMenuItem` is now `android.view.MenuItem`. This matches the original name of the interface in the Android framework. * We are now generating only **public** methods, so all the methods which you override when extending Android class should be **public**. * You need to use **Array\** (lowercase **string**) instead of **Array\** (uppercase **String**) when overriding a method accepting string array type. @@ -1033,7 +1043,7 @@ our @CSSType decorated classes will now have to be marked with @CSSType. - [(# 4582)](https://github.com/NativeScript/NativeScript/issues/4582) IOS: Label with formatted text and theme classes crashes - [(# 4138)](https://github.com/NativeScript/NativeScript/issues/4138) Cannot change TabView icon - [(# 4419)](https://github.com/NativeScript/NativeScript/issues/4419) Debugger.js exception for HTTP requests with no Content-Type -- [(# 4650)](https://github.com/NativeScript/NativeScript/issues/4650) Image replacement is not respected during tns run android +- [(# 4650)](https://github.com/NativeScript/NativeScript/issues/4650) Image replacement is not respected during tns run android - [(# 3963)](https://github.com/NativeScript/NativeScript/issues/3963) ListView multiple item templates do not work inside a TabView - [(# 4647)](https://github.com/NativeScript/NativeScript/issues/4647) Rename utils.ad.getPalleteColor to getPaletteColor - [(# 4725)](https://github.com/NativeScript/NativeScript/pull/4725) Remove ListView selected state when rowHeight is set @@ -1046,18 +1056,18 @@ our @CSSType decorated classes will now have to be marked with @CSSType. ## 3.1.1 (2017, August 08) ### Fixed -- [(# 4514)](https://github.com/NativeScript/NativeScript/issues/4514) IOS: Text/xml content type not treated as text -- [(# 4450)](https://github.com/NativeScript/NativeScript/issues/4450) IOS: TNS 3.1 breaks background-color through css binding -- [(# 4443)](https://github.com/NativeScript/NativeScript/issues/4443) IOS: Can't load local files in a WebView on device +- [(# 4514)](https://github.com/NativeScript/NativeScript/issues/4514) IOS: Text/xml content type not treated as text +- [(# 4450)](https://github.com/NativeScript/NativeScript/issues/4450) IOS: TNS 3.1 breaks background-color through css binding +- [(# 4443)](https://github.com/NativeScript/NativeScript/issues/4443) IOS: Can't load local files in a WebView on device - [(# 4415)](https://github.com/NativeScript/NativeScript/issues/4415) Style error when setting background after upgrading to NS 3 -- [(# 4342)](https://github.com/NativeScript/NativeScript/issues/4342) Unable to change the fontWeight. -- [(# 4322)](https://github.com/NativeScript/NativeScript/issues/4322) Flashing border on scroll within ListView on Android when border-radius is applied -- [(# 4283)](https://github.com/NativeScript/NativeScript/issues/4283) IOS: ActionBar will appear broken when internet sharing bar is displayed -- [(# 4046)](https://github.com/NativeScript/NativeScript/issues/4046) Animating a view is broken and freezes the animated properties +- [(# 4342)](https://github.com/NativeScript/NativeScript/issues/4342) Unable to change the fontWeight. +- [(# 4322)](https://github.com/NativeScript/NativeScript/issues/4322) Flashing border on scroll within ListView on Android when border-radius is applied +- [(# 4283)](https://github.com/NativeScript/NativeScript/issues/4283) IOS: ActionBar will appear broken when internet sharing bar is displayed +- [(# 4046)](https://github.com/NativeScript/NativeScript/issues/4046) Animating a view is broken and freezes the animated properties ### New -- [(# 4522)](https://github.com/NativeScript/NativeScript/issues/4522) Allow toggling of ScrollBar indicators on ScrollView -- [(# 2740)](https://github.com/NativeScript/NativeScript/issues/2740) Improved ActionBar CSS Support +- [(# 4522)](https://github.com/NativeScript/NativeScript/issues/4522) Allow toggling of ScrollBar indicators on ScrollView +- [(# 2740)](https://github.com/NativeScript/NativeScript/issues/2740) Improved ActionBar CSS Support - [(# 1664)](https://github.com/NativeScript/NativeScript/issues/1664) Implemented css line-height property ## 3.1.0 (2017, June 22) @@ -1353,7 +1363,7 @@ A full list of breaking changes could be found [here](https://github.com/NativeS - [(#2344)](https://github.com/NativeScript/NativeScript/pull/2344) Action bar doesn't handle events properly when a custom button -- [(#1655)](https://github.com/nativescript/nativescript/issues/1655) Added CSS not cascadded after screen is built +- [(#1655)](https://github.com/nativescript/nativescript/issues/1655) Added CSS not cascadded after screen is built - [(#2310)](https://github.com/NativeScript/NativeScript/pull/2310) Sorting issue with Css Selectors with same specificity. @@ -1385,7 +1395,7 @@ A full list of breaking changes could be found [here](https://github.com/NativeS - [(#2191)](https://github.com/NativeScript/NativeScript/pull/2191) SegmentedBar unbound items not firing selectedIndex change events -- [(#2177)](https://github.com/NativeScript/NativeScript/issues/2177) iOS CSS Animation rotate() do not reset the value after 360 degrees rotation +- [(#2177)](https://github.com/NativeScript/NativeScript/issues/2177) iOS CSS Animation rotate() do not reset the value after 360 degrees rotation - [(#2161)](https://github.com/NativeScript/NativeScript/issues/2161) TranslateX and Animate in iOS strange behaviour on 2.0 @@ -1445,7 +1455,7 @@ A full list of breaking changes could be found [here](https://github.com/NativeS - [(#2126)](https://github.com/NativeScript/NativeScript/pull/2126) zIndex fixed for Android buttons -- [(#2113)](https://github.com/NativeScript/NativeScript/issues/2113) Panning gesture in Android creates non-smooth delta coordinates. +- [(#2113)](https://github.com/NativeScript/NativeScript/issues/2113) Panning gesture in Android creates non-smooth delta coordinates. - [(#2100)](https://github.com/NativeScript/NativeScript/pull/2100) Fix navigatedFrom event raised when Activity is destroyed without act… @@ -1646,7 +1656,7 @@ A full list of breaking changes could be found [here](https://github.com/NativeS - [(#1275)](https://github.com/NativeScript/NativeScript/issues/1275) ActionBar disappears when app closes with back button -- [(#1240)](https://github.com/NativeScript/NativeScript/issues/1240) Android 5.x: setting View.opacity (setAlpha) removes its background +- [(#1240)](https://github.com/NativeScript/NativeScript/issues/1240) Android 5.x: setting View.opacity (setAlpha) removes its background - [(#1232)](https://github.com/NativeScript/NativeScript/issues/1232) WrapLayout crashes when itemWidth value is too high @@ -2038,7 +2048,7 @@ animation1.play().then(()=>console.log("Finished")); - [(#541)](https://github.com/NativeScript/NativeScript/issues/541) Make TabViewItem properties data-bindable -- [(#530)](https://github.com/NativeScript/NativeScript/issues/530) Ability to set text size of searchBar +- [(#530)](https://github.com/NativeScript/NativeScript/issues/530) Ability to set text size of searchBar - [(#481)](https://github.com/NativeScript/NativeScript/issues/481) Support padding on TextField and Button elements @@ -2201,7 +2211,7 @@ application.ios.removeNotificationObserver(observer, UIDeviceBatteryLevelDidChan * iOS dialog OK button now appears last. ### Breaking changes -* `image-cache` now stores native image instances, i.e., `android.graphics.Bitmap` or `UIImage`. +* `image-cache` now stores native image instances, i.e., `android.graphics.Bitmap` or `UIImage`. * `Image.src` property is now of type `any` and can accept either a string containing an image url or a native image instance. * Gesture-related enum values changed to start with a small letter in order to be consistent with all other enums within NativeScript. For example, "gesturesModule.GestureType.Tap" should be used like "gesturesModule.GestureType.tap". * `knownEvents` modules within all UI controls are removed and replaced with a static string values. In that case, all possible events will be visible through the inheritance tree. These static strings have an `Event` suffix. Every place where `viewModule.knownEvents.loaded` is used should be changed to `viewModule.View.loadedEvent` or `pageModule.Page.loadedEvent`. This change is relevant to code-behind only (xml declaration will not be affected). diff --git a/e2e/scoped-packages/package.json b/e2e/scoped-packages/package.json index 9d8ed6d9b..17afb6e57 100644 --- a/e2e/scoped-packages/package.json +++ b/e2e/scoped-packages/package.json @@ -13,9 +13,9 @@ "license": "SEE LICENSE IN ", "repository": "", "dependencies": { - "@nativescript/core": "file:../../dist/nativescript-core-6.4.0.tgz", + "@nativescript/core": "file:../../dist/nativescript-core-6.4.1.tgz", "nativescript-theme-core": "~1.0.6", - "tns-core-modules": "file:../../dist/tns-core-modules-6.4.0.tgz" + "tns-core-modules": "file:../../dist/tns-core-modules-6.4.1.tgz" }, "devDependencies": { "nativescript-dev-webpack": "~1.2.0", diff --git a/nativescript-core/package.json b/nativescript-core/package.json index 2d00c9613..61680af6a 100644 --- a/nativescript-core/package.json +++ b/nativescript-core/package.json @@ -3,7 +3,7 @@ "main": "index", "types": "index.d.ts", "description": "Telerik NativeScript Core Modules", - "version": "6.4.0", + "version": "6.4.1", "homepage": "https://www.nativescript.org", "repository": { "type": "git", diff --git a/tns-core-modules-package/package.json b/tns-core-modules-package/package.json index 0ed032383..afe5d8e5f 100644 --- a/tns-core-modules-package/package.json +++ b/tns-core-modules-package/package.json @@ -3,7 +3,7 @@ "main": "index", "types": "index.d.ts", "description": "Telerik NativeScript Core Modules", - "version": "6.4.0", + "version": "6.4.1", "homepage": "https://www.nativescript.org", "repository": { "type": "git", diff --git a/tns-platform-declarations/package.json b/tns-platform-declarations/package.json index 0cde27773..70f5b58ed 100644 --- a/tns-platform-declarations/package.json +++ b/tns-platform-declarations/package.json @@ -1,6 +1,6 @@ { "name": "tns-platform-declarations", - "version": "6.4.0", + "version": "6.4.1", "description": "Platform-specific TypeScript declarations for NativeScript for accessing native objects", "main": "", "scripts": { From 74db8d955d9f70390d26a0ccec716fa2668fe62e Mon Sep 17 00:00:00 2001 From: Dimitar Topuzov Date: Mon, 17 Feb 2020 17:10:37 +0200 Subject: [PATCH 15/15] chore: bump tns-core-modules-widgets version (#8352) --- tns-core-modules-widgets/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tns-core-modules-widgets/package.json b/tns-core-modules-widgets/package.json index af49aaa7e..cd539bb66 100644 --- a/tns-core-modules-widgets/package.json +++ b/tns-core-modules-widgets/package.json @@ -1,6 +1,6 @@ { "name": "tns-core-modules-widgets", - "version": "6.4.0", + "version": "6.4.1", "description": "Native widgets used in the NativeScript framework.", "scripts": { "test": "echo \"Error: no test specified\" && exit 1"