4806 Commits

Author SHA1 Message Date
7851629a27 fix: crash at application launch on Android P (#5831)
* fix: crash at application launch on Android P

Reference: https://developer.android.com/preview/restrictions-non-sdk-interfaces

Android P introduces new restrictions on the use of non-SDK interfaces, whether directly, via reflection, or via JNI. These restrictions are applied whenever an app references a non-SDK interface or attempts to obtain its handle using reflection or JNI.

In particular, remove reflection via Class.getDeclaredField() and fallback default transition to fade transition.

* refactor: create default transition based on SDK version

Create default transition and setup default animations based on SDK version.
This is to avoid reflection via Class.getDeclaredMethod() for Android P where it throws.

* refactor: extract isAndroidP method
2018-05-23 14:59:24 +03:00
f9d66de79c fix(styling-gradient): change imports in definition files (#5852) 2018-05-23 09:57:24 +03:00
d8721c7bd8 tests(ui-test-app): add LayoutChanged event test 2018-05-23 00:54:29 +03:00
c3a7c815e5 chore(layout-changed): update layoutChanged event tests delay 2018-05-23 00:54:29 +03:00
0fc1547a19 feat(view): introduce LayoutChanged event on every View component (#5825)
* feat(view): introduce LayoutChanged event

* test(view): add LayoutChanged event tests

* chore(view-android): attach to onLayoutChange only if listener attached

* feat(view-android): override on/off in order to attach and detach from OnLayoutChangeListener
2018-05-21 17:22:40 +03:00
f671f778f3 fix(builder): check for custom components registered at build time (#5834) 2018-05-19 11:41:36 +03:00
1365f13594 fix(modal): innerView.closeModal(...) not passing back context (#5833) 2018-05-18 16:50:27 +03:00
3f8af4cc0e fix(styling-gradient): introduce gradient definition file (#5828) 2018-05-17 15:44:40 +03:00
bbe25d7ec1 keep some variable from early GC to speed up start time (#5823)
* keep some variable from early GC to speed up start time

* do not clear callbacks, as they shouldn't use much memory
2018-05-17 11:55:15 +03:00
ca444aa8ed fix(android-textfield): returnPress fired twice for GO/SEARCH/SEND (#5727) 2018-05-16 15:13:09 +03:00
a86d41e7db fix(android): fix sporadic issue with transition cleanup logic called twice (#5805) 2018-05-14 18:11:02 +03:00
3bb0f4a8cd chore(e2e): clean up webpack files (#5807)
* chore(e2e): clean up webpack files

* chore(gitignore): clean up and add webpack files

* chore(gitignore): clean up webpack files

* chore(deps): clean up devDependencies
2018-05-14 14:12:46 +03:00
2fc1d8a8d4 chore(tsc): enable noUnusedLocals compiler option for tns-core-modules (#5755) 2018-05-10 16:12:59 +03:00
9d21a743c4 Revert 5772 revert 5534 css gradients (#5779)
* Revert "Revert "Css gradients" (#5772)"

This reverts commit 7edf56197a179b13e1afe4c706aea4a99ac62aca.

* chore(): fix LinearGradient circular dependency
2018-05-10 10:44:35 +03:00
11f0d6e98d feat(tabview): add tab text font size property (#5752)
* feat(tabview): add tab text font size property

* chore(tabview): set tab font size default value

* chore(tabview): move font implementation to widget

* chore(tabview): fix font size get return type
2018-05-09 17:13:34 +03:00
2168c36a5f tests: disable all tests related to outside urls (#5800) 2018-05-09 13:17:32 +03:00
481043fa2b fix: label text wrapping inside flexbox layout (#5781) 2018-05-08 15:09:52 +03:00
7edf56197a Revert "Css gradients" (#5772)
This reverts commit 5a83a1c858e8095353aa50fe4ea080b07bf85813.
2018-05-03 18:17:07 +03:00
5a83a1c858 Css gradients (#5534)
* feat(ios): Added support for css gradients.

* feat(android): Added support for css gradients.

* fix: Fixed gradient borders on ios

* fix(gradient): added backgroundGradient to View and Style.

* fix(ios-gradients): fixed ios gradients covering view content.

* test(gradient): Added ui app tests for background gradients.

* test(gradient): Added a test ensuring background gradient property is applied to style.

* style(gradient): Fixed tslint errors.

* fix(gradient): Removed the background-gradient property and added the gradient to background-image.

* style: fixed a consecutive blank line tslint error.

* fix(tests): fixed the bug that was causing tests to fail.

* chore(linear-gradient): fix equality comparer

* test(gradient): add linear gradients test app

* chore(tslint): update with latest tslint rules
2018-05-03 13:24:41 +03:00
72fa5c9bc1 docs: update wording describing issue lifecycle (#5742)
- describe when an issue will be closed without waiting for response
- add this description in a comment in the issue template. This way it will be visible to the creator of the issue, but won't add noise when reading the issues in github.
2018-04-30 10:50:29 +03:00
d58665115b test(platform): fix typo in platform module cookbook example (#5758)
* test(platform): add missing properties to platformModule documentation

The platformModule cookbook documentation was missing a few properties
that are now available. This commit adds those properties to be
included in the examples.

resolves: NativeScript/NativeScript#5707

* test(platform): fix typo in platform module cookbook example
2018-04-30 10:49:54 +03:00
1cb5e7387d Add required inspector fields for Elements and Network (#5754) 2018-04-27 17:04:52 +03:00
03cfc0cee3 chore(tslint): update tslint rules and fix errors (#5747)
* chore(tslint): fix tslint config & errors
* chore(tslint): enable double quotes, whitespace, and arrow-return-shorthand rules and fix errors
2018-04-26 18:36:32 +03:00
a767c8efd4 chore(modal): update dts for showModal(...) args (#5734) 2018-04-26 00:20:10 +03:00
451589dbd6 fix(modal): exception when calling ViewBase.showModal(...) (#5737) 2018-04-26 00:19:44 +03:00
9e3da8ec5a fix(ios-image-asset): getImageAsync() can retrieve assets stored remotely in iCloud (#5705) 2018-04-25 16:03:37 +03:00
0fd0812ede test(platform): add missing properties to platformModule documentation (#5709)
The platformModule cookbook documentation was missing a few properties
that are now available. This commit adds those properties to be
included in the examples.

resolves: NativeScript/NativeScript#5707
2018-04-25 14:05:30 +03:00
49ea10b81e fix(layout): IOS Layout not invalidated with custom root (#5724)
* fix(layout): Buuple up layout trough viewControllers

* test: Layout invalidates correctly with different root view

* chore: tslint
2018-04-23 15:47:27 +03:00
6bdb5b553f feat(file-system): add ability to retrieve file size (#5710) 2018-04-20 18:01:15 +03:00
0e1f19a76a test(modal-navigation): add close modal, modal layout and root layout tests (#5680) 2018-04-20 14:29:28 +03:00
4f5887b0ad fix(android): lollipop crash on changing activity context after navigation w/transition (#5700) 2018-04-20 13:46:03 +03:00
1536d15ecf fix(android-connectivity): add ethernet connection type (#5670)
Add "ethernet" connection type to getConnectionType to correctly return a connection type when the type is "ethernet"
2018-04-19 13:09:33 +03:00
a616dbb9bb Updated weak event listener tests for v8 6.5 (#5697)
* Updated weak event listener tests for v8 6.5

* added missing parentheses
2018-04-18 16:57:26 +03:00
b9806bad1c fix(list-view-ios): fix rowHeight property to apply proper item size for iOS (#5693)
* fix(list-view-ios): fix rowHeight property to apply proper item size for iOS

* chore(apps-tests): add rowHeight tests
2018-04-18 10:47:19 +03:00
6fb7481327 feat(builder): enable reading xml from bundle (#5668) 2018-04-17 17:27:32 +03:00
f6f8472b97 chore: Add link to release blog in changelog 2018-04-16 08:19:48 +03:00
3fcbbf4c12 test: include new test page for issue 5470 (#5666) 2018-04-12 14:59:37 +03:00
555e5920c3 fix(ios-searchbar): fix searchbar auto sizing in iOS11 (#5658) 2018-04-12 14:13:21 +03:00
893cbb4211 chore(changelog): remove not valid breaking change
`[Android] NativeScript no longer overwrites the horizontal/vertical alignment on the user-defined root visual element when opening it in modal dialog window (i.e. not fullscreen).` - this has been changed with the introducing of `stretched` parameter in the features. The default behavior stays the same.
2018-04-12 10:58:47 +03:00
9717bbf847 chore: Add 4.0 change-log (#5646)
* chore: Add 4.0 change-log

* chore: typos

* chore: Link to changes doc added
2018-04-11 17:00:30 +03:00
cf2ed824bf chore(image): expose decode image properties for the public API (#5629) 2018-04-11 14:24:47 +03:00
cf950e1ebb fix(navigation): fix frame.navigate call inside page.navigatedTo handler (#5649) 2018-04-11 11:25:54 +03:00
c06d5bae63 chore: set keepAspectRatio to true as default in image-asset (#5613)
* chore: set keepAspectRatio to true as default in image-asset

* fix: remove empty lines
2018-04-10 00:46:27 +03:00
c5fa922579 Tsenov/issue 3714 (#5610)
* test: added test case for issue 3714

* refactor: update remove grid layout element
2018-04-09 20:09:21 +03:00
a316e53d54 new tabview examples (#5628)
* new tabview exmples

* tabs limit example

* minor code snippet edits
2018-04-05 17:35:36 +03:00
9ec2839bde fix-next(style): rename SliderBase CSSType to Slider (#5627) 2018-04-05 15:21:06 +03:00
31ee774a6b fix-next(ios-modal): fix empty modal screen when using common layout as root (#5618) 2018-04-05 09:44:03 +03:00
38e6f6688e fix(style): Styles are not applied to dialogs (#5612) 2018-04-03 17:06:21 +02:00
70f01123df feat(frame): handle back navigation when common layout is used as a root element (#5608)
* test(e2e): update modal navigation app

Add layout as root.
Add show modal layout.

* chore(frame): move frame stack modifiers in a separate frame-stack module

* feat(frame): handle back navigation when using common layout as root element
2018-04-02 22:27:44 +03:00
8a1958e82e chore(view): expose onBackPressed in d.ts (#5607) 2018-04-02 15:49:31 +03:00