Commit Graph

7022 Commits

Author SHA1 Message Date
Osei Fortune
b2f792324d feat(image-source): add saveToFileAsync, toBase64StringAsync & resizeAsync (#9404) 2021-09-08 16:07:39 -07:00
Nathan Walker
3aff057b99 revert: fix(android): nested dialog/fragment handling (#9495)
This reverts commit 4c547bb00c.
2021-09-08 16:07:39 -07:00
Igor Randjelovic
3e98d1e934 revert: feat(android): fragment transactions to use 'add' instead of 'replace' on fwd navigation (#8791)
This reverts commit e498c9d5bc.
2021-09-08 16:07:39 -07:00
Nathan Walker
71677f70b1 chore: apps webpack config 2021-09-08 16:07:39 -07:00
Nathan Walker
0ae39097bd chore: fix tests for ios 2021-09-08 16:07:39 -07:00
farfromrefuge
e17e46974b 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-09-08 16:07:39 -07:00
rigor789
1e3bc48737 refactor: clean up custom flavor detection 2021-09-08 16:07:39 -07:00
Nathan Walker
aa9c9f3897 chore: cleanup 2021-09-08 16:07:38 -07:00
farfromrefuge
dd5f24a737 feat(core): make css parsers tree-shakable (#9496) 2021-09-08 16:07:38 -07:00
Nathan Walker
3e2e5dfe9d chore: cleanup readme 2021-09-06 12:53:55 -07:00
Adarsh jaiswal
d742fd5817 chore: README grammatical (#9528) 2021-09-06 12:51:12 -07:00
Rob
c3cadc7fd5 fix(ios): backgroundColor property on Button (#9524)
closes NativeScript/NativeScript#9523
2021-08-23 23:55:18 -07:00
Martin Guillon
748a6e2df8 chore: color refactoring 2021-08-22 14:21:25 +02:00
Martin Guillon
da96e661ce fix: Color.darken fix 2021-08-22 14:06:20 +02:00
Osei Fortune
b7b9d7c259 fix(frame): improve weakref guards (#9518) 2021-08-19 22:15:18 -07:00
Martin Guillon
433053cf6e fix: css colors not parsed correctly within background property 2021-08-18 18:59:12 +02:00
Eduardo Speroni
2f630dc464 fix(android): do not call exitEvent on activity restart (#9517) 2021-08-18 09:09:50 -07:00
Martin Guillon
f1406c08e6 fix: backgroundGradient fix with android BorderDrawable 2021-08-18 17:37:44 +02:00
Martin Guillon
4e97e71da2 fix(core): prevent iOS views to be measured if no native view
This should not happen but it does. Did not manage to find the real source but it seems ok to test it here. Plus if it happens the measurement chain for that view will be broken
2021-08-16 14:36:27 +02:00
Martin Guillon
4faca3a9bc chore: until it is the official core i need to do it this way 2021-08-11 13:44:06 +02:00
Martin Guillon
5e11f0baf8 chore: updated build scrpts 2021-08-11 13:41:57 +02:00
Martin Guillon
de3d39a45f chore: missing dep 2021-08-11 13:41:42 +02:00
Martin Guillon
f99fb2df23 chore: ignore tsc erro 2021-08-11 13:41:30 +02:00
Martin Guillon
c9e87e87f9 fix: android support for clipToBounds
It comes with a major refactoring of the BorderDrawable. Now all Paths are cached not to regenerate them on every draw pass.

Also it is important to understand that the clipping feature on android comes at a cost.
It will be done only when truelly necessary. but with complex paths ((border radius > 0 && border non uniform) || border-width >0) then we must apply a costly drawing pass (though hardware accelerated) to accomplish it.
2021-08-11 13:41:21 +02:00
Igor Randjelovic
3a3b505167 chore(release): @nativescript/webpack@5.0.0-rc.3 5.0.0-rc.3-webpack 2021-08-11 12:30:33 +02:00
Igor Randjelovic
9f807ef7e1 feat(webpack): use svelte-loader and fallback to svelte-loader-hot
Allows running older projects
2021-08-11 12:30:12 +02:00
farfromrefuge
59d9271bce feat(webpack): improved svelte HMR (#9497)
* update svelte config to use svelte-loader

* handle null config

* fix: worker support in .svelte files & update snapshots

* fix after merge

Co-authored-by: halfnelson <dpershouse@gmail.com>
Co-authored-by: Igor Randjelovic <rigor789@gmail.com>
2021-08-11 11:42:53 +02:00
Nathan Walker
7960f8361f chore: use correct copy-webpack-plugin syntax 2021-08-10 13:20:46 -07:00
Martin Guillon
00b0794746 fix: tsc errors fix 2021-08-10 16:14:35 +02:00
Martin Guillon
e2dcac44ba chore: locl husky fix 2021-08-10 09:30:50 +02:00
Martin Guillon
46b4b6409f fix: suspendRequestLayout not being reset to the right state
This causes unecessary `requestLayout`
2021-08-10 09:30:42 +02:00
Igor Randjelovic
db8b847306 chore(release): @nativescript/webpack@5.0.0-rc.1 2021-08-09 20:58:23 +02:00
Eduardo Speroni
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
rigor789
3bf55b7a04 feat: handle config name
related to https://github.com/NativeScript/nativescript-cli/pull/5554
2021-08-09 15:56:32 +02:00
Martin Guillon
2005bd5927 fix: css faster color parsing 2021-08-07 15:14:24 +02:00
Martin Guillon
e2f579aa1b fix: hsl/hsv support for css % 2021-08-07 15:14:02 +02:00
Martin Guillon
02d90f7949 fix: linear-gradient fix for hex colors with alpha 2021-08-07 14:34:13 +02:00
Martin Guillon
9ff7222cb7 chore: new build 2021-08-05 09:53:41 +02:00
Martin Guillon
8f322413ea fix: autofillType pre 26 2021-08-05 09:50:37 +02:00
rigor789
90deb5b1ee test: fix apps/automated 2021-08-04 20:20:19 +02:00
Nathan Walker
4c547bb00c fix(android): nested dialog/fragment handling (#9495) 2021-08-03 21:57:19 -07:00
rigor789
5309f2d0a7 fix(webpack): use async type-checking in watch mode 2021-08-03 15:41:49 +02:00
rigor789
5a3a35d376 fix(webpack): add virtualEntry before main entry
fixes running with the JSC runtime, fixes #9469
2021-08-03 15:41:14 +02:00
Igor Randjelovic
00b7c7b135 feat(webpack): merge webpack5 rewrite (#9038) 2021-08-03 15:02:05 +02:00
rigor789
2e30f8c4be Merge branch 'master' into feat/webpack5 5.0.0-rc.1-webpack 2021-08-03 14:56:43 +02:00
Igor Randjelovic
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
Pier Fumagalli
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
Martin Guillon
c06c2abf63 8.0.9 2021-08-02 15:02:23 +02:00
Martin Guillon
880215a3b1 Merge branch 'master' of github.com:NativeScript/NativeScript 2021-08-02 15:01:32 +02:00
Martin Guillon
ae193189ae fix: iOS crash on iOS 14 when onLayout is called without a nativeView 2021-08-02 15:01:20 +02:00