5935 Commits

Author SHA1 Message Date
c0f7dcd527 Merge branch 'master' into dispose-fragment-crash 2019-12-13 11:06:06 +02:00
217d22e66a Merge pull request #8185 from NativeScript/darind/css-parser-default
feat: Make css-tree the default parser
2019-12-13 11:03:44 +02:00
c5c3840bd3 Merge branch 'master' into darind/css-parser-default 2019-12-13 10:34:36 +02:00
eac179cd3f Merge pull request #8190 from NativeScript/niliev/keyboard
feat: add integer only keyboard type for text-field
2019-12-13 10:09:36 +02:00
954e1c61b5 feat: add integer only keyboard type for text-field and for all editable text components 2019-12-12 10:45:20 +02:00
6cafd7ae3b fix(modal): set update dialogFragment of View after suspend 2019-12-12 10:05:08 +02:00
0cace8089a Merge branch 'master' into dispose-fragment-crash 2019-12-11 13:38:55 +02:00
ab4c389ede feat: Make css-tree the default parser 2019-12-10 17:16:20 +02:00
b20ec86969 refactor: use fragment.getFragmentManager 2019-12-06 16:44:50 +02:00
9fd77fb648 fix: don't create bitmaps for no-width fragments 2019-12-06 16:14:42 +02:00
c5b7f439f2 docs: fix codeblocks (#8173) 2019-12-06 11:42:18 +02:00
f5fc4769a4 Merge branch 'master' into dispose-fragment-crash 2019-12-05 14:33:11 +02:00
cd5703a6b7 feat(dialogs): Setting the size of popup dialog thru dialog options (#8041)
* Added iOS specific height and width attributes to ShowModalOptions

* Set the height and width of the popup dialog to the presenting controller

* dialog options ios attributes presentationStyle, height & width are made optional

* Updated NativeScript.api.md for public API changes

* Update with git properties

* Public API

* CLA update
2019-12-05 14:30:40 +02:00
49a7607f4e feat(css): Added optional css-tree parser (#8076)
* feat(css): Added optional css-tree parser

* test: css-tree parser compat tests

* test: more css-tree compat tests
2019-12-05 10:23:32 +02:00
a75397af20 fix: check is disposed fragment is in fragmentMngr 2019-12-04 14:52:45 +02:00
f5d6e4f5ed Merge pull request #8157 from NativeScript/remove-tns-core-modules-mentions
chore: remove mentions of tns-core-modules
2019-12-04 14:31:14 +02:00
e4f99e065c Merge branch 'master' into remove-tns-core-modules-mentions 2019-12-04 12:24:40 +02:00
c135d2d61e Merge pull request #8163 from NativeScript/merge-release-in-master
chore: Merge release in master
2019-12-04 12:09:38 +02:00
08b21164c6 tests: update cycles 2019-12-03 16:10:39 +02:00
6c24650c86 Merge remote-tracking branch 'origin/master' into merge-release-in-master 2019-12-03 15:51:59 +02:00
73d5b3442c Merge branch 'master' into remove-tns-core-modules-mentions 2019-12-03 14:32:48 +02:00
24cd16649c chore: remove mentions of tns-core-modules 2019-12-03 11:50:30 +02:00
7b78f3b0c6 feat: System css classes for modals (#8155)
* feat: update modal views CSS classes

* chore: fix failing test
2019-12-03 11:08:33 +02:00
2bb7ad9d01 Implements: Proxy layout properties for the ProxyViewContainer (#8150)
* feat(ProxyViewContainer): proxy layout properties to children

* update import path

* fix(ProxyViewContainer): Layout properties not applied to new children

* test(ProxyViewContainer): Add test for layout properties

* chore: fix tslint errors
2019-12-02 11:13:23 +02:00
3199a392b4 fix(grid-layout): value parser will now accept strings or numbers (#8042) 2019-11-29 17:40:24 +02:00
2aa6e9bf92 feat: support requestAnimationFrame (#8112)
* feat: support requestAnimationFrame

* add native helpers to measure time

* test(animation-frame): add tests

* chore: refactor animation-frame to its own module

* chore: fix tslint
2019-11-29 11:17:26 +02:00
0ffc790d82 chore: remove critical circular dependencies (#8114)
* chore: remove critical circular dependencies

* chore: fix tslint errors

* chore: remove platform specific types from interfaces

* chore: update unit tests polyfills

* fix: incorrect null check

* chore: update api.md file

* test: improve test case

* chore: apply comments

* test: avoid page style leaks in tests
2019-11-28 13:36:34 +02:00
ab09064345 Merge pull request #8144 from NativeScript/release-6.2.3
chore: cut 6.2.3 release
2019-11-26 18:23:47 +02:00
955b0f30d8 chore: cut 6.2.3 release 2019-11-26 16:56:02 +02:00
2b1fab3b26 Merge pull request #8138 from NativeScript/release-6.2.2
chore: cut the 6.2.2 release
6.2.2
2019-11-26 14:58:56 +02:00
dd09de3ac4 release: cut the 6.2.2 release 2019-11-26 07:43:02 +02:00
47f4c25a69 fix(frame): push recreated frame back in frameStack when Don't Keep Activities enabled (#8096) 2019-11-22 11:18:37 +02:00
5b647bd809 tests: fix private nativescript-dev-webpack API usage (#8124) 2019-11-21 21:20:22 +02:00
529f0c4f86 chore: fix a typo in a comment (#8128) 2019-11-21 16:51:39 +02:00
0175c4b35a chore: housekeeping (#8129) 2019-11-21 16:51:17 +02:00
786aca3039 chore: stabilize iOS13 unit tests (#8127) 2019-11-21 16:50:31 +02:00
800f5bcfe4 fix: tab navigations don't work with lowercase xml (#8016) 2019-11-21 14:48:33 +02:00
8d2dd2eb21 docs: add test report info in the contribution guidelines (#8116) 2019-11-21 14:10:12 +02:00
defb4f8880 test: execute api-extractor on CI properly (#8123) 2019-11-21 08:25:06 +02:00
3daca6638b Merge pull request #8088 from NativeScript/merge-6.2.1-release-in-master
chore: merge 6.2.1 release in master
2019-11-20 11:44:00 +02:00
6a1e57c604 Merge branch 'master' into merge-6.2.1-release-in-master 2019-11-20 10:21:48 +02:00
04f87e37ac docs(changelog): typo (#8121) 2019-11-20 10:18:14 +02:00
c5df258043 feat(modal-view-ios): handle iOS 13 dismiss modal gesture (#8024)
* feat(modal-view): introduce cancelable property on ShowModalOptions

* fix(modal-view): handle iOS 13 modal dismiss gesture

* chore: address PR comments
2019-11-20 10:00:54 +02:00
60ac4e7a05 fix(iOS): Opening alert/confirm on top most of modal dialogs (#7982)
This is fix for the issue #6939 where alert() and confirm() does not work in a modal dialog if it's opened on top of an existing modal dialog.
2019-11-19 16:36:08 +02:00
bed0565461 chore: update nativescript.api.md (#8117) 2019-11-19 15:50:16 +02:00
b069ff38f3 fix(iOS): check for iOS 13 APIs (#8093) 2019-11-18 13:39:00 +02:00
d983f79923 fix(frame): nested frame wrong background after parent navigation (#8095) 2019-11-14 16:43:19 +02:00
bca1271329 fix(android): Fatal Exception: java.lang.OutOfMemoryError (#8061) (#8098)
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 14:22:20 +02:00
03b058b99f Merge branch 'master' into merge-6.2.1-release-in-master 2019-11-14 10:16:47 +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