6652 Commits

Author SHA1 Message Date
4964d313c2 feat: autofillType property for edit text base (#9478) 2021-08-11 11:23:02 -07:00
92076d480c chore: fix color tests 2021-08-11 11:18:01 -07:00
af281dd098 feat: AbortController polyfill (#9333) 2021-08-11 11:17:13 -07:00
0ff2221d6f feat(color): added utilities and improved color parsing performance (#9110) 2021-08-11 10:54:57 -07:00
4cad76cb6a feat(config): added option for ignoredNativeDependencies 2021-08-11 10:51:58 -07:00
dbaab58538 fix(styling): change transform parameters parsing (#9481)
Fixed the incorrectly applied short form of "transform: translate" style property.

closes #5202
2021-08-11 10:45:00 -07:00
ee3c4c2009 fix(android): onSaveInstanceState should not crash when no rootView is set (#9447) 2021-08-11 10:41:24 -07:00
490f7dce80 feat(android): vector drawable support (#9464) 2021-08-11 10:37:27 -07:00
36900d7c05 feat(image-source): add saveToFileAsync, toBase64StringAsync & resizeAsync (#9404) 2021-08-11 10:28:06 -07:00
7276c0e3cd revert: fix(android): nested dialog/fragment handling (#9495)
This reverts commit 4c547bb00c554d35408c7d0c44ef46e237819132.
2021-08-11 10:24:03 -07:00
ee0e5dfaed revert: feat(android): fragment transactions to use 'add' instead of 'replace' on fwd navigation (#8791)
This reverts commit e498c9d5bc71bced194af694a95ec71a9037fda9.
2021-08-11 17:55:31 +02:00
4d91db193d chore: apps webpack config 2021-08-10 14:12:06 -07:00
fcc92f96ae chore: fix tests for ios 2021-08-10 14:05:24 -07:00
e498c9d5bc feat(android): fragment transactions to use 'add' instead of 'replace' on fwd navigation (#8791)
Changes the behavior of android fragment transactions to use `add` instead of `replace` on forward navigation.

BREAKING CHANGE:

Changes the internal behavior of Android navigation:

* while navigating forward, the page navigated from is not unloaded anymore
* events order is changed in the sense that now `unloaded` happens after `navigatedFrom` instead of before

There are multiple plus sides to this:

* no more black views on navigation when using opengl (maps, ...)
* navigation is faster, especially the navigation back! No longer need to recreate the page anymore. Navigation forward also gets faster as we no longer unload the previous page
* navigatedFrom event happens faster
* this the default behavior used by most of the android native apps
2021-08-10 13:42:25 -07:00
1608b9585f Merge branch 'release/8.1.0' of https://github.com/NativeScript/NativeScript into release/8.1.0 2021-08-10 13:34:39 -07:00
7f37617b18 chore: cleanup 2021-08-10 13:34:31 -07:00
f2b4207965 refactor: clean up custom flavor detection 2021-08-10 22:31:08 +02:00
dce7408c05 feat(core): make css parsers tree-shakable (#9496) 2021-08-10 13:21:34 -07:00
7960f8361f chore: use correct copy-webpack-plugin syntax 2021-08-10 13:20:46 -07:00
db8b847306 chore(release): @nativescript/webpack@5.0.0-rc.1 2021-08-09 20:58:23 +02:00
093b369b74 fix(webpack5): angular scss rule not ignoring regular scss (#9502)
* fix(webpack5): angular scss rule not ignoring regular scss

* test: angular scss snapshot update
2021-08-09 19:42:45 +02:00
3bf55b7a04 feat: handle config name
related to https://github.com/NativeScript/nativescript-cli/pull/5554
2021-08-09 15:56:32 +02:00
90deb5b1ee test: fix apps/automated 2021-08-04 20:20:19 +02:00
4c547bb00c fix(android): nested dialog/fragment handling (#9495) 2021-08-03 21:57:19 -07:00
5309f2d0a7 fix(webpack): use async type-checking in watch mode 2021-08-03 15:41:49 +02:00
5a3a35d376 fix(webpack): add virtualEntry before main entry
fixes running with the JSC runtime, fixes #9469
2021-08-03 15:41:14 +02:00
00b7c7b135 feat(webpack): merge webpack5 rewrite (#9038) 2021-08-03 15:02:05 +02:00
2e30f8c4be Merge branch 'master' into feat/webpack5 5.0.0-rc.1-webpack 2021-08-03 14:56:43 +02:00
cb91cd8a3f fix(webpack): angular component css handling (#9434)
* feat: use raw-loader for all css but app.s?css

* feat: use angular css rules for entire app dir

Co-authored-by: Eduardo Speroni <edusperoni@gmail.com>
2021-08-03 14:37:58 +02:00
0a6f80a554 fix(webpack): don't ignore compilation errors (#9369)
* fix(webpack): Fail build in case of compilation errors.

WebPack's own documentation states that the `err` object **will not**
include compilation errors.

https://webpack.js.org/api/node/#webpack

This fix addresses compilation errors by setting the correct `process.exitCode`
looking at the result of the `stats.hasErrors()` call.

* fix(tsc): Ensure that TypeScript compilation errors are handled.

The `async` flag of the `fork-ts-checker-webpack-plugin` will (by default
in development mode) avoid reporting any errors detected by `tsc` back
to webpack:

https://github.com/TypeStrong/fork-ts-checker-webpack-plugin#options

> If `true` reports issues **after** webpack's compilation is done.
> Thanks to that it doesn't block the compilation.

The problem in this case is that any compilation error will be then
undetectable by the `WatchStatePlugin` which will happily tell the
NativeScript CLI to continue with the build process.

* fix(cli): Do not send the `compilation` message to the CLI on errors.

When the compilation fails, this patch will prevent for the `compilation`
message to be sent back to the CLI, preventing broken builds hitting the device.
2021-08-03 14:36:02 +02:00
d0f00e24d8 fix(core): correctly export setAutoSystemAppearanceChanged (#9489) 2021-07-28 13:13:45 -07:00
d45dea8471 fix(android): allow 0-length properties (#9485) 2021-07-26 14:52:19 -07:00
0fd53e3abb fix(webpack5): change .d.ts filter regex (#9470) 2021-07-13 15:58:04 +02:00
f053001dc1 feat(android): provide ability to get registered broadCastReceiver (#9467) 2021-07-12 11:35:26 -07:00
7b800945dd fix(log): Allow passing optional params for logs (#9456) 2021-07-06 08:23:37 -07:00
14edc70336 fix: vue scoped css 2021-07-01 13:50:25 +02:00
2d47cf327b fix: don't exclude node_modules from worker processing 2021-07-01 13:45:57 +02:00
fcab66ae02 fix(webpack5): allow platform specific template files (#9459) 2021-07-01 13:39:48 +02:00
f6faa4509a chore(release): @nativescript/core@8.0.8 8.0.8-core 2021-06-15 23:07:07 +02:00
b8d8110994 fix: stop leaking style scopes (#9444)
fixes #9311

* fix: stop leaking style scopes

* fix: don't leak scoped styles in production
2021-06-15 23:00:07 +02:00
f8f11954c1 chore: adjust dep version 2021-06-08 20:55:37 +02:00
a18c10c1a8 refactor: rename loader 2021-06-08 20:43:39 +02:00
93843b7b4e feat(webpack): angular12 support & looser dependencies (#9441)
* chore: dep scoping

* chore: carrots for all dep major versions

* chore: dev.1

* chore: use at least min of 5.34 on webpack

* chore: ignore angular warnings

* feat: add hmr support for angular 12

* feat: custom hmr dispose logic for angular 12

* chore: dev.3

* chore: ignore warnings

* chore: dev.4

* chore: ignore ivy compiled warnings

* chore: dev.5

Co-authored-by: Eduardo Speroni <edusperoni@gmail.com>
2021-06-08 20:35:21 +02:00
dea18978d5 fix: hmr with runtimeChunk single 2021-06-04 20:29:24 +02:00
c265c3ac3f fix(webpack5): add AngularWebpackPlugin transformers (#9435) 2021-06-03 17:00:26 -07:00
0be54a631a chore: beta.12 2021-06-03 13:36:32 -07:00
9f582ba168 fix(android): accessibilityIdentifier (#9432)
needs to be set on `nativeTextViewProtected` for text-base components
fixes https://github.com/nativescript-community/ui-material-components/issues/304
2021-06-02 18:47:19 -07:00
69a41eea38 test: update tests and snapshots 2021-06-02 19:07:11 +02:00
e252e97648 refactor: angular polyfill loading 2021-06-02 19:06:51 +02:00
ea2f41a0f5 chore: use higher webpack range 2021-06-02 11:51:25 +02:00