Commit Graph
4836 Commits
Author SHA1 Message Date
Alexander Djenkov 0082dfbdb0 fix(dialogs-ios): dialogs not showing in single page apps (non Frame based apps) (#6000) 2018-07-03 10:23:51 +03:00
Martin Bektchiev e557d66f0d fix(build): Add platforms/ios folder to produced NPM package (#6007) 2018-06-29 15:31:53 +03:00
Teodor Dermendjiev 05c2460fc4 feat: Pass NS app to the native app instead of presenting it over the root VC (#5967)
* feat: Pass NS app native controller to the native app instead of presenting it over the rootViewController

When NativeScript embedded app is created from the native one we check for whether the topmost UIViewController has NativeScriptEmbedder protocol (implemented in the iOS Runtime) method 'presentNativeScriptApp:'. If yes, we call it with the NS app viewcontroller as a parameter so the embedder has control over the NS app (where and how to present it etc.) For backwards compatibility we present the NS app on top of the topmost UIViewController as a fallback.

* style: Fix lint errors

* feat: Check for protocol instead of selector in embedding

I

* Check for rootController instead of topViewController to prevent crash if !rootController

* feat: Introduce NativeScriptEmbedder singleton

NativeScriptEmbedder is responsive for communication between the NS and the native iOS app. His delegate will implement methods which we can call from javascript such as "presentNativeScriptApp:".
2018-06-27 16:48:11 +03:00
Peter Staev 67f9e060c6 fix normalisation formula (#5979) 2018-06-25 13:33:56 +03:00
Darío Hereñú f3714176d9 Typo on # 146? (#5980) 2018-06-21 09:27:22 +03:00
Alexander Vakrilov b5b8d51b0d fix(modal): parent page invalid hierarchy handling [extended] (#5966)
* fix(modal): parent page invalid hierarchy handling

* refactor(modals): Refactor safe guard in show/hide modal
2018-06-20 16:10:03 +03:00
Alexander Vakrilov 4b5754a6d4 fix(ios): safeAreaLayoutGuide fallback for iOS 10 cases (#5960) 2018-06-20 07:28:06 +03:00
Manol Donev d79ac300f3 refactor: migrate animation-demo repo content (#5970) 2018-06-19 18:58:11 +03:00
Manol Donev f9b0f6268d refactor: animation app (#5968) 2018-06-19 17:52:02 +03:00
Gheric Speiginer 357c8ecf15 fix(core/properties): Fix typings for nativeValueChange (#5791)
* Fix typings for nativeValueChange

* Update properties.d.ts

Changed parameter name of nativeValueChange from “target” to “owner”
Fixed white space to match coding style

* Update properties.d.ts

Fixed white space
2018-06-19 14:20:55 +03:00
Manol Donev 6cfdc206d9 fix(ios): translate transform breaks sequential animation set (#5961)
* fix(ios): translate transform breaks sequential animation set

* chore: add e2e test app for animations
2018-06-19 10:38:29 +03:00
Alexander Vakrilov 3dc3a411c3 feat: Flexible Error/Exception handling (#5929)
* feat: trace.error() implementation

* refactor: Based on PR review

* chore: adding error-handling guide

* docs: fix typos
2018-06-18 16:37:55 +03:00
Martin Yankov a75505fbc0 test(): move the tab view tests before frame tests (#5957) 2018-06-15 19:29:08 +03:00
Martin Yankov 69b3eb70d5 test(): add more timeout to tab navigations tests (#5953) 2018-06-14 13:19:06 +03:00
Morten Sjøgren 0e04cb4ad1 fix(android): NavigationButton was read as "Button" by screenreaders. (#5949)
The navigation button for the vision-impaired users were always read as:
"Button" by the TalkBack service on Android.
2018-06-14 12:54:33 +03:00
Martin Yankov b0afd3ab30 fix(android): prevent error during tear down (#5947) 2018-06-14 10:01:03 +03:00
Nathan Walker 5cd8a1fc2a fix(Image): catch Response content may not be converted to an Image (#5856)
closes https://github.com/NativeScript/nativescript-angular/issues/851
closes https://github.com/NativeScript/NativeScript/issues/3381
2018-06-13 13:45:54 +03:00
Alexander Djenkov 0c3ecbc57b chore(modal-navigation): Add Dialogs tests (#5943)
* fix(ios-dialogs): unable to show dialog from modal view

* tests(modal-navigation): add test that opens dialog inside modal view

* chore(modal-navigation): Add Dialogs tests
2018-06-13 09:40:05 +03:00
Manol Donev 0b9d4aea0a fix(android): label width shrinking on shorter text change (#5917) 2018-06-07 16:44:33 +03:00
Martin Yankov b122bd4a37 fix(ios): set current tab as topmost frame on load (#5908) 2018-06-06 14:47:42 +03:00
tbozhikov 48a35c5119 chore: update community files (#5915) 2018-06-05 17:56:08 +03:00
Alexander Vakrilov 8cc427c9b5 chore: Fix TS transpile error with 2.9 (#5906) 2018-06-04 18:48:14 +03:00
Nathan Walker 9308bab172 fix(animation): handle promise rejection and avoid throw (#5861) 2018-05-31 15:58:50 +03:00
Svetoslav b77675b312 chore: add example for issue 5274 (#5885) 2018-05-30 10:00:52 +03:00
Alexander Djenkov e59d1567a5 fix(ios-dialogs): unable to show dialog from modal view without a page (#5881)
* fix(ios-dialogs): unable to show dialog from modal view

* tests(modal-navigation): add test that opens dialog inside modal view
2018-05-29 18:06:02 +03:00
Vasil Chimev 6d978add18 docs: add changelog for 4.1.0 (#5871)
* docs: add changelog for 4.1.0

* docs: update changelog for 4.1.0
2018-05-29 11:48:18 +03:00
Vasil Chimev 83382f8f5a refactor(e2e): rename modal-layout to modal-layout-root (#5867)
* chore(e2e): register `layout` files in bundle-config

* refactor(e2e): rename modal-layout to modal-layout-root

Similar to `modal-tab-root`:
https://github.com/NativeScript/NativeScript/tree/4.0.0/e2e/modal-navigation/app/modal-tab

This avoid the need to explicitly register it to webpack modules.

* refactor(e2e): rename mocha describes to contain a dash

* refactor: remove bundle-config

It is no more as `nativescript-dev-webpack@0.12.0` registers default application modules.
2018-05-29 10:49:13 +03:00
Vasil Chimev bc9984ad99 chore: bump versions to 4.2.0 (#5865) 2018-05-25 15:20:33 +03:00
Dimitar Topuzov 928b2f7015 chore: changelog for 4.0.1 2018-05-25 11:52:13 +03:00
Alexander Djenkov a03065c527 fix(flexbox-ios): resolve text size issue for ListView with flexbox layout template (#5799)
* fix(flexbox-layout-ios): resolve text size issue for ListView with flexbox template

* fix(flexbox-layout-ios): resolve text size issue for ListView
2018-05-25 11:43:00 +03:00
Vasil Chimev 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
Alexander Djenkov f9d66de79c fix(styling-gradient): change imports in definition files (#5852) 2018-05-23 09:57:24 +03:00
ADjenkov d8721c7bd8 tests(ui-test-app): add LayoutChanged event test 2018-05-23 00:54:29 +03:00
ADjenkov c3a7c815e5 chore(layout-changed): update layoutChanged event tests delay 2018-05-23 00:54:29 +03:00
Alexander Djenkov 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
Stanimira Vlaeva f671f778f3 fix(builder): check for custom components registered at build time (#5834) 2018-05-19 11:41:36 +03:00
Manol Donev 1365f13594 fix(modal): innerView.closeModal(...) not passing back context (#5833) 2018-05-18 16:50:27 +03:00
Alexander Djenkov 3f8af4cc0e fix(styling-gradient): introduce gradient definition file (#5828) 2018-05-17 15:44:40 +03:00
Vasil Trifonov 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
Manol Donev ca444aa8ed fix(android-textfield): returnPress fired twice for GO/SEARCH/SEND (#5727) 2018-05-16 15:13:09 +03:00
Manol Donev a86d41e7db fix(android): fix sporadic issue with transition cleanup logic called twice (#5805) 2018-05-14 18:11:02 +03:00
Vasil Chimev 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
Manol Donev 2fc1d8a8d4 chore(tsc): enable noUnusedLocals compiler option for tns-core-modules (#5755) 2018-05-10 16:12:59 +03:00
Alexander Djenkov 9d21a743c4 Revert 5772 revert 5534 css gradients (#5779)
* Revert "Revert "Css gradients" (#5772)"

This reverts commit 7edf56197a.

* chore(): fix LinearGradient circular dependency
2018-05-10 10:44:35 +03:00
Martin Yankov 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
Svetoslav 2168c36a5f tests: disable all tests related to outside urls (#5800) 2018-05-09 13:17:32 +03:00
Manol Donev 481043fa2b fix: label text wrapping inside flexbox layout (#5781) 2018-05-08 15:09:52 +03:00
Alexander Djenkov 7edf56197a Revert "Css gradients" (#5772)
This reverts commit 5a83a1c858.
2018-05-03 18:17:07 +03:00
vultix 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
radeva 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