Visitar URL original
Release to master (#8382) · NativeScript/NativeScript@2d4e258 · GitHub
Skip to content

Commit 2d4e258

Browse files
vtrifonovhamidbsdvakrilovdtopuzovNickIliev
authored
Release to master (#8382)
* fix the crash * chore: update MaterialComponents pod (#8176) * chore: update MaterialComponents pod * chore: remove copy of pod file in build script * chore: cut the 6.3.0 release (#8174) * hore: cut the 6.3.1 release * fix: handle fake attach after FragMgr is destroyed (#8200) * fix: check is disposed fragment is in the FragmentManager (#8201) * release: cut the 6.3.2 release * release: cut the 6.4.0 release * chore(build): always use local typescript * fix: flipLeft and flipRight on Android (#8307) * fix(android): tap-trip-item title disappearing * fix(andoid): crash when setting font on tab-item with no image * fix(build): Add platforms/android to NPM package (#8312) Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com> Co-authored-by: Alexander Vakrilov <alexander.vakrilov@gmail.com> * release: cut the 6.4.1 release * chore: bump tns-core-modules-widgets version (#8352) Co-authored-by: hamidbsd <50081218+hamidbsd@users.noreply.github.com> Co-authored-by: Alexander Vakrilov <alexander.vakrilov@gmail.com> Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com> Co-authored-by: Nick Iliev <nikolay.iliev@telerik.com> Co-authored-by: Martin Bektchiev <martin.bektchiev@progress.com> Co-authored-by: Rosen Vladimirov <rosen-vladimirov@users.noreply.github.com>
1 parent 8b7a968 commit 2d4e258

11 files changed

Lines changed: 95 additions & 36 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 59 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
1+
## 6.4.1 (2020-02-17)
2+
3+
4+
### Bug Fixes
5+
6+
* flipLeft and flipRight on Android ([#8307](https://github.com/NativeScript/NativeScript/issues/8307)) ([c13b104](https://github.com/NativeScript/NativeScript/commit/c13b104))
7+
* **andoid:** crash when setting font on tab-item with no image ([2dd3bb2](https://github.com/NativeScript/NativeScript/commit/2dd3bb2))
8+
* **android:** tap-trip-item title disappearing ([cb8cea8](https://github.com/NativeScript/NativeScript/commit/cb8cea8))
9+
* **build:** Add platforms/android to NPM package ([#8312](https://github.com/NativeScript/NativeScript/issues/8312)) ([a644e40](https://github.com/NativeScript/NativeScript/commit/a644e40))
10+
11+
# 6.4.0 (2020-01-31)
12+
13+
14+
### Bug Fixes
15+
16+
* button textAlignment on IOS (UIButton) ([#8181](https://github.com/NativeScript/NativeScript/issues/8181)) ([05ef9b0](https://github.com/NativeScript/NativeScript/commit/05ef9b0))
17+
* **android:** crash on setting elevation on API21 ([#8269](https://github.com/NativeScript/NativeScript/issues/8269)) ([02763ec](https://github.com/NativeScript/NativeScript/commit/02763ec))
18+
* **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))
19+
* 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))
20+
* make integer type visible ([ea8a436](https://github.com/NativeScript/NativeScript/commit/ea8a436))
21+
* remove the password for TextField as well ([#8290](https://github.com/NativeScript/NativeScript/issues/8290)) ([0b50f3e](https://github.com/NativeScript/NativeScript/commit/0b50f3e))
22+
* 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))
23+
* **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))
24+
* **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))
25+
26+
27+
### Features
28+
29+
* **html-view:** Additional properties for HtmlView component ([#8207](https://github.com/NativeScript/NativeScript/issues/8207)) ([9217094](https://github.com/NativeScript/NativeScript/commit/9217094))
30+
* **http:** better binary support & XHR support ([#7707](https://github.com/NativeScript/NativeScript/issues/7707)) ([e293367](https://github.com/NativeScript/NativeScript/commit/e293367))
31+
* **ios:** set preferredStatusBarStyle in Page VCs ([#8241](https://github.com/NativeScript/NativeScript/issues/8241)) ([4e48e68](https://github.com/NativeScript/NativeScript/commit/4e48e68))
32+
* add longPress state with UIGestureRecognizer (iOS) ([416f1c8](https://github.com/NativeScript/NativeScript/commit/416f1c8))
33+
* **textview:** added maxLines property ([#7943](https://github.com/NativeScript/NativeScript/issues/7943)) ([3c79ded](https://github.com/NativeScript/NativeScript/commit/3c79ded))
34+
* 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)
35+
* Add Android APIs usage list ([#8286](https://github.com/NativeScript/NativeScript/issues/8286)) ([f031f6f](https://github.com/NativeScript/NativeScript/commit/f031f6f))
36+
* add integer only keyboard type for text-field and for all editable text components ([954e1c6](https://github.com/NativeScript/NativeScript/commit/954e1c6))
37+
* Add iOS APIs usage list ([#8291](https://github.com/NativeScript/NativeScript/issues/8291)) ([3bb8a40](https://github.com/NativeScript/NativeScript/commit/3bb8a40))
38+
* Make css-tree the default parser ([ab4c389](https://github.com/NativeScript/NativeScript/commit/ab4c389))
39+
140
## [6.3.2](https://github.com/NativeScript/NativeScript/compare/6.3.1...6.3.2) (2019-12-20)
241

342

@@ -347,7 +386,7 @@ Before:
347386
* double tap: child tap -> parent tap -> child double tap -> parent double tap
348387
* tap: child tap -> parent tap
349388

350-
After:
389+
After:
351390
* **iOS**:
352391
* double tap: child double tap
353392
* tap: child tap
@@ -679,7 +718,7 @@ Move event handlers accordingly.
679718
* **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)):
680719
- NativeScript activities now extend `android.support.v7.app.AppCompatActivity` (vs android.app.Activity)
681720
- NativeScript fragments now extend `android.support.v4.app.Fragment` (vs android.app.Fragment)
682-
- NativeScript now works internally with `android.support.v4.app.FragmentManager` (vs android.app.FragmentManager)
721+
- NativeScript now works internally with `android.support.v4.app.FragmentManager` (vs android.app.FragmentManager)
683722

684723
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.
685724

@@ -722,7 +761,7 @@ let wrapLayout: LayoutBase; // or let wrapLayout: WrapLayout;
722761

723762
export function pageLoaded(args: EventData) {
724763
const page = <Page>args.object;
725-
wrapLayout = page.getViewById<LayoutBase>("wrapLayout"); // or wrapLayout = page.getViewById<WrapLayout>("wrapLayout");
764+
wrapLayout = page.getViewById<LayoutBase>("wrapLayout"); // or wrapLayout = page.getViewById<WrapLayout>("wrapLayout");
726765
}
727766
```
728767
* **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))
@@ -807,7 +846,7 @@ The change is that now if these widgets touch the edge of the safe area, they wi
807846

808847
### BREAKING CHANGES
809848

810-
* **typings:**
849+
* **typings:**
811850
* 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.
812851
* We are now generating only **public** methods, so all the methods which you override when extending Android class should be **public**.
813852
* You need to use **Array\<string>** (lowercase **string**) instead of **Array\<String>** (uppercase **String**) when overriding a method accepting string array type.
@@ -1004,7 +1043,7 @@ our @CSSType decorated classes will now have to be marked with @CSSType.
10041043
- [(# 4582)](https://github.com/NativeScript/NativeScript/issues/4582) IOS: Label with formatted text and theme classes crashes
10051044
- [(# 4138)](https://github.com/NativeScript/NativeScript/issues/4138) Cannot change TabView icon
10061045
- [(# 4419)](https://github.com/NativeScript/NativeScript/issues/4419) Debugger.js exception for HTTP requests with no Content-Type
1007-
- [(# 4650)](https://github.com/NativeScript/NativeScript/issues/4650) Image replacement is not respected during tns run android
1046+
- [(# 4650)](https://github.com/NativeScript/NativeScript/issues/4650) Image replacement is not respected during tns run android
10081047
- [(# 3963)](https://github.com/NativeScript/NativeScript/issues/3963) ListView multiple item templates do not work inside a TabView
10091048
- [(# 4647)](https://github.com/NativeScript/NativeScript/issues/4647) Rename utils.ad.getPalleteColor to getPaletteColor
10101049
- [(# 4725)](https://github.com/NativeScript/NativeScript/pull/4725) Remove ListView selected state when rowHeight is set
@@ -1017,18 +1056,18 @@ our @CSSType decorated classes will now have to be marked with @CSSType.
10171056
## 3.1.1 (2017, August 08)
10181057

10191058
### Fixed
1020-
- [(# 4514)](https://github.com/NativeScript/NativeScript/issues/4514) IOS: Text/xml content type not treated as text
1021-
- [(# 4450)](https://github.com/NativeScript/NativeScript/issues/4450) IOS: TNS 3.1 breaks background-color through css binding
1022-
- [(# 4443)](https://github.com/NativeScript/NativeScript/issues/4443) IOS: Can't load local files in a WebView on device
1059+
- [(# 4514)](https://github.com/NativeScript/NativeScript/issues/4514) IOS: Text/xml content type not treated as text
1060+
- [(# 4450)](https://github.com/NativeScript/NativeScript/issues/4450) IOS: TNS 3.1 breaks background-color through css binding
1061+
- [(# 4443)](https://github.com/NativeScript/NativeScript/issues/4443) IOS: Can't load local files in a WebView on device
10231062
- [(# 4415)](https://github.com/NativeScript/NativeScript/issues/4415) Style error when setting background after upgrading to NS 3
1024-
- [(# 4342)](https://github.com/NativeScript/NativeScript/issues/4342) Unable to change the fontWeight.
1025-
- [(# 4322)](https://github.com/NativeScript/NativeScript/issues/4322) Flashing border on scroll within ListView on Android when border-radius is applied
1026-
- [(# 4283)](https://github.com/NativeScript/NativeScript/issues/4283) IOS: ActionBar will appear broken when internet sharing bar is displayed
1027-
- [(# 4046)](https://github.com/NativeScript/NativeScript/issues/4046) Animating a view is broken and freezes the animated properties
1063+
- [(# 4342)](https://github.com/NativeScript/NativeScript/issues/4342) Unable to change the fontWeight.
1064+
- [(# 4322)](https://github.com/NativeScript/NativeScript/issues/4322) Flashing border on scroll within ListView on Android when border-radius is applied
1065+
- [(# 4283)](https://github.com/NativeScript/NativeScript/issues/4283) IOS: ActionBar will appear broken when internet sharing bar is displayed
1066+
- [(# 4046)](https://github.com/NativeScript/NativeScript/issues/4046) Animating a view is broken and freezes the animated properties
10281067

10291068
### New
1030-
- [(# 4522)](https://github.com/NativeScript/NativeScript/issues/4522) Allow toggling of ScrollBar indicators on ScrollView
1031-
- [(# 2740)](https://github.com/NativeScript/NativeScript/issues/2740) Improved ActionBar CSS Support
1069+
- [(# 4522)](https://github.com/NativeScript/NativeScript/issues/4522) Allow toggling of ScrollBar indicators on ScrollView
1070+
- [(# 2740)](https://github.com/NativeScript/NativeScript/issues/2740) Improved ActionBar CSS Support
10321071
- [(# 1664)](https://github.com/NativeScript/NativeScript/issues/1664) Implemented css line-height property
10331072

10341073
## 3.1.0 (2017, June 22)
@@ -1324,7 +1363,7 @@ A full list of breaking changes could be found [here](https://github.com/NativeS
13241363

13251364
- [(#2344)](https://github.com/NativeScript/NativeScript/pull/2344) Action bar doesn't handle events properly when a custom button
13261365

1327-
- [(#1655)](https://github.com/nativescript/nativescript/issues/1655) Added CSS not cascadded after screen is built
1366+
- [(#1655)](https://github.com/nativescript/nativescript/issues/1655) Added CSS not cascadded after screen is built
13281367

13291368
- [(#2310)](https://github.com/NativeScript/NativeScript/pull/2310) Sorting issue with Css Selectors with same specificity.
13301369

@@ -1356,7 +1395,7 @@ A full list of breaking changes could be found [here](https://github.com/NativeS
13561395

13571396
- [(#2191)](https://github.com/NativeScript/NativeScript/pull/2191) SegmentedBar unbound items not firing selectedIndex change events
13581397

1359-
- [(#2177)](https://github.com/NativeScript/NativeScript/issues/2177) iOS CSS Animation rotate() do not reset the value after 360 degrees rotation
1398+
- [(#2177)](https://github.com/NativeScript/NativeScript/issues/2177) iOS CSS Animation rotate() do not reset the value after 360 degrees rotation
13601399

13611400
- [(#2161)](https://github.com/NativeScript/NativeScript/issues/2161) TranslateX and Animate in iOS strange behaviour on 2.0
13621401

@@ -1416,7 +1455,7 @@ A full list of breaking changes could be found [here](https://github.com/NativeS
14161455

14171456
- [(#2126)](https://github.com/NativeScript/NativeScript/pull/2126) zIndex fixed for Android buttons
14181457

1419-
- [(#2113)](https://github.com/NativeScript/NativeScript/issues/2113) Panning gesture in Android creates non-smooth delta coordinates.
1458+
- [(#2113)](https://github.com/NativeScript/NativeScript/issues/2113) Panning gesture in Android creates non-smooth delta coordinates.
14201459

14211460
- [(#2100)](https://github.com/NativeScript/NativeScript/pull/2100) Fix navigatedFrom event raised when Activity is destroyed without act…
14221461

@@ -1617,7 +1656,7 @@ A full list of breaking changes could be found [here](https://github.com/NativeS
16171656

16181657
- [(#1275)](https://github.com/NativeScript/NativeScript/issues/1275) ActionBar disappears when app closes with back button
16191658

1620-
- [(#1240)](https://github.com/NativeScript/NativeScript/issues/1240) Android 5.x: setting View.opacity (setAlpha) removes its background
1659+
- [(#1240)](https://github.com/NativeScript/NativeScript/issues/1240) Android 5.x: setting View.opacity (setAlpha) removes its background
16211660

16221661
- [(#1232)](https://github.com/NativeScript/NativeScript/issues/1232) WrapLayout crashes when itemWidth value is too high
16231662

@@ -2009,7 +2048,7 @@ animation1.play().then(()=>console.log("Finished"));
20092048

20102049
- [(#541)](https://github.com/NativeScript/NativeScript/issues/541) Make TabViewItem properties data-bindable
20112050

2012-
- [(#530)](https://github.com/NativeScript/NativeScript/issues/530) Ability to set text size of searchBar
2051+
- [(#530)](https://github.com/NativeScript/NativeScript/issues/530) Ability to set text size of searchBar
20132052

20142053
- [(#481)](https://github.com/NativeScript/NativeScript/issues/481) Support padding on TextField and Button elements
20152054

@@ -2172,7 +2211,7 @@ application.ios.removeNotificationObserver(observer, UIDeviceBatteryLevelDidChan
21722211
* iOS dialog OK button now appears last.
21732212

21742213
### Breaking changes
2175-
* `image-cache` now stores native image instances, i.e., `android.graphics.Bitmap` or `UIImage`.
2214+
* `image-cache` now stores native image instances, i.e., `android.graphics.Bitmap` or `UIImage`.
21762215
* `Image.src` property is now of type `any` and can accept either a string containing an image url or a native image instance.
21772216
* 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".
21782217
* `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).

‎build/generate-barrel-dts.sh‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ DIST=dist;
1313
ROOT_DIR=$(cd `dirname $0` && pwd)/..;
1414
cd "$ROOT_DIR"
1515

16+
# Aways execute npx tsc from repo root to use the local typescript
17+
npx tsc -v
1618
npx tsc -p nativescript-core/tsconfig.barrels.json
1719

1820
FROM="temp/dts-out"

‎build/pack-compat.sh‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ set -e
1111

1212
## Pack tns-core-modules
1313
(
14-
cd "dist/tns-core-modules"
1514

16-
echo 'Run tsc ...'
17-
npx tsc
15+
# Aways execute npx tsc from repo root to use the local typescript
16+
echo 'TypeScript transpile...'
17+
npx tsc -v
18+
npx tsc -p "dist/tns-core-modules"
19+
1820

1921
echo 'NPM packing ...'
22+
cd "dist/tns-core-modules"
2023
TGZ="$(npm pack)"
2124
mv "$TGZ" "../$TGZ"
2225
)

‎build/prepare-core.sh‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,14 @@ mkdir -p "$DIST"
6565
npx ncp README.md "$DIST"/"$PACKAGE"/README.md
6666

6767
(
68-
echo 'TypeScript transpile...'
6968
cd "$DIST/$PACKAGE"
7069
npm install
71-
npx tsc
7270
)
71+
72+
# Aways execute npx tsc from repo root to use the local typescript
73+
echo 'TypeScript transpile...'
74+
npx tsc -v
75+
npx tsc -p "$DIST/$PACKAGE"
7376

7477
echo "Clearing typescript definitions from private APIs..."
7578
npx ts-node --project ./build/tsconfig.json build/clear-private-definitions "$DIST/$PACKAGE"

‎nativescript-core/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"**/*.d.ts",
1414
"**/*.js",
1515
"**/platforms/ios/**",
16+
"**/platforms/android/**",
1617
"**/package.json",
1718
"!org.nativescript.widgets.d.ts"
1819
],
@@ -59,4 +60,4 @@
5960
}
6061
}
6162
}
62-
}
63+
}

‎nativescript-core/ui/bottom-navigation/bottom-navigation.android.ts‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ export class BottomNavigation extends TabNavigationBase {
391391
if (this._manager && this._manager.isDestroyed()) {
392392
return;
393393
}
394-
394+
395395
this._attachedToWindow = true;
396396
this.changeTab(this.selectedIndex);
397397
}
@@ -614,6 +614,9 @@ export class BottomNavigation extends TabNavigationBase {
614614

615615
private getIcon(tabStripItem: TabStripItem): android.graphics.drawable.BitmapDrawable {
616616
const iconSource = tabStripItem.image && tabStripItem.image.src;
617+
if (!iconSource) {
618+
return null;
619+
}
617620

618621
let is: ImageSource;
619622
if (isFontIconURI(iconSource)) {
@@ -705,7 +708,10 @@ export class BottomNavigation extends TabNavigationBase {
705708
}
706709

707710
public setTabBarItemFontInternal(tabStripItem: TabStripItem, value: Font): void {
708-
tabStripItem.nativeViewProtected.setTextSize(value.fontSize);
711+
if (value.fontSize) {
712+
tabStripItem.nativeViewProtected.setTextSize(value.fontSize);
713+
}
714+
709715
tabStripItem.nativeViewProtected.setTypeface(value.getAndroidTypeface());
710716
}
711717

‎nativescript-core/ui/frame/fragment.transitions.android.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export function _setAndroidFragmentTransitions(
145145
if (currentFragmentNeedsDifferentAnimation) {
146146
setupCurrentFragmentExplodeTransition(navigationTransition, currentEntry);
147147
}
148-
} else if (name === "flip") {
148+
} else if (name.indexOf("flip") === 0) {
149149
const direction = name.substr("flip".length) || "right"; //Extract the direction from the string
150150
const flipTransition = new FlipTransition(direction, navigationTransition.duration, navigationTransition.curve);
151151

‎nativescript-core/ui/tab-navigation-base/tab-strip-item/tab-strip-item.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,23 +127,23 @@ export class TabStripItem extends View implements TabStripItemDefinition, AddChi
127127
const parent = <TabStrip>this.parent;
128128
const tabStripParent = parent && <TabNavigationBase>parent.parent;
129129

130-
return tabStripParent && (<any>tabStripParent).setTabBarIconColor(this, args.value);
130+
return tabStripParent && tabStripParent.setTabBarIconColor(this, args.value);
131131
});
132132
this.image.style.on("colorChange", this._imageColorHandler);
133133

134134
this._imageFontHandler = this._imageFontHandler || ((args: PropertyChangeData) => {
135135
const parent = <TabStrip>this.parent;
136136
const tabStripParent = parent && <TabNavigationBase>parent.parent;
137137

138-
return tabStripParent && (<any>tabStripParent).setTabBarIconColor(this, args.value);
138+
return tabStripParent && tabStripParent.setTabBarIconColor(this, args.value);
139139
});
140140
this.image.style.on("fontInternalChange", this._imageFontHandler);
141141

142142
this._imageSrcHandler = this._imageSrcHandler || ((args: PropertyChangeData) => {
143143
const parent = <TabStrip>this.parent;
144144
const tabStripParent = parent && <TabNavigationBase>parent.parent;
145145

146-
return tabStripParent && (<any>tabStripParent).setTabBarIconColor(this, args.value);
146+
return tabStripParent && tabStripParent.setTabBarIconColor(this, args.value);
147147
});
148148
this.image.on("srcChange", this._imageSrcHandler);
149149
}

0 commit comments

Comments
 (0)