64 Commits

Author SHA1 Message Date
68c313d039 chore(release): 6.5.10 2020-07-11 08:27:44 -07:00
36aa181185 feat(tabs): add animationEnabled property (#8704) 2020-07-11 07:58:50 -07:00
9834c4f887 chore(release): 6.5.9 2020-07-07 16:38:09 -07:00
02ec7f104d fix(scroll-view): android 'isScrollEnabled' will apply if changed while gesture is underway (#8695) 2020-07-06 19:05:40 -07:00
4d57ced35f chore(release): 6.5.8 2020-06-20 08:49:11 -07:00
4f65beab33 chore(release): 6.5.7 2020-06-17 14:43:21 -07:00
29541b89b1 chore(release): 6.5.6 2020-06-16 15:31:53 -07:00
3198f92580 chore(release): cut 6.5.5 release 2020-06-09 22:56:54 -07:00
484617cb2c chore: cut 6.5.4 release (#8613)
* chore: cut 6.5.4 release

* chore: changelog
2020-06-04 21:25:21 +02:00
7f8070e247 chore: cut 6.5.3 release (#8610) 2020-06-03 16:55:40 -07:00
ad9daa825f fix: dont default to Font.default (#8401)
* fix: dont default to Font.default

This would cause a font to be set for any label even when using default system font.
This will also cause a typeface which is pretty long

* lint: lint fixes

* fix: added null font guards

* fix: Used default bold for TabView

Co-authored-by: Vasko <v.trifonov@gmail.com>
2020-04-03 16:40:14 +03:00
66cc8a477e fix(button-android): use setMinWidth to set TextView widgets min-width (#7804)
* fix: setMinimumWidth does not really set the minWidth for TextView widgets

* chore: fix versions

* refactor(android): default minWidth/Height values for button

* reafctor: reset minWidth when view is in flexbox for backcompat

* refactor: ensure back-compatible layout for btns

* chore: cut 6.5.0 release (#8443)

* release: cut 6.5.0 release

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>

Co-authored-by: vakrilov <alexander.vakrilov@telerik.com>
Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com>
Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
2020-03-26 13:07:04 +02:00
1f04469fb3 feat(css-bkg-pos): Added possibility to declare background pos by single numeric value (#7958)
* feat(css-bkg-pos): Added possibility to declare background pos by single numeric value

* feat(css-bkg-pos): Implemented numeric bkg pos for iOS

* feat(css-bkg-pos): removed unnecessary code

Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
2020-03-24 10:17:35 +02:00
89ee60be00 chore: bump version to 6.6.0 2020-03-18 16:46:09 +02:00
8dbec723f6 Merge branch 'release' 2020-03-16 14:31:26 +02:00
243dc98005 Added selectedItemColor and unSelectedItemColor to the TabStrip (#8431)
* chore: add guard for ios

* feat(bottom-nav): adding new properties

* feat(tabs): new property implementation

* feat: new feature implementation in android

Implemented selectedItemColor and unSelectedItemColor properties on TabStrip

* chore: added some comments

* chore: change method return type

* fix: setting icon color

* fix: rendering mode setting

* chore: rename variable

* chore: fixed a typo

* chore: updated log in build gradle

* fix: item color setting in android

* fix: tab styling when no css aplied

* chore: private methods renamed

* tests: added selected-item test pages

* chore: renamed test pages

* chore: move css-tree package to the right place

* tests: added new ui tests

* fix: use renamed function

* fix: set item color

* tests: aded automationText attribute

* tests: trying to fix the tests

Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com>
2020-03-16 12:54:30 +02:00
9d4e482b38 fix: added null guard 2020-03-06 14:35:57 +02:00
1c46d748a0 chore: addressing review comments 2020-03-06 11:12:22 +02:00
9830be7230 fix(bottom-nav): align text with different icons 2020-03-05 15:35:07 +02:00
23130b73e1 chore: change version for patch 6.4.2 2020-02-27 10:54:48 +02:00
8b7a968d2f chore: bump version to 6.5.0 2020-02-25 17:13:09 +02:00
e293367dfc feat(http): better binary support & XHR support (#7707)
* feat(http): binary upload support

* feat(http): better binary support & XHR support

* fix: linting issue

* chore: moved files from old place to the new one

* chore: Updated NativeScript.api.md

* feat(http): support both ByteBuffer and String

Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
2020-01-28 15:22:32 +02:00
d65a2db83a fix(android): Request Timeout #6523 (#8194)
Fix http requests to use read timeout in addition to connect timeout.

Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com>
2020-01-09 10:54:35 +02:00
8d382a6b2e fix(android): Fatal Exception: java.lang.OutOfMemoryError (#8061)
Crashlytics:
**Async.java line 181**
**org.nativescript.widgets.Async$Image$DownloadImageTask.doInBackground**
```
Fatal Exception: java.lang.OutOfMemoryError: Failed to allocate a 3601932 byte allocation with 970044 free bytes and 947KB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(VMRuntime.java)
at android.graphics.BitmapFactory.nativeDecodeStream(BitmapFactory.java)
at android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:863)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:839)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:877)
at org.nativescript.widgets.Async$Image$DownloadImageTask.doInBackground(Async.java:181)
at org.nativescript.widgets.Async$Image$4.run(Async.java:157)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at org.nativescript.widgets.Async$PriorityThreadFactory$1.run(Async.java:86)
at java.lang.Thread.run(Thread.java:818)
```

Crashlytics
**Async.java line 473**
**org.nativescript.widgets.Async$Http$RequestResult.readResponseStream**
```
Fatal Exception: java.lang.OutOfMemoryError: Failed to allocate a 3000012 byte allocation with 2043950 free bytes and 1996KB until OOM
       at dalvik.system.VMRuntime.newNonMovableArray(VMRuntime.java)
       at android.graphics.BitmapFactory.nativeDecodeByteArray(BitmapFactory.java)
       at android.graphics.BitmapFactory.decodeByteArray(BitmapFactory.java:744)
       at org.nativescript.widgets.Async$Http$RequestResult.readResponseStream(Async.java:473)
       at org.nativescript.widgets.Async$Http$HttpRequestTask.doInBackground(Async.java:555)
       at org.nativescript.widgets.Async$Http$1.run(Async.java:307)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
       at org.nativescript.widgets.Async$PriorityThreadFactory$1.run(Async.java:86)
       at java.lang.Thread.run(Thread.java:818)
```

## PR Checklist

- [x] The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/CONTRIBUTING.md#commit-messages.
- [x] There is an issue for the bug/feature this PR is for. To avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it.
- [x] You have signed the [CLA](http://www.nativescript.org/cla).
- [x] All existing tests are passing: https://github.com/NativeScript/NativeScript/blob/master/DevelopmentWorkflow.md#running-unit-tests.
- [ ] Tests for the changes are included - https://github.com/NativeScript/NativeScript/blob/master/WritingUnitTests.md.

## What is the current behavior?
Uncaught exception resulting in crash. This was introduced in v6.2.0.

## What is the new behavior?
Additional `catch` block for uncaught exception type `OutOfMemoryError`

Fixes:
https://www.telerik.com/account/support-tickets/view-ticket/1436458
2019-11-14 10:04:46 +02:00
034e84ebaf chore: bump version to 6.3.0 (#7973) 2019-10-17 16:18:11 +03:00
08e23bcc3b feat: overhaul and streamline Android page navigation transitions (#7925)
* feat: remove Animators and replace with Transitions

* fix: handle disappearing nested fragments for tabs.

Extract TabFragmentImplementation in tab-navigation base for both tabs and bottom navigation

* chore: bump webpack cycles counter

* feat(android-widgets): add androidx.transition:transition as dependency

* chore: fix typescript errors

* fix(frame-android): child already has a parent. Replace removeView with removeAllViews

* fix(tests): wait for fragment before isAdded() check

* fix(bottom-navigation): prevent changeTab logic when fragment manager is destroyed

* chore: apply PR comments changes
2019-10-15 18:19:47 +03:00
2146ac902f feat(file-system): async read/write (#7671) 2019-10-02 11:21:18 +03:00
e6c7e0c1ac Merge remote-tracking branch 'origin' into merge-release-in-master 2019-09-18 01:08:56 +03:00
25046c7f94 chore: remove grunt and update build scripts (#7838)
* chore: prepare and pack scripts

* chore: update @types/node dep

* chore: remove prepare-dist command from pack-dist
2019-09-18 01:05:39 +03:00
d772d21de0 chore: bump versino to 6.2.0 2019-08-23 18:06:47 +03:00
c0b8db4098 feat: flexbile font icon usage in tab navigation (#7672) 2019-08-15 17:32:48 +03:00
443d6b5dcb Merge remote-tracking branch 'origin/master' into tsenov/merge-release-in-master 2019-08-07 16:22:05 +03:00
2518655ab3 fix(tabs-android): tabStripItem color not applied (#7617) 2019-08-01 10:02:05 +03:00
56fc3e1af4 Merge remote-tracking branch 'origin/master' into svetoslavtsenov/merge-release-in-master-6.0.4 2019-07-31 17:43:15 +03:00
201db5c154 fix(tabstrip-android):fix selection highlight not visible (#7605) 2019-07-31 11:34:43 +03:00
f94e4f3cbb release: cut the 6.0.3 release (#7603) 2019-07-29 15:52:07 +03:00
291e3b4b2e fix(ios): move material design dependency to podfile (#7592) 2019-07-28 22:22:29 +03:00
8e057c75b3 Merge branch 'master' into myankov/merge-release 2019-07-22 08:58:04 +03:00
46c17ca3a4 fix(bottom-navigation): crash when tab selected with no item (#7527) 2019-07-19 17:09:40 +03:00
abc143eeac Merge remote-tracking branch 'origin/master' into svetoslavtsenov/merge-release-in-master 2019-07-16 13:26:15 +03:00
ca22ba9391 fix(tabs-android): wrong tabStripItem selected (#7522) 2019-07-16 10:18:01 +03:00
a908952ded chore: bump widgets version 2019-07-11 00:37:22 +03:00
30fc585425 feat: add css support for tabs widget (#7491) 2019-07-10 19:22:55 +03:00
fab9c90007 feat(bottom-navigation-android): add tabstripitem css support (#7458)
* wip: add background color placeholders for tabstripitem

* feat: add css for tabstripitem for bottom navigation android

* chore: update example

* fix: revert native default index

* clean up tabcontentitem

* update setTabBarItemTextTransform

* textTransform inherited css property now

* fix(android-bottom-navigation): fragment detach logic

* chore: fix tests

* fix(android-bottom-navigation): fragment lifecycle logic

* fix: revert text-transform inherited css property
2019-07-09 13:33:32 +03:00
250eb31c6e chore: bump to 6.1.0 (#7422) 2019-06-28 19:01:59 +03:00
4437cd622b fix(android): ignore gzip content-encoding for 204 statusCode (#7417) 2019-06-28 13:41:44 +03:00
94629ce86c chore: move typing for material design in tns-platform-declarations (#7352) 2019-06-17 13:49:52 +03:00
0c2c1ccfde feat: re-design tab views (#7340) 2019-06-13 11:01:55 +03:00
c5db112b8d feat(android): androidX support (#7039)
* feat: migrate support library namespaces to androidX

* feat(tns-platform-declarations): update to androidX typings

* chore(tests): migrate test apps to AndroidX

* chore(tns-platform-declarations): update tsconfig to include androidx dts files

* update package.json to androidx

* chore(androidx): migrate forgotten support library namspaces

* feat(tns-core-modules-widgets): migrate to AndroidX namespaces

* chore(utils): update androidx namspace for getPaletteColor method

* chore(apps): update tns-platform-declarations package

* Update package.json
2019-06-10 09:21:41 +03:00
b88d4948fc Merge branch 'master' into mdonev/release-to-master20190606 2019-06-06 12:47:57 +03:00