Commit Graph

7592 Commits

Author SHA1 Message Date
Stanimira Vlaeva
8813e9bc57 fix: require devtools-elements.js with the extension mentioned explicitly (#6079)
This is a workaround for the issue with `@ngtools/webpack@6.1.0-rc.2`, described here: https://github.com/NativeScript/nativescript-dev-webpack/issues/607#issuecomment-405209925
2018-07-18 11:38:22 +01:00
Manol Donev
d53c6b3863 chore: add test for http gzip request (#6076) 2018-07-18 08:36:12 +03:00
Nathanael Anderson
1ed68d47ed feat: Add Gzip ability to Android http (#128)
* Add Gzip ability to Android http

* Fix issues from rebasing older version of widgets, and fix case sensitivity

* Fix the string to be lowercased.
2018-07-17 18:20:08 +03:00
Vasil Trifonov
8b22585249 Added parameterless constructors (#6044) 2018-07-13 17:29:36 +03:00
Vasil Trifonov
39acaa8e11 Fixing onReceiveError for API level >= 23 (#6056)
* Fixing onReceiveError for API level >= 23

* using @ts-ignore as "super as any" is not a valid statement
2018-07-13 09:50:32 +03:00
Alexander Djenkov
a7e023cbf9 fix(layout-params): repspect percentages values (#129) 2018-07-12 14:05:59 +03:00
Alexander Djenkov
3253cd4a22 fix(layout-params): respect width/height properties with percent values (#127) 2018-07-11 11:31:19 +03:00
Alexander Djenkov
09431572e5 chore(listview-tests): add tests for width property with percentages (#6047) 2018-07-11 10:54:09 +03:00
Dick Smith
324fdcebcd fix(action-bar): #5743 navController may be null (#6029)
* fix(action-bar): #5743 navController may be null

From my own Crashlytics:
`stderr: file:///app/vendor.js:1:860568: JS ERROR TypeError: null is not an object (evaluating 'a.viewControllers')`
```
file:///app/vendor.js:1:860489
var l,p=a.viewControllers.indexOfObject(n);if(p>0&&p<a.viewControllers.count&&(t=a.viewControllers[p-1]),t)
```
which corresponds to:
2fc1d8a8d4/tns-core-modules/ui/action-bar/action-bar.ios.ts (L132)

further up `navController` is checked for truthiness:
2fc1d8a8d4/tns-core-modules/ui/action-bar/action-bar.ios.ts (L119)

So applying same logic.

* Adjusted per request
2018-07-10 13:22:30 +03:00
Vasil Trifonov
fb4dad8272 ignore transition-definitions.android.d.ts from typedoc (#6038) 2018-07-09 14:58:42 +03:00
Vasil Trifonov
398c9b3f33 feat(typings): Adding Android typings for API levels from 17 to 27 (#5890)
Adding android typings for API levels from 17 to 27

BREAKING CHANGES:
There is no longer added `I` prefix in the names of the interfaces. For example `android.view.IMenuItem` is now `android.view.MenuItem`. This matches the original name of the interface in the android framework.
2018-07-05 18:36:23 +03:00
Martin Yankov
bcadcbe7b5 fix(animations): avoid steady mem consumption rise (#6004) 2018-07-04 13:44:01 +03:00
Martin Bektchiev
a37da87c08 fix(grunt): Add platforms folder to produced NPM package (#6015) 2018-07-03 12:08:19 +03:00
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
d94175b5a7 chore: update community files (#125) 2018-06-05 18:01:34 +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
Vasil Chimev
d19a6bc7f8 chore: bump version to 4.2.0 2018-05-25 14:10:47 +03:00
Vasil Chimev
3e4b74eca6 chore: bump version to 4.1.0 2018-05-25 12:08:17 +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