Commit Graph

5041 Commits

Author SHA1 Message Date
Manol Donev
4dc35a5e6f fix(android): failure saving state in mixed parent/nested frame nav (#6719) 2018-12-18 10:23:02 +02:00
Martin Bektchiev
89870f7c91 chore(docs): Upgrade typedoc to version 0.13.0 (#6717)
Building with the current 0.5.10 now fails because it depends on typescript
before 2.4. This causes the following errors:
```
NativeScript@ typedoc /root/NativeScript
> typedoc --tsconfig tsconfig.typedoc.json --out bin/dist/apiref --includeDeclarations --name NativeScript --theme ./node_modules/nativescript-typedoc-theme --excludeExternals --externalPattern "**/+(tns-core-modules|module).d.ts"

Loaded plugin typedoc-plugin-external-module-name

Using TypeScript 2.2.2 from /root/NativeScript/node_modules/typedoc/node_modules/typescript/lib
Error: /root/NativeScript/tns-core-modules/module.d.ts(67)
In ambient enum declarations member initializer must be constant expression.
Error: /root/NativeScript/tns-core-modules/module.d.ts(68)
In ambient enum declarations member initializer must be constant expression.
Error: /root/NativeScript/tns-core-modules/module.d.ts(69)
In ambient enum declarations member initializer must be constant expression.
```

This fix is required to support typeodoc@0.8.0 and above:
01f94b4ae2
2018-12-17 17:05:09 +02:00
Manol Donev
c034d6ead6 fix(android): animator restore logic on simulated nav (#6710) 2018-12-17 15:27:52 +02:00
Nathan Walker
3481e6f33f feat(image-cache): expose onError callback (#6458)
* feat(Cache): better error handling

* refactor(image-cache): add `error` parameter to `_onDownloadError`

Add DownloadError interface.

* refactor(image-cache): updates for iOS

Use arrow functions.
Remove an unnecessary `trace.write().

* refactor(image-cache): updates for Android

Update Android `constructor()`.
Move `key` and `image` check to `set()`.
Update `trace.write`.

* fix(image-cache): onError handling
2018-12-17 11:33:12 +02:00
Svetoslav
134b033b77 Merge pull request #6707 from NativeScript/release 2018-12-14 16:40:11 +02:00
Svetoslav
07c4e5fa96 Merge pull request #6665 from NativeScript/vchimev/app-css-hmr
feat(HMR): apply changes in application styles at runtime
2018-12-14 16:39:42 +02:00
SvetoslavTsenov
ea44416734 Merge remote-tracking branch 'origin/master' into release 2018-12-14 14:53:53 +02:00
Vasil Chimev
c404a38038 refactor: tests to parce templates 2018-12-14 14:35:47 +02:00
Vasil Chimev
b9d7d6bb62 test(HMR): apply changes in application styles at runtime 2018-12-14 14:35:46 +02:00
Vasil Chimev
4c15f71789 fix: iOS tests 2018-12-14 14:34:50 +02:00
Vasil Chimev
790bcfb470 refactor(HMR): apply changes in application styles at runtime 2018-12-14 14:34:50 +02:00
Vasil Chimev
42a1491e6e feat(HMR): apply changes in application styles at runtime
Expose `HmrContext` interface.
Apply changes in `app.css` instantly.
Avoid navigation on livesync when changes in `app.css` have been made.
Apply changes in `app.css` on back navigation.
2018-12-14 14:34:47 +02:00
Manol Donev
60957799ad chore: restore tabroot/resetrootview tests (#6705) 2018-12-14 14:22:07 +02:00
Nathanael Anderson
19895945c2 fix(ios delegate) Eliminate crash on selector looking for "Window" (#6428)
* Add a "window" value so that NS doesn't crash on selectors looking for the delegate.window...

* chore: tslint

* chore: comments to referenced issues added
2018-12-14 13:31:26 +02:00
Martin Bektchiev
1c0218ea15 feat(tns-platform-declarations): Generate iOS typings from iOS 12.1 SDK (#6693)
* feat(tns-platform-declarations): Generate iOS typings from iOS 12.1 SDK

* Instructions for generating iOS typescript definitions
* Refactor `typings-gen.sh` to use {N} CLI and generate fuller
metadata for the system libraries
* Automatically generate `ios.d.ts` wrapper
* Add interop pointers and references as alternatives
to `string` for `char*` args
(implemented in https://github.com/NativeScript/ios-runtime/pull/1022)

BREAKING CHANGE: Several enum values have changed because
    they have been wrongly generated.

    To migrate your app or plugin code use the new names of the
    following:
    *  enum NSUnderlineStyle:
        - `StyleNone` -> `None`
        - `StyleSingle` -> `Single`
        - `StyleThick` -> `Thick`
        - `StyleDouble` -> `Double`
     * enum AVAudioSessionErrorCode:
        - `CodeNone` -> `None`
        - `CodeMediaServicesFailed` -> `MediaServicesFailed`
        - `CodeIsBusy` -> `IsBusy`
        - `CodeIncompatibleCategory` -> `IncompatibleCategory`
        - `CodeCannotInterruptOthers` -> `CannotInterruptOthers`
        - `CodeMissingEntitlement` -> `MissingEntitlement`
        - `CodeSiriIsRecording` -> `SiriIsRecording`
        - `CodeCannotStartPlaying` -> `CannotStartPlaying`
        - `CodeCannotStartRecording` -> `CannotStartRecording`
        - `CodeBadParam` -> `BadParam`
        - `CodeResourceNotAvailable` -> `ResourceNotAvailable`
        - `CodeUnspecified` -> `Unspecified`

* fix(ui/text-base): Update NSUnderlineStyle.StyleSingle constant

After the typings regeneration its and several others' names have
changed to the expected `NSUnderlineStyle.Single`.

* fix(tns-platform-declarations): Restore deprecated enum values

In order to not introduce a breaking change in a patch version, we
are keeping `Style...` and `Code...` values that have been wrongly
generated till now. In the next major/minor release of the package
when the typings are regenerated we can safely remove them.

Revert to using the deprecated one's in `text-base.ios.ts` so that
the introduction of this breaking change doesn't slip in undetected.

* fix(application.ios): Directly call presetnNativeScriptApp

We've been using `performSelectorWithObject` but it's
declaration has been manually added. Moreover it's more
convenient to directly call the method.
2018-12-13 17:04:13 +02:00
Nicu
540b2b4f82 feat(view): added iOS parameter for modal presentation style (#6409)
* feat(view): added iOS parameter for modal presentation style

* Now passing options to showModal in one argument

* refactor: Move context and close in modal options

* chore: Comments added for UIModalPresentationStyle.Popover case

* refactor: Use modalOptions in e2e demo

* chore: fix pbroken test
2018-12-13 17:03:25 +02:00
Manol Donev
44dba1a0b7 chore: temporarily disable failing tests (#6703) 2018-12-13 16:27:14 +02:00
Manol Donev
c084660d0b fix(android): nested fragment disappears on parent fragment removal (#6677) 2018-12-12 14:16:10 +02:00
Svetoslav
43dddbbbc3 Merge pull request #6683 from NativeScript/svetoslavtsenov/update-contrinuting
svetoslavtsenov/update contrinuting
2018-12-07 16:55:39 +02:00
SvetoslavTsenov
05c842cd67 chore: typo 2018-12-07 16:04:56 +02:00
SvetoslavTsenov
4feb453b56 chore: update 2018-12-07 15:54:47 +02:00
SvetoslavTsenov
5ca6e99602 docs: update contributings doc 2018-12-07 14:29:22 +02:00
Svetoslav
7eaba62951 Merge pull request #6681 from NativeScript/svetoslavtsenov/bump-versions
chore: bump versions
2018-12-07 14:05:14 +02:00
SvetoslavTsenov
7c92416858 chore: bump versions 2018-12-07 11:03:14 +02:00
Svetoslav
9bf91773d7 Merge pull request #6680 from NativeScript/merge-release-in-master
Merge release in master
2018-12-07 11:02:03 +02:00
Svetoslav
562628f29c Merge pull request #6669 from NativeScript/release-5.1.0
Release 5.1.0
2018-12-06 11:22:43 +02:00
SvetoslavTsenov
259aaa49e1 chore: bump widgets version to 5.1.1 2018-12-05 20:38:32 +02:00
SvetoslavTsenov
ce766526b3 release: cut the 5.1.0 release 5.1.0 2018-12-05 20:28:12 +02:00
Martin Yankov
63be78a69c fix(listview): incorrect layout when scroll (#6656) 2018-12-05 16:28:37 +02:00
Alexander Vakrilov
30df4d9c4a fix(modals): regression with modals in angular (#6655) 2018-12-04 16:39:07 +02:00
Manol Donev
0b239d7a0a feat(tabview): add androidSwipeEnabled property (#6652) 2018-12-04 15:35:15 +02:00
radeva
5b5fd9a0b7 Merge pull request #6646 from NativeScript/radeva/update-license
update LICENSE
2018-12-01 06:00:03 +02:00
radeva
8d9f8d4ba0 Delete LICENSE.proui 2018-12-01 05:59:34 +02:00
Veselina Radeva
cc6c7d3092 chore: update community files 2018-11-30 22:45:51 +02:00
Manol Donev
ae0fa90290 feat(scrollbar): add isScrollEnabled property (#6640) 2018-11-30 17:18:40 +02:00
Alexander Vakrilov
64bccb9bbc feat(modals): Enable modal dialog chaining in IOS (#6637)
* feat(modals): fire close callback after close in IOS

* chore(tests): Fix some test depending on the order of events
2018-11-30 12:05:33 +02:00
Nick Iliev
bc68773bd2 fix(ui/enums) make exported enums compatible with TypeScript and the corresponding properties (#6639)
* feat: make ui/enums tsc compatible

* make ui/enums tsc compatible
2018-11-30 12:03:06 +02:00
Nick Iliev
b58dff0de3 feat(ActionBar): apply text color when largeTitletextAttribute is set on iOS (#6631)
* apply CSS text color when largeTitletextAttribute is set on iOS

* common logic improvment
2018-11-30 11:29:40 +02:00
Martin Bektchiev
65e3a19f8c fix(tests): Sporadic failures after upgrade to WebKit 12.0 (#6635)
* An additional GC and wait are needed since WebKit upgrade to version 12.0
(TEXT-FIELD.testMemoryLeak test started failing sporadically)
* Compare colors by value because the runtime has started
to sometimes return instances with different addresses in memory
2018-11-29 16:14:13 +02:00
Manol Donev
25c99d8f71 fix(searchbar): isEnabled and isUserInteractionEnabled (#6636) 2018-11-29 11:18:14 +02:00
Svetoslav
7a04a4d0bc doc: update instruction on how to release tns-core-modules (#6529) 2018-11-28 19:02:29 +02:00
Manol Donev
f87ec4bc08 test: add e2e app for nested frame scenarios (#6626) 2018-11-28 16:59:17 +02:00
Nick Iliev
c8341819a3 feat: add hints options for username and password fields (#6416)
* feat: add hints options for username and paossword fileds in the login dialog

* refactor arguments checks

* parsing of login options moved to common file

* add zero login options check

* parsing optimizations

* api refernces improvments

* refactor: argiment passing

* review code improvments
2018-11-27 11:22:12 +02:00
Eduardo Speroni
11d3884243 fix(android-styling): correctly detect if drawable uses ColorFilter (#6342)
* fix(android-styling): correctly detect if drawable uses ColorFilter

Treat a widget with a BorderDrawable background as any other, even if it's FilterOnly

If the drawable has been replaced with a new one, clear _cachedDrawable

Fixes #6341

* test(button): add test for changing border-radius and color in button

* test: fix test checks for IOS

* keep original drawable cached
2018-11-27 10:44:34 +02:00
Svetoslav
00c25b7c0c Merge pull request #6624 from NativeScript/merge-release-in-master
release
2018-11-26 23:18:23 +02:00
SvetoslavTsenov
b9a6580c65 Merge remote-tracking branch 'origin/master' into merge-release-in-master 2018-11-26 16:17:28 +02:00
Svetoslav
10faa0eacc Merge pull request #6622 from NativeScript/release-5.0.5
release: cut the 5.0.5 release
2018-11-26 16:04:48 +02:00
SvetoslavTsenov
756c7170ca release: cut the 5.0.5 release 5.0.5 2018-11-26 15:25:37 +02:00
Svetoslav
a0fbd5fb81 Merge pull request #6619 from NativeScript/merge-release-in-master
Merge release in master
2018-11-26 13:50:50 +02:00
SvetoslavTsenov
5aa78288ce chore: revert versions 2018-11-26 13:19:33 +02:00