33 Commits

Author SHA1 Message Date
Martin Guillon
af87006f68 Merge branch 'master' of github.com:NativeScript/NativeScript
# Conflicts:
#	apps/ui/tsconfig.json
#	packages/webpack5/src/helpers/index.ts
2022-01-12 15:36:44 +01:00
Nathan Walker
9c6c84b107 chore: nx migrate latest (#9709) 2021-12-21 18:24:24 -08:00
Martin Guillon
7fa5f290cc Merge branch 'master' of github.com:NativeScript/NativeScript 2021-09-30 09:23:34 +02:00
Sébastien JEAN
8e76bbe251 fix(android): StringIndexOutOfBoundsException with invalid drawables (#9563)
* fix(android/application): org.nativescript.widgets.Utils::getDrawable

* chore: fix spacing

* fix(android/application): do not load empty path

Co-authored-by: Igor Randjelovic <rigor789@gmail.com>

* test: Add tests for empty image sources

* chore: add a few more test cases

These make the app crash without the fix in place

Co-authored-by: Igor Randjelovic <rigor789@gmail.com>
Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>
2021-09-25 09:54:34 +02:00
Martin Guillon
e3e5dea2be Merge branch 'master' of github.com:NativeScript/NativeScript
# Conflicts:
#	package.json
#	packages/core/bundle-entry-points.ts
#	packages/core/color/color-common.ts
#	packages/core/color/index.d.ts
#	packages/core/globals/index.ts
#	packages/core/package.json
#	packages/core/ui/core/bindable/index.ts
#	packages/core/ui/core/properties/index.ts
#	packages/core/ui/core/view/index.android.ts
#	packages/core/ui/frame/index.android.ts
#	packages/core/ui/styling/style-scope.ts
#	packages/ui-mobile-base/android/gradle/wrapper/gradle-wrapper.properties
#	packages/webpack5/package.json
#	packages/webpack5/src/configuration/base.ts
2021-09-16 10:16:45 +02:00
Igor Randjelovic
5532903ad8 revert: clipsToBounds support
This feature needs some more work & will be included in a future version
2021-09-08 16:12:11 -07:00
Martin Guillon
6d18915c22 fix: backgroundGradient fix with android BorderDrawable 2021-09-08 16:07:39 -07:00
farfromrefuge
1ffc1628d0 feat(android): support clipToBounds (#9508)
* performance improvements around border handling

BREAKING CHANGE:

* if you have broder-radius or clip-path, it will clip by default
2021-09-08 16:07:39 -07:00
Osei Fortune
76499a5367 feat(android): vector drawable support (#9464) 2021-09-08 16:07:39 -07:00
Osei Fortune
b2f792324d feat(image-source): add saveToFileAsync, toBase64StringAsync & resizeAsync (#9404) 2021-09-08 16:07:39 -07:00
Martin Guillon
f1406c08e6 fix: backgroundGradient fix with android BorderDrawable 2021-08-18 17:37:44 +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
Martin Guillon
971d8eeddf Merge branch 'master' of github.com:NativeScript/NativeScript 2021-06-09 09:51:06 +02:00
Osei Fortune
f311151496 fix(android): image asset handling regarding requestLegacyExternalStorage (#9373) 2021-05-09 19:29:44 -07:00
Martin Guillon
b377860fc7 chore: upgrade ui-mobile-base for JDK 11 2021-04-16 15:13:17 +02:00
Martin Guillon
e6598aee0f Merge branch 'master' of github.com:NativeScript/NativeScript
# Conflicts:
#	apps/automated/src/test-runner.ts
#	apps/automated/src/ui/bottom-navigation/bottom-navigation-navigation-tests.ts
#	apps/ui/src/bottom-navigation/events-page.ts
#	apps/ui/src/main-page.ts
#	apps/ui/src/test-page-main-view-model.ts
#	package.json
#	packages/core/color/color-common.ts
#	packages/core/color/index.d.ts
#	packages/core/ui/action-bar/index.android.ts
#	packages/core/ui/bottom-navigation/index.android.ts
#	packages/core/ui/core/view/index.ios.ts
#	packages/core/ui/core/view/view-helper/view-helper-common.ts
#	packages/core/ui/index.ts
#	packages/core/ui/styling/background.android.ts
#	packages/core/ui/tab-navigation-base/tab-strip-item/index.ts
#	packages/webpack/jasmine-config/reporter.ts
2021-04-08 16:36:02 +02:00
Igor Randjelovic
7c60735d14 chore: cleanup background handling 2021-04-06 11:18:36 -07:00
Igor Randjelovic
9a7d3ecb34 feat: implement BoxShadowDrawable 2021-04-06 11:18:36 -07:00
Ben Delaney
a12c188d0f fix(core): stack layout padding (#9183)
fixes #8810
2021-04-06 11:18:36 -07:00
Nathan Walker
67e2fe42b7 feat(core): box-shadow support (#9161) 2021-04-06 11:18:36 -07:00
Martin Guillon
4118e683c2 Merge branch 'nestedscrollview' of github.com:Akylas/NativeScript 2021-02-08 10:09:24 +01:00
Martin Guillon
0555eccd69 Merge branch 'master' of github.com:NativeScript/NativeScript
# Conflicts:
#	package.json
#	packages/core/global-types.d.ts
#	packages/core/platforms/ios/Podfile
#	packages/core/ui/styling/background.android.ts
#	packages/core/ui/styling/style-scope.ts
#	packages/ui-mobile-base/ios/build.sh
2021-02-08 10:09:12 +01:00
Martin Guillon
5eba48c3c5 fix android widgets build 2021-02-08 09:38:02 +01:00
Martin Guillon
5baec2579d fix(android): vertical scroll-view now uses NestedScrollView 2021-02-08 09:38:00 +01:00
Dimitris - Rafail Katsampas
5fe27428e0 feat(android): FlexboxLayout support for isPassThroughParentEnabled (#8798) 2021-01-29 13:03:27 -08:00
Igor Randjelovic
04a76415b7 feat(ios): build TNSWidgets as XCFramework (#9167) 2021-01-29 11:59:51 -08:00
Martin Guillon
37c8a846c7 Merge branch 'master' of github.com:NativeScript/NativeScript
# Conflicts:
#	.gitignore
#	apps/ui/src/tabs/frame-in-tabs-inner-page-1.xml
#	apps/ui/src/tabs/main-page.ts
#	apps/ui/src/tabs/swipe-disabled-page.xml
#	apps/ui/src/tabs/tabs-position-page.xml
#	package.json
#	packages/core/package.json
#	packages/core/ui/core/view-base/index.d.ts
#	packages/core/ui/core/view-base/index.ts
#	packages/core/ui/core/view/index.android.ts
#	packages/core/ui/tabs/index.android.ts
#	packages/core/ui/tabs/index.ios.ts
#	packages/core/ui/tabs/tabs-common.ts
2021-01-19 13:44:42 +01:00
Nathan Walker
882aa42e85 feat(core): rollup additional Utils 2021-01-13 16:06:51 -08:00
Dimitris - Rafail Katsampas
b47ce0a97c fix: android Tabs selected item color incorrectly applied (#9040)
* fix: selected-item-color gets applied to wrong TabStripItems

* chore: Added selection colors to 2 ui examples.

* chore: Removing used for testing.
2020-12-28 13:50:23 +01:00
Martin Guillon
4ba2cb157d fix: ui mobile base build fix 2020-11-03 14:01:04 +01:00
mapo80
66cea78c49 feat(ui-mobile-base): enable bitcode (#8917) 2020-09-30 16:56:03 -07:00
Nathan Walker
967d652c61 fix(ios): stop using artificial state handler via animated setter on uiviewcontroller (#8797) 2020-08-28 00:05:47 -07:00
Nathan Walker
020ad4da37 chore(core): monorepo, esm targeting, improved management (#8707) 2020-08-25 20:00:59 -07:00