5879 Commits

Author SHA1 Message Date
47f4c25a69 fix(frame): push recreated frame back in frameStack when Don't Keep Activities enabled (#8096) 2019-11-22 11:18:37 +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
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
1528498a31 docs: cut the 6.2.1 release (#8087) 6.2.1 2019-11-12 16:53:50 +02:00
f68647233f fix(dev-tools): use app root in getDocument() (#8071) 2019-11-08 11:14:29 +02:00
7fa997865b fix: ensure @CallSuper native methods call superFunc (#8025) 2019-11-07 15:14:37 +02:00
0c7f8383a3 fix(dark-mode): formatted string and html view text color (#8031) 2019-11-07 13:43:27 +02:00
eb33ede5a7 fix(gradient): import LinearGradient with alias (#8063) 2019-11-06 16:37:59 +02:00
2a34368465 feat(application): add system appearance changed event to typings (#8034) 2019-11-06 14:07:34 +02:00
04c65392a2 test: ignore None transition scenario for api19 (#8035) 2019-11-02 01:48:38 +02:00
8b6c852436 test: refactor frames root tests (#8012) 2019-10-29 21:25:55 +02:00
696280dc33 chore: cut the 6.2.0 release (#8011) 6.2.0 2019-10-29 20:59:35 +02:00
a61de80a35 fix(bottom-navigation-android): crash when changing tab and suspending app (#8030) 2019-10-29 17:01:05 +02:00
85b92b0136 fix-next(css-class): set class before showing window (#8022) 2019-10-28 14:10:40 +02:00
640590627b refactor(dev-tools): replace topmost() usage (#8013) 2019-10-25 18:00:37 +03:00
d6bd90fd34 chore: more forgiving verions check hook (#8009) 2019-10-24 13:23:24 +03:00
beca1c8828 fix-next(iOS): set root viewe css classes before setup UI (#8005)
At application launch, `ns-root` class is not set when loading the theme.
2019-10-24 10:15:03 +03:00
c9bfec1cbe fix(ios-bot-nav): incorrect layout on orientation change (#7927) 2019-10-23 13:31:19 +03:00
7e87fe0018 chore(hook): Add check for min webpack v1.3.0 (#7998) 2019-10-23 11:01:35 +03:00
aacfce58ac refactor: deprecated goBack() usage (#8002) 2019-10-23 10:32:57 +03:00
0a495b55a2 refactor: android.R to const for performance reasons (#8003) 2019-10-22 22:09:17 +03:00
ae6c02258e chore: add re-exports for ts files (#7993) 2019-10-22 16:57:31 +03:00
2412c0b6f5 tests: fox modal navidation (#7997) 2019-10-22 16:54:24 +03:00
bfea96fbc0 fix-next(css-classes): increase application CSS selector version at runtime (#7992) 2019-10-22 13:54:02 +03:00
07abee748c tests: update gesture tests for api19 and api29 (#7975) 2019-10-21 23:50:55 +03:00
d2aa4a616e chore: bump tns-core-modules-compat (#7972) 2019-10-17 15:56:38 +03:00
cc97a16800 feat: Scoped Packages (#7911)
* chore: move tns-core-modules to nativescript-core

* chore: preparing compat generate script

* chore: add missing definitions

* chore: no need for http-request to be private

* chore: packages chore

* test: generate tests for tns-core-modules

* chore: add anroid module for consistency

* chore: add .npmignore

* chore: added privateModulesWhitelist

* chore(webpack): added bundle-entry-points

* chore: scripts

* chore: tests changed to use @ns/core

* test: add scoped-packages test project

* test: fix types

* test: update test project

* chore: build scripts

* chore: update build script

* chore: npm scripts cleanup

* chore: make the compat pgk work with old wp config

* test: generate diff friendly tests

* chore: create barrel exports

* chore: move files after rebase

* chore: typedoc config

* chore: compat mode

* chore: review of barrels

* chore: remove tns-core-modules import after rebase

* chore: dev workflow setup

* chore: update developer-workflow

* docs: experiment with API extractor

* chore: api-extractor and barrel exports

* chore: api-extractor configs

* chore: generate d.ts rollup with api-extractor

* refactor: move methods inside Frame

* chore: fic tests to use Frame static methods

* refactor: create Builder class

* refactor: use Builder class in tests

* refactor: include Style in ui barrel

* chore: separate compat build script

* chore: fix tslint errors

* chore: update NATIVESCRIPT_CORE_ARGS

* chore: fix compat pack

* chore: fix ui-test-app build with linked modules

* chore: Application, ApplicationSettings, Connectivity and Http

* chore: export Trace, Profiling and Utils

* refactor: Static create methods for ImageSource

* chore: fix deprecated usages of ImageSource

* chore: move Span and FormattedString to ui

* chore: add events-args and ImageSource to index files

* chore: check for CLI >= 6.2 when building for IOS

* chore: update travis build

* chore: copy Pod file to compat package

* chore: update error msg ui-tests-app

* refactor: Apply suggestions from code review

Co-Authored-By: Martin Yankov <m.i.yankov@gmail.com>

* chore: typings and refs

* chore: add missing d.ts files for public API

* chore: adress code review FB

* chore: update api-report

* chore: dev-workflow for other apps

* chore: api update

* chore: update api-report
2019-10-17 00:45:33 +03:00
6c7139477e fix: UIUserInterfaceStyle is undefined for iOS <= 11 (#7931) 2019-10-16 16:41:47 +03:00
ce96dad398 fix(action-bar-ios13): action bar items population (#7965) 2019-10-16 13:39:27 +03:00
f9dac157dc Merge pull request #7961 from NativeScript/svetoslavtsenov/merge-release-in-master-patch
chore: merge release in master patch
2019-10-16 12:37:38 +03:00
c7e8a6dc32 Merge branch 'master' into svetoslavtsenov/merge-release-in-master-patch 2019-10-16 10:47:12 +03:00
135aeffdf1 fix(android): check for root view on configuration changed (#7944) 2019-10-16 10:00:22 +03:00
1d4502a19d Merge branch 'master' into svetoslavtsenov/merge-release-in-master-patch 2019-10-15 18:29:51 +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
12e2a57112 Merge remote-tracking branch 'origin/master' into svetoslavtsenov/merge-release-in-master-patch 2019-10-15 16:17:31 +03:00
a3173456cf docs: cut the 6.1.2 release (#7960) 6.1.2 2019-10-15 16:04:51 +03:00
7fe8d1c339 fix(tabs-ios9): no view controller managing visible view error (#7837) 2019-10-15 13:32:35 +03:00
ff30c4861f fix(frame-android): IllegalStateException: The specified child already has a parent (#7948) 2019-10-15 11:28:53 +03:00
dc6540269f feat(platform-declarations): add android29 typings (#7923) 2019-10-14 18:26:02 +03:00
b377eb6ddb feat(css): add attribute scoped css without global refresh (#7907) (#7947) 2019-10-14 11:25:49 +03:00
430c616b93 Merge pull request #7940 from NativeScript/tsenov/merge-release-master-tests
chore: merge release master tests
2019-10-10 16:35:48 +03:00
6c6cbbca42 Merge branch 'master' into tsenov/merge-release-master-tests 2019-10-10 14:36:27 +03:00
866c2b024b feat(): update material components dependency to 92.3 (#7936) 2019-10-10 14:36:06 +03:00
30e9c7f94d Merge remote-tracking branch 'origin/master' into tsenov/merge-release-master-tests 2019-10-10 14:04:18 +03:00
b8b9a3d607 test: fix navigate to handlers (#7937) 2019-10-10 14:02:52 +03:00
07f13a6771 chore: update readme (#7929) 2019-10-10 11:47:45 +03:00
6246a72c39 svetoslavtsenov/extend gestures tests (#7870) 2019-10-10 00:29:55 +03:00