diff --git a/CHANGELOG.md b/CHANGELOG.md
index bba452911..91eed4a4e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,11 +1,11 @@
-## [7.2.4](https://github.com/NativeScript/nativescript-angular/compare/7.2.3...7.2.4) (2019-04-24)
+## [7.2.4](https://github.com/NativeScript/nativescript-angular/compare/7.2.3...7.2.4) (2019-05-14)
### Bug Fixes
* **router:** routing services should be provided in forRoot only ([#1729](https://github.com/NativeScript/nativescript-angular/issues/1729)) ([0f6a975](https://github.com/NativeScript/nativescript-angular/commit/0f6a975))
-* ngOnDestroy not called on Android back button ([#923](https://github.com/NativeScript/nativescript-angular/issues/923))
-
+* mark reattached view for CD ([#1803](https://github.com/NativeScript/nativescript-angular/issues/1803)) ([b6dbe57](https://github.com/NativeScript/nativescript-angular/commit/b6dbe57))
+* Potentiel leak: NativeScript views not cleaned up on removal ([#1738](https://github.com/NativeScript/nativescript-angular/issues/1738)) ([59a1cde](https://github.com/NativeScript/nativescript-angular/commit/59a1cde))
### Features
diff --git a/e2e/animation-examples/.gitignore b/e2e/animation-examples/.gitignore
new file mode 100644
index 000000000..2e6e00a8f
--- /dev/null
+++ b/e2e/animation-examples/.gitignore
@@ -0,0 +1,21 @@
+node_modules
+platforms
+hooks
+.vscode
+
+app/**/*.js
+app/**/*.map
+
+e2e/**/*.js
+e2e/**/*.map
+
+# Webpack files
+tsconfig.esm.json
+webpack.config.js
+
+#tests
+instruments*
+e2e/reports
+test-results.xml
+.DS_Store
+mochawesome-report
\ No newline at end of file
diff --git a/e2e/animation-examples/CODE_OF_CONDUCT.md b/e2e/animation-examples/CODE_OF_CONDUCT.md
new file mode 100644
index 000000000..1c845d0b1
--- /dev/null
+++ b/e2e/animation-examples/CODE_OF_CONDUCT.md
@@ -0,0 +1,83 @@
+# NativeScript Community Code of Conduct
+
+Our community members come from all walks of life and are all at different stages of their personal and professional journeys. To support everyone, we've prepared a short code of conduct. Our mission is best served in an environment that is friendly, safe, and accepting; free from intimidation or harassment.
+
+Towards this end, certain behaviors and practices will not be tolerated.
+
+## tl;dr
+
+- Be respectful.
+- We're here to help.
+- Abusive behavior is never tolerated.
+- Violations of this code may result in swift and permanent expulsion from the NativeScript community channels.
+
+## Administrators
+
+- Dan Wilson (@DanWilson on Slack)
+- Jen Looper (@jen.looper on Slack)
+- TJ VanToll (@tjvantoll on Slack)
+
+## Scope
+
+We expect all members of the NativeScript community, including administrators, users, facilitators, and vendors to abide by this Code of Conduct at all times in our community venues, online and in person, and in one-on-one communications pertaining to NativeScript affairs.
+
+This policy covers the usage of the NativeScript Slack community, as well as the NativeScript support forums, NativeScript GitHub repositories, the NativeScript website, and any NativeScript-related events. This Code of Conduct is in addition to, and does not in any way nullify or invalidate, any other terms or conditions related to use of NativeScript.
+
+The definitions of various subjective terms such as "discriminatory", "hateful", or "confusing" will be decided at the sole discretion of the NativeScript administrators.
+
+## Friendly, Harassment-Free Space
+
+We are committed to providing a friendly, safe, and welcoming environment for all, regardless of gender identity, sexual orientation, disability, ethnicity, religion, age, physical appearance, body size, race, or similar personal characteristics.
+
+We ask that you please respect that people have differences of opinion regarding technical choices, and acknowledge that every design or implementation choice carries a trade-off and numerous costs. There is seldom a single right answer. A difference of technology preferences is never a license to be rude.
+
+Any spamming, trolling, flaming, baiting, or other attention-stealing behaviour is not welcome, and will not be tolerated.
+
+Harassing other users of NativeScript is never tolerated, whether via public or private media.
+
+Avoid using offensive or harassing package names, nicknames, or other identifiers that might detract from a friendly, safe, and welcoming environment for all.
+
+Harassment includes, but is not limited to: harmful or prejudicial verbal or written comments related to gender identity, sexual orientation, disability, ethnicity, religion, age, physical appearance, body size, race, or similar personal characteristics; inappropriate use of nudity, sexual images, and/or sexually explicit language in public spaces; threats of physical or non-physical harm; deliberate intimidation, stalking or following; harassing photography or recording; sustained disruption of talks or other events; inappropriate physical contact; and unwelcome sexual attention.
+
+## Acceptable Content
+
+The NativeScript administrators reserve the right to make judgement calls about what is and isn't appropriate in published content. These are guidelines to help you be successful in our community.
+
+Content must contain something applicable to the previously stated goals of the NativeScript community. "Spamming", that is, publishing any form of content that is not applicable, is not allowed.
+
+Content must not contain illegal or infringing content. You should only publish content to NativeScript properties if you have the right to do so. This includes complying with all software license agreements or other intellectual property restrictions. For example, redistributing an MIT-licensed module with the copyright notice removed, would not be allowed. You will be responsible for any violation of laws or others’ intellectual property rights.
+
+Content must not be malware. For example, content (code, video, pictures, words, etc.) which is designed to maliciously exploit or damage computer systems, is not allowed.
+
+Content name, description, and other visible metadata must not include abusive, inappropriate, or harassing content.
+
+## Reporting Violations of this Code of Conduct
+
+If you believe someone is harassing you or has otherwise violated this Code of Conduct, please contact the administrators and send us an abuse report. If this is the initial report of a problem, please include as much detail as possible. It is easiest for us to address issues when we have more context.
+
+## Consequences
+
+All content published to the NativeScript community channels is hosted at the sole discretion of the NativeScript administrators.
+
+Unacceptable behavior from any community member, including sponsors, employees, customers, or others with decision-making authority, will not be tolerated.
+
+Anyone asked to stop unacceptable behavior is expected to comply immediately.
+
+If a community member engages in unacceptable behavior, the NativeScript administrators may take any action they deem appropriate, up to and including a temporary ban or permanent expulsion from the community without warning (and without refund in the case of a paid event or service).
+
+## Addressing Grievances
+
+If you feel you have been falsely or unfairly accused of violating this Code of Conduct, you should notify the administrators. We will do our best to ensure that your grievance is handled appropriately.
+
+In general, we will choose the course of action that we judge as being most in the interest of fostering a safe and friendly community.
+
+## Contact Info
+Please contact Dan Wilson @DanWilson if you need to report a problem or address a grievance related to an abuse report.
+
+You are also encouraged to contact us if you are curious about something that might be "on the line" between appropriate and inappropriate content. We are happy to provide guidance to help you be a successful part of our community.
+
+## Credit and License
+
+This Code of Conduct borrows heavily from the WADE Code of Conduct, which is derived from the NodeBots Code of Conduct, which in turn borrows from the npm Code of Conduct, which was derived from the Stumptown Syndicate Citizen's Code of Conduct, and the Rust Project Code of Conduct.
+
+This document may be reused under a Creative Commons Attribution-ShareAlike License.
\ No newline at end of file
diff --git a/e2e/animation-examples/LICENSE b/e2e/animation-examples/LICENSE
new file mode 100755
index 000000000..061c44028
--- /dev/null
+++ b/e2e/animation-examples/LICENSE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "{}"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright (c) 2015-2019 Progress Software Corporation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
\ No newline at end of file
diff --git a/e2e/animation-examples/README.md b/e2e/animation-examples/README.md
new file mode 100644
index 000000000..f1e68bd59
--- /dev/null
+++ b/e2e/animation-examples/README.md
@@ -0,0 +1,3 @@
+# NativeScript Angular Animations Examples
+
+A NativeScript Angular applications showcasing the [New Wave of Animation Features in Angular](https://www.yearofmoo.com/2017/06/new-wave-of-animation-features.html).
\ No newline at end of file
diff --git a/e2e/animation-examples/app/App_Resources/Android/AndroidManifest.xml b/e2e/animation-examples/app/App_Resources/Android/AndroidManifest.xml
new file mode 100644
index 000000000..9db832151
--- /dev/null
+++ b/e2e/animation-examples/app/App_Resources/Android/AndroidManifest.xml
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/e2e/animation-examples/app/App_Resources/Android/app.gradle b/e2e/animation-examples/app/App_Resources/Android/app.gradle
new file mode 100644
index 000000000..0ad328b9a
--- /dev/null
+++ b/e2e/animation-examples/app/App_Resources/Android/app.gradle
@@ -0,0 +1,23 @@
+// Add your native dependencies here:
+
+// Uncomment to add recyclerview-v7 dependency
+//dependencies {
+// compile 'com.android.support:recyclerview-v7:+'
+//}
+
+android {
+ defaultConfig {
+ generatedDensities = []
+ applicationId = "org.nativescript.ng4animations"
+
+ //override supported platforms
+ // ndk {
+ // abiFilters.clear()
+ // abiFilters "armeabi-v7a"
+ // }
+
+ }
+ aaptOptions {
+ additionalParameters "--no-version-vectors"
+ }
+}
diff --git a/e2e/animation-examples/app/App_Resources/Android/drawable-hdpi/background.png b/e2e/animation-examples/app/App_Resources/Android/drawable-hdpi/background.png
new file mode 100644
index 000000000..eb381c258
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/Android/drawable-hdpi/background.png differ
diff --git a/e2e/animation-examples/app/App_Resources/Android/drawable-hdpi/icon.png b/e2e/animation-examples/app/App_Resources/Android/drawable-hdpi/icon.png
new file mode 100755
index 000000000..1034356e2
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/Android/drawable-hdpi/icon.png differ
diff --git a/e2e/animation-examples/app/App_Resources/Android/drawable-hdpi/logo.png b/e2e/animation-examples/app/App_Resources/Android/drawable-hdpi/logo.png
new file mode 100644
index 000000000..5218f4c90
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/Android/drawable-hdpi/logo.png differ
diff --git a/e2e/animation-examples/app/App_Resources/Android/drawable-ldpi/background.png b/e2e/animation-examples/app/App_Resources/Android/drawable-ldpi/background.png
new file mode 100644
index 000000000..748b2adf5
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/Android/drawable-ldpi/background.png differ
diff --git a/e2e/animation-examples/app/App_Resources/Android/drawable-ldpi/icon.png b/e2e/animation-examples/app/App_Resources/Android/drawable-ldpi/icon.png
new file mode 100755
index 000000000..ddfc17a71
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/Android/drawable-ldpi/icon.png differ
diff --git a/e2e/animation-examples/app/App_Resources/Android/drawable-ldpi/logo.png b/e2e/animation-examples/app/App_Resources/Android/drawable-ldpi/logo.png
new file mode 100644
index 000000000..b9e102a76
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/Android/drawable-ldpi/logo.png differ
diff --git a/e2e/animation-examples/app/App_Resources/Android/drawable-mdpi/background.png b/e2e/animation-examples/app/App_Resources/Android/drawable-mdpi/background.png
new file mode 100644
index 000000000..efeaf2907
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/Android/drawable-mdpi/background.png differ
diff --git a/e2e/animation-examples/app/App_Resources/Android/drawable-mdpi/icon.png b/e2e/animation-examples/app/App_Resources/Android/drawable-mdpi/icon.png
new file mode 100755
index 000000000..486e41091
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/Android/drawable-mdpi/icon.png differ
diff --git a/e2e/animation-examples/app/App_Resources/Android/drawable-mdpi/logo.png b/e2e/animation-examples/app/App_Resources/Android/drawable-mdpi/logo.png
new file mode 100644
index 000000000..626338766
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/Android/drawable-mdpi/logo.png differ
diff --git a/e2e/animation-examples/app/App_Resources/Android/drawable-nodpi/splash_screen.xml b/e2e/animation-examples/app/App_Resources/Android/drawable-nodpi/splash_screen.xml
new file mode 100644
index 000000000..ada77f92c
--- /dev/null
+++ b/e2e/animation-examples/app/App_Resources/Android/drawable-nodpi/splash_screen.xml
@@ -0,0 +1,8 @@
+
+ -
+
+
+ -
+
+
+
\ No newline at end of file
diff --git a/e2e/animation-examples/app/App_Resources/Android/drawable-xhdpi/background.png b/e2e/animation-examples/app/App_Resources/Android/drawable-xhdpi/background.png
new file mode 100644
index 000000000..612bbd072
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/Android/drawable-xhdpi/background.png differ
diff --git a/e2e/animation-examples/app/App_Resources/Android/drawable-xhdpi/icon.png b/e2e/animation-examples/app/App_Resources/Android/drawable-xhdpi/icon.png
new file mode 100644
index 000000000..f29188209
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/Android/drawable-xhdpi/icon.png differ
diff --git a/e2e/animation-examples/app/App_Resources/Android/drawable-xhdpi/logo.png b/e2e/animation-examples/app/App_Resources/Android/drawable-xhdpi/logo.png
new file mode 100644
index 000000000..ad8ee2f4b
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/Android/drawable-xhdpi/logo.png differ
diff --git a/e2e/animation-examples/app/App_Resources/Android/drawable-xxhdpi/background.png b/e2e/animation-examples/app/App_Resources/Android/drawable-xxhdpi/background.png
new file mode 100644
index 000000000..0fa88e235
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/Android/drawable-xxhdpi/background.png differ
diff --git a/e2e/animation-examples/app/App_Resources/Android/drawable-xxhdpi/icon.png b/e2e/animation-examples/app/App_Resources/Android/drawable-xxhdpi/icon.png
new file mode 100644
index 000000000..4f69cb25b
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/Android/drawable-xxhdpi/icon.png differ
diff --git a/e2e/animation-examples/app/App_Resources/Android/drawable-xxhdpi/logo.png b/e2e/animation-examples/app/App_Resources/Android/drawable-xxhdpi/logo.png
new file mode 100644
index 000000000..668327832
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/Android/drawable-xxhdpi/logo.png differ
diff --git a/e2e/animation-examples/app/App_Resources/Android/drawable-xxxhdpi/background.png b/e2e/animation-examples/app/App_Resources/Android/drawable-xxxhdpi/background.png
new file mode 100644
index 000000000..c650f6438
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/Android/drawable-xxxhdpi/background.png differ
diff --git a/e2e/animation-examples/app/App_Resources/Android/drawable-xxxhdpi/icon.png b/e2e/animation-examples/app/App_Resources/Android/drawable-xxxhdpi/icon.png
new file mode 100644
index 000000000..50887a856
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/Android/drawable-xxxhdpi/icon.png differ
diff --git a/e2e/animation-examples/app/App_Resources/Android/drawable-xxxhdpi/logo.png b/e2e/animation-examples/app/App_Resources/Android/drawable-xxxhdpi/logo.png
new file mode 100644
index 000000000..fa6331c8d
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/Android/drawable-xxxhdpi/logo.png differ
diff --git a/e2e/animation-examples/app/App_Resources/Android/values-v21/colors.xml b/e2e/animation-examples/app/App_Resources/Android/values-v21/colors.xml
new file mode 100644
index 000000000..a64641a9d
--- /dev/null
+++ b/e2e/animation-examples/app/App_Resources/Android/values-v21/colors.xml
@@ -0,0 +1,4 @@
+
+
+ #3d5afe
+
\ No newline at end of file
diff --git a/e2e/animation-examples/app/App_Resources/Android/values-v21/styles.xml b/e2e/animation-examples/app/App_Resources/Android/values-v21/styles.xml
new file mode 100644
index 000000000..dac8727c8
--- /dev/null
+++ b/e2e/animation-examples/app/App_Resources/Android/values-v21/styles.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/e2e/animation-examples/app/App_Resources/Android/values/colors.xml b/e2e/animation-examples/app/App_Resources/Android/values/colors.xml
new file mode 100644
index 000000000..74ad8829c
--- /dev/null
+++ b/e2e/animation-examples/app/App_Resources/Android/values/colors.xml
@@ -0,0 +1,7 @@
+
+
+ #F5F5F5
+ #757575
+ #33B5E5
+ #272734
+
\ No newline at end of file
diff --git a/e2e/animation-examples/app/App_Resources/Android/values/styles.xml b/e2e/animation-examples/app/App_Resources/Android/values/styles.xml
new file mode 100644
index 000000000..1e8c7f29b
--- /dev/null
+++ b/e2e/animation-examples/app/App_Resources/Android/values/styles.xml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 000000000..1953734f4
--- /dev/null
+++ b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,92 @@
+{
+ "images" : [
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "icon-29.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "icon-29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "icon-29@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "icon-40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "icon-40@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "icon-60@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "icon-60@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "icon-29.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "icon-29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "icon-40.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "icon-40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "icon-76.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "icon-76@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "83.5x83.5",
+ "idiom" : "ipad",
+ "filename" : "icon-83.5@2x.png",
+ "scale" : "2x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png
new file mode 100644
index 000000000..9e15af09d
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png
new file mode 100644
index 000000000..7b9e55537
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png
new file mode 100644
index 000000000..76f61ec1f
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png
new file mode 100644
index 000000000..15b06db11
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png
new file mode 100644
index 000000000..585065f94
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png
new file mode 100644
index 000000000..a450c421d
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png
new file mode 100644
index 000000000..457b6d94c
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png
new file mode 100644
index 000000000..fa5a6ac86
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png
new file mode 100644
index 000000000..94abcf70d
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png
new file mode 100644
index 000000000..2e71dd3a0
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png
new file mode 100644
index 000000000..4abc9ec50
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/Contents.json b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/Contents.json
new file mode 100644
index 000000000..da4a164c9
--- /dev/null
+++ b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json
new file mode 100644
index 000000000..4414bad08
--- /dev/null
+++ b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json
@@ -0,0 +1,158 @@
+{
+ "images" : [
+ {
+ "extent" : "full-screen",
+ "idiom" : "iphone",
+ "subtype" : "736h",
+ "filename" : "Default-736h@3x.png",
+ "minimum-system-version" : "8.0",
+ "orientation" : "portrait",
+ "scale" : "3x"
+ },
+ {
+ "extent" : "full-screen",
+ "idiom" : "iphone",
+ "subtype" : "736h",
+ "filename" : "Default-Landscape@3x.png",
+ "minimum-system-version" : "8.0",
+ "orientation" : "landscape",
+ "scale" : "3x"
+ },
+ {
+ "extent" : "full-screen",
+ "idiom" : "iphone",
+ "subtype" : "667h",
+ "filename" : "Default-667h@2x.png",
+ "minimum-system-version" : "8.0",
+ "orientation" : "portrait",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "iphone",
+ "filename" : "Default@2x.png",
+ "extent" : "full-screen",
+ "minimum-system-version" : "7.0",
+ "scale" : "2x"
+ },
+ {
+ "extent" : "full-screen",
+ "idiom" : "iphone",
+ "subtype" : "retina4",
+ "filename" : "Default-568h@2x.png",
+ "minimum-system-version" : "7.0",
+ "orientation" : "portrait",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "ipad",
+ "filename" : "Default-Portrait.png",
+ "extent" : "full-screen",
+ "minimum-system-version" : "7.0",
+ "scale" : "1x"
+ },
+ {
+ "orientation" : "landscape",
+ "idiom" : "ipad",
+ "filename" : "Default-Landscape.png",
+ "extent" : "full-screen",
+ "minimum-system-version" : "7.0",
+ "scale" : "1x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "ipad",
+ "filename" : "Default-Portrait@2x.png",
+ "extent" : "full-screen",
+ "minimum-system-version" : "7.0",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "landscape",
+ "idiom" : "ipad",
+ "filename" : "Default-Landscape@2x.png",
+ "extent" : "full-screen",
+ "minimum-system-version" : "7.0",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "iphone",
+ "filename" : "Default.png",
+ "extent" : "full-screen",
+ "scale" : "1x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "iphone",
+ "filename" : "Default@2x.png",
+ "extent" : "full-screen",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "iphone",
+ "filename" : "Default-568h@2x.png",
+ "extent" : "full-screen",
+ "subtype" : "retina4",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "ipad",
+ "extent" : "to-status-bar",
+ "scale" : "1x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "ipad",
+ "filename" : "Default-Portrait.png",
+ "extent" : "full-screen",
+ "scale" : "1x"
+ },
+ {
+ "orientation" : "landscape",
+ "idiom" : "ipad",
+ "extent" : "to-status-bar",
+ "scale" : "1x"
+ },
+ {
+ "orientation" : "landscape",
+ "idiom" : "ipad",
+ "filename" : "Default-Landscape.png",
+ "extent" : "full-screen",
+ "scale" : "1x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "ipad",
+ "extent" : "to-status-bar",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "ipad",
+ "filename" : "Default-Portrait@2x.png",
+ "extent" : "full-screen",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "landscape",
+ "idiom" : "ipad",
+ "extent" : "to-status-bar",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "landscape",
+ "idiom" : "ipad",
+ "filename" : "Default-Landscape@2x.png",
+ "extent" : "full-screen",
+ "scale" : "2x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png
new file mode 100644
index 000000000..d7f17fcd2
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png
new file mode 100644
index 000000000..b88415405
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png
new file mode 100644
index 000000000..faab4b631
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png
new file mode 100644
index 000000000..3365ba3cd
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png
new file mode 100644
index 000000000..a44945c1a
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png
new file mode 100644
index 000000000..e6dca6269
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png
new file mode 100644
index 000000000..1a5007962
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png
new file mode 100644
index 000000000..73d8b920f
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png
new file mode 100644
index 000000000..9f1f6ce3e
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png
new file mode 100644
index 000000000..514fc5cde
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json
new file mode 100644
index 000000000..4f4e9c506
--- /dev/null
+++ b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json
@@ -0,0 +1,22 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchScreen-AspectFill.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchScreen-AspectFill@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png
new file mode 100644
index 000000000..c293f9c7a
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png
new file mode 100644
index 000000000..233693a6e
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json
new file mode 100644
index 000000000..23c0ffd7a
--- /dev/null
+++ b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json
@@ -0,0 +1,22 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchScreen-Center.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchScreen-Center@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png
new file mode 100644
index 000000000..a5a775a2b
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png
new file mode 100644
index 000000000..154c19343
Binary files /dev/null and b/e2e/animation-examples/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png differ
diff --git a/e2e/animation-examples/app/App_Resources/iOS/Info.plist b/e2e/animation-examples/app/App_Resources/iOS/Info.plist
new file mode 100644
index 000000000..ea3e3ea23
--- /dev/null
+++ b/e2e/animation-examples/app/App_Resources/iOS/Info.plist
@@ -0,0 +1,47 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleDisplayName
+ ${PRODUCT_NAME}
+ CFBundleExecutable
+ ${EXECUTABLE_NAME}
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ ${PRODUCT_NAME}
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1.0
+ LSRequiresIPhoneOS
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIRequiresFullScreen
+
+ UIRequiredDeviceCapabilities
+
+ armv7
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+
+
diff --git a/e2e/animation-examples/app/App_Resources/iOS/LaunchScreen.storyboard b/e2e/animation-examples/app/App_Resources/iOS/LaunchScreen.storyboard
new file mode 100644
index 000000000..2ad9471e1
--- /dev/null
+++ b/e2e/animation-examples/app/App_Resources/iOS/LaunchScreen.storyboard
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/e2e/animation-examples/app/App_Resources/iOS/build.xcconfig b/e2e/animation-examples/app/App_Resources/iOS/build.xcconfig
new file mode 100644
index 000000000..4b0118490
--- /dev/null
+++ b/e2e/animation-examples/app/App_Resources/iOS/build.xcconfig
@@ -0,0 +1,7 @@
+// You can add custom settings here
+// for example you can uncomment the following line to force distribution code signing
+// CODE_SIGN_IDENTITY = iPhone Distribution
+// To build for device with Xcode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
+// DEVELOPMENT_TEAM = YOUR_TEAM_ID;
+ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
diff --git a/e2e/animation-examples/app/animate-child.component.ts b/e2e/animation-examples/app/animate-child.component.ts
new file mode 100644
index 000000000..2af68882d
--- /dev/null
+++ b/e2e/animation-examples/app/animate-child.component.ts
@@ -0,0 +1,46 @@
+import {
+ animate,
+ animateChild,
+ query,
+ style,
+ transition,
+ trigger,
+} from "@angular/animations";
+import { Component } from "@angular/core";
+
+@Component({
+ template: `
+
+ >
+
+ `,
+ animations: [
+ trigger("parent", [
+ transition("* => *", [
+ style({ transform: "translate(200px)" }),
+ animate(1000, style({ transform: "translate(0px)" })),
+ query("@child", animateChild())
+ ])
+ ]),
+ trigger("child", [
+ transition("* => *", [
+ style({ opacity: 0 }),
+ animate(400, style({ opacity: 1 }))
+ ])
+ ])
+ ],
+ styles: [
+ `.parent {
+ background-color: red;
+ }`,
+ `.child {
+ height: 50%;
+ width: 50%;
+ background-color: green;
+ }`,
+ ],
+})
+export class AnimateChildComponent {
+ public parentVal;
+ public childVal;
+}
diff --git a/e2e/animation-examples/app/animation-builder.component.ts b/e2e/animation-examples/app/animation-builder.component.ts
new file mode 100644
index 000000000..d56bec432
--- /dev/null
+++ b/e2e/animation-examples/app/animation-builder.component.ts
@@ -0,0 +1,25 @@
+import { AnimationBuilder, style, animate } from '@angular/animations';
+import { Component, ViewChild } from '@angular/core';
+
+@Component({
+ template: `
+
+ `
+})
+export class AnimationBuilderComponent {
+ @ViewChild('button')
+ private button;
+
+ constructor(private _builder: AnimationBuilder) {}
+
+ makeAnimation() {
+ const myAnimation = this._builder.build([
+ style({ "opacity": 1 }),
+ animate(1000, style({ "opacity": 0 }))
+ ]);
+
+ const player = myAnimation.create(this.button.nativeElement);
+
+ player.play();
+ }
+}
diff --git a/e2e/animation-examples/app/animations-list.component.ts b/e2e/animation-examples/app/animations-list.component.ts
new file mode 100644
index 000000000..52da0deea
--- /dev/null
+++ b/e2e/animation-examples/app/animations-list.component.ts
@@ -0,0 +1,33 @@
+import { Component } from '@angular/core';
+
+class Link {
+ constructor(public title: string, public link: string, public id?: string) {
+ this.id = this.id || this.link.replace("/", "");
+ }
+}
+
+@Component({
+ template: `
+
+
+
+ `
+})
+export class AnimationsListComponent {
+ public links: Link[] = [
+ new Link("Animation builder", "/builder"),
+ new Link("External animation", "/external"),
+ new Link("Selector", "/selector"),
+ new Link("Query with stagger", "/query-stagger"),
+ new Link("Fade in/out animation", "/fade-in-out"),
+ new Link("Animation with options", "/options"),
+ new Link("Animation with default options", "/options-default"),
+ new Link("Animate child", "/animate-child"),
+ new Link("Angular docs animations", "/hero"),
+ ]
+}
diff --git a/e2e/animation-examples/app/animations.ts b/e2e/animation-examples/app/animations.ts
new file mode 100644
index 000000000..15531b7aa
--- /dev/null
+++ b/e2e/animation-examples/app/animations.ts
@@ -0,0 +1,9 @@
+import { animation, style, animate } from "@angular/animations";
+
+export const fadeAnimation = animation([
+ style({ opacity: "{{ from }}" }),
+ animate("{{ time }}", style({ opacity: "{{ to }}" }))
+], {
+ params: { time: "1s" }
+});
+
diff --git a/e2e/animation-examples/app/app.android.css b/e2e/animation-examples/app/app.android.css
new file mode 100644
index 000000000..3886f4ffe
--- /dev/null
+++ b/e2e/animation-examples/app/app.android.css
@@ -0,0 +1,10 @@
+Button {
+ font-size: 8px;
+ padding: 0px;
+ margin: 0px;
+}
+
+Label {
+ font-size: 8px;
+}
+
diff --git a/e2e/animation-examples/app/app.component.ts b/e2e/animation-examples/app/app.component.ts
new file mode 100644
index 000000000..74eb76f2f
--- /dev/null
+++ b/e2e/animation-examples/app/app.component.ts
@@ -0,0 +1,8 @@
+import { Component } from '@angular/core';
+
+@Component({
+ moduleId: module.id,
+ template: ``
+})
+export class AppComponent {
+}
\ No newline at end of file
diff --git a/e2e/animation-examples/app/app.ios.css b/e2e/animation-examples/app/app.ios.css
new file mode 100644
index 000000000..e69de29bb
diff --git a/e2e/animation-examples/app/app.module.ngfactory.d.ts b/e2e/animation-examples/app/app.module.ngfactory.d.ts
new file mode 100644
index 000000000..9d15b9419
--- /dev/null
+++ b/e2e/animation-examples/app/app.module.ngfactory.d.ts
@@ -0,0 +1 @@
+export const AppModuleNgFactory: any;
\ No newline at end of file
diff --git a/e2e/animation-examples/app/app.module.ts b/e2e/animation-examples/app/app.module.ts
new file mode 100644
index 000000000..7e15dde96
--- /dev/null
+++ b/e2e/animation-examples/app/app.module.ts
@@ -0,0 +1,29 @@
+import {
+ NgModule,
+ NO_ERRORS_SCHEMA,
+ NgModuleFactoryLoader
+} from "@angular/core";
+
+import { NativeScriptModule } from "nativescript-angular/nativescript.module";
+import { NativeScriptAnimationsModule } from "nativescript-angular/animations";
+import { NSModuleFactoryLoader } from "nativescript-angular/router";
+
+import { AppRoutingModule, routedComponents } from "./app.routing";
+import { AppComponent } from "./app.component";
+
+@NgModule({
+ bootstrap: [
+ AppComponent,
+ ],
+ declarations: [
+ AppComponent,
+ ...routedComponents,
+ ],
+ imports: [
+ NativeScriptModule,
+ NativeScriptAnimationsModule,
+ AppRoutingModule,
+ ],
+ schemas: [NO_ERRORS_SCHEMA],
+})
+export class AppModule {}
diff --git a/e2e/animation-examples/app/app.routing.ts b/e2e/animation-examples/app/app.routing.ts
new file mode 100644
index 000000000..c9eb97157
--- /dev/null
+++ b/e2e/animation-examples/app/app.routing.ts
@@ -0,0 +1,45 @@
+import { NgModule } from "@angular/core";
+import { Routes } from "@angular/router";
+import { NativeScriptRouterModule } from "nativescript-angular/router";
+
+import { AnimationsListComponent } from "./animations-list.component";
+import { AnimationBuilderComponent } from "./animation-builder.component";
+import { ExternalAnimationComponent } from "./external-animation.component";
+import { FadeInOutComponent } from "./fade-in-out.component";
+import { OptionsComponent } from "./options.component";
+import { OptionsDefaultComponent } from "./options-default.component";
+import { AnimateChildComponent } from "./animate-child.component";
+import { SelectorAllComponent } from "./selector-all.component";
+import { QueryStaggerComponent } from "./query-stagger.component";
+
+const routes: Routes = [
+ { path: "", pathMatch: "full", redirectTo: "list" },
+ { path: "list", component: AnimationsListComponent },
+ { path: "builder", component: AnimationBuilderComponent },
+ { path: "external", component: ExternalAnimationComponent },
+ { path: "fade-in-out", component: FadeInOutComponent },
+ { path: "options", component: OptionsComponent },
+ { path: "options-default", component: OptionsDefaultComponent },
+ { path: "animate-child", component: AnimateChildComponent },
+ { path: "selector", component: SelectorAllComponent },
+ { path: "query-stagger", component: QueryStaggerComponent },
+ { path: "hero", loadChildren: "./hero/hero.module#HeroModule" },
+];
+
+@NgModule({
+ imports: [NativeScriptRouterModule.forRoot(routes)],
+ exports: [NativeScriptRouterModule],
+})
+export class AppRoutingModule { }
+
+export const routedComponents = [
+ AnimationsListComponent,
+ AnimationBuilderComponent,
+ ExternalAnimationComponent,
+ FadeInOutComponent,
+ OptionsComponent,
+ OptionsDefaultComponent,
+ AnimateChildComponent,
+ SelectorAllComponent,
+ QueryStaggerComponent,
+];
diff --git a/e2e/animation-examples/app/external-animation.component.ts b/e2e/animation-examples/app/external-animation.component.ts
new file mode 100644
index 000000000..80eb38fbb
--- /dev/null
+++ b/e2e/animation-examples/app/external-animation.component.ts
@@ -0,0 +1,58 @@
+import { useAnimation, trigger, transition, style, animate } from "@angular/animations";
+import { Component } from "@angular/core";
+
+import { fadeAnimation } from "./animations";
+
+@Component({
+ template: `
+
+
+
+
+
+ `,
+ animations: [
+ trigger("coolAnimation", [
+ transition("invisible => visible", [
+ useAnimation(fadeAnimation, {
+ params: {
+ from: 0,
+ to: 1,
+ time: "1s",
+ },
+ })
+ ]),
+
+ transition("visible => invisible", [
+ useAnimation(fadeAnimation, {
+ params: {
+ from: 1,
+ to: 0,
+ time: "1.0s",
+ },
+ })
+ ]),
+
+ ])
+ ],
+})
+export class ExternalAnimationComponent {
+ public isVisible = "visible";
+
+ toggle() {
+ this.isVisible = this.isVisible === "visible" ?
+ "invisible" :
+ "visible";
+ }
+}
+
diff --git a/e2e/animation-examples/app/fade-in-out.component.ts b/e2e/animation-examples/app/fade-in-out.component.ts
new file mode 100644
index 000000000..2d3ebe149
--- /dev/null
+++ b/e2e/animation-examples/app/fade-in-out.component.ts
@@ -0,0 +1,54 @@
+import { Component } from "@angular/core";
+import { trigger, transition, style, animate } from "@angular/animations";
+
+@Component({
+ template: `
+
+
+
+
+
+ `,
+ animations: [
+ trigger("someCoolAnimation", [
+ transition("* => fadeIn", [
+ style({ opacity: 0 }),
+ animate(600, style({ opacity: 1 }))
+ ]),
+ transition("* => fadeOut", [
+ animate(600, style({ opacity: 0 }))
+ ])
+ ])
+ ]
+})
+export class FadeInOutComponent {
+ bindingVar = "";
+
+ fadeIn() {
+ this.bindingVar = "fadeIn";
+ }
+
+ fadeOut() {
+ this.bindingVar = "fadeOut";
+ }
+
+ toggle() {
+ this.bindingVar == "fadeOut" ? this.fadeIn() : this.fadeOut();
+ }
+
+ hide() {
+ this.fadeOut();
+ }
+}
diff --git a/e2e/animation-examples/app/hero/hero-list-basic.component.ts b/e2e/animation-examples/app/hero/hero-list-basic.component.ts
new file mode 100644
index 000000000..260fa4008
--- /dev/null
+++ b/e2e/animation-examples/app/hero/hero-list-basic.component.ts
@@ -0,0 +1,56 @@
+import {
+ Component,
+ Input
+} from "@angular/core";
+import {
+ trigger,
+ state,
+ style,
+ animate,
+ transition
+} from "@angular/animations";
+
+import { Heroes } from "./hero.service";
+
+@Component({
+ moduleId: module.id,
+ selector: "hero-list-basic",
+ /* The click event calls hero.toggleState(), which
+ * causes the state of that hero to switch from
+ * active to inactive or vice versa.
+ */
+ template: `
+
+
+
+ `,
+ styleUrls: ["./hero-list.component.css"],
+ /**
+ * Define two states, "inactive" and "active", and the end
+ * styles that apply whenever the element is in those states.
+ * Then define animations for transitioning between the states,
+ * one in each direction
+ */
+ animations: [
+ trigger("heroState", [
+ state("inactive", style({
+ backgroundColor: "#eee",
+ transform: "scale(1)"
+ })),
+ state("active", style({
+ backgroundColor: "#cfd8dc",
+ transform: "scale(1.1)"
+ })),
+
+ transition("inactive => active", animate("100ms ease-in")),
+ transition("active => inactive", animate("100ms ease-out")),
+ ])
+ ]
+})
+export class HeroListBasicComponent {
+ @Input() heroes: Heroes;
+}
diff --git a/e2e/animation-examples/app/hero/hero-list-combined-transitions.component.ts b/e2e/animation-examples/app/hero/hero-list-combined-transitions.component.ts
new file mode 100644
index 000000000..bf588976a
--- /dev/null
+++ b/e2e/animation-examples/app/hero/hero-list-combined-transitions.component.ts
@@ -0,0 +1,51 @@
+import {
+ Component,
+ Input
+} from "@angular/core";
+import {
+ trigger,
+ state,
+ style,
+ animate,
+ transition
+} from "@angular/animations";
+
+import { Heroes } from "./hero.service";
+
+@Component({
+ moduleId: module.id,
+ selector: "hero-list-combined-transitions",
+ template: `
+
+
+
+ `,
+ styleUrls: ["./hero-list.component.css"],
+ /*
+ * Define two states, "inactive" and "active", and the end
+ * styles that apply whenever the element is in those states.
+ * Then define an animated transition between these two
+ * states, in *both* directions.
+ */
+ animations: [
+ trigger("heroState", [
+ state("inactive", style({
+ backgroundColor: "#eee",
+ transform: "scale(1)"
+ })),
+ state("active", style({
+ backgroundColor: "#cfd8dc",
+ transform: "scale(1.1)"
+ })),
+ transition("inactive => active, active => inactive",
+ animate("100ms ease-out"))
+ ])
+ ]
+})
+export class HeroListCombinedTransitionsComponent {
+ @Input() heroes: Heroes;
+}
diff --git a/e2e/animation-examples/app/hero/hero-list-enter-leave-states.component.ts b/e2e/animation-examples/app/hero/hero-list-enter-leave-states.component.ts
new file mode 100644
index 000000000..f8c63da1b
--- /dev/null
+++ b/e2e/animation-examples/app/hero/hero-list-enter-leave-states.component.ts
@@ -0,0 +1,60 @@
+import {
+ Component,
+ Input
+} from "@angular/core";
+import {
+ trigger,
+ state,
+ style,
+ animate,
+ transition
+} from "@angular/animations";
+
+import { Heroes } from "./hero.service";
+
+@Component({
+ moduleId: module.id,
+ selector: "hero-list-enter-leave-states",
+ template: `
+
+
+
+ `,
+ styleUrls: ["./hero-list.component.css"],
+ /* The elements here have two possible states based
+ * on the hero state, "active", or "inactive". We animate
+ * six transitions: Between the two states in both directions,
+ * and between each state and void. With this we can animate
+ * the enter and leave of elements differently based on which
+ * state they are in when they are added and removed.
+ */
+ animations: [
+ trigger("heroState", [
+ state("inactive", style({ transform: "translateX(0) scale(1)" })),
+ state("active", style({ transform: "translateX(0) scale(1.1)" })),
+ transition("inactive => active", animate("100ms ease-in")),
+ transition("active => inactive", animate("100ms ease-out")),
+ transition("void => inactive", [
+ style({ transform: "translateX(-100%) scale(1)" }),
+ animate(100)
+ ]),
+ transition("inactive => void", [
+ animate(100, style({ transform: "translateX(100%) scale(1)" }))
+ ]),
+ transition("void => active", [
+ style({ transform: "translateX(0) scale(0)" }),
+ animate(200)
+ ]),
+ transition("active => void", [
+ animate(200, style({ transform: "translateX(0) scale(0)" }))
+ ])
+ ])
+ ]
+})
+export class HeroListEnterLeaveStatesComponent {
+ @Input() heroes: Heroes;
+}
diff --git a/e2e/animation-examples/app/hero/hero-list-enter-leave.component.ts b/e2e/animation-examples/app/hero/hero-list-enter-leave.component.ts
new file mode 100644
index 000000000..87468a59e
--- /dev/null
+++ b/e2e/animation-examples/app/hero/hero-list-enter-leave.component.ts
@@ -0,0 +1,48 @@
+import {
+ Component,
+ Input
+} from "@angular/core";
+import {
+ trigger,
+ state,
+ style,
+ animate,
+ transition
+} from "@angular/animations";
+
+import { Heroes } from "./hero.service";
+
+@Component({
+ moduleId: module.id,
+ selector: "hero-list-enter-leave",
+ template: `
+
+
+
+ `,
+ styleUrls: ["./hero-list.component.css"],
+ /* The element here always has the state "in" when it
+ * is present. We animate two transitions: From void
+ * to in and from in to void, to achieve an animated
+ * enter and leave transition. The element enters from
+ * the left and leaves to the right using translateX.
+ */
+ animations: [
+ trigger("flyInOut", [
+ state("in", style({ transform: "translateX(0)" })),
+ transition("void => *", [
+ style({ transform: "translateX(-100%)" }),
+ animate(100)
+ ]),
+ transition("* => void", [
+ animate(100, style({ transform: "translateX(100%)" }))
+ ])
+ ])
+ ]
+})
+export class HeroListEnterLeaveComponent {
+ @Input() heroes: Heroes;
+}
diff --git a/e2e/animation-examples/app/hero/hero-list-inline-styles.component.ts b/e2e/animation-examples/app/hero/hero-list-inline-styles.component.ts
new file mode 100644
index 000000000..6c378942a
--- /dev/null
+++ b/e2e/animation-examples/app/hero/hero-list-inline-styles.component.ts
@@ -0,0 +1,52 @@
+import {
+ Component,
+ Input,
+} from "@angular/core";
+import {
+ trigger,
+ style,
+ animate,
+ transition
+} from "@angular/animations";
+
+import { Heroes } from "./hero.service";
+
+@Component({
+ moduleId: module.id,
+ selector: "hero-list-inline-styles",
+ template: `
+
+
+
+ `,
+ styleUrls: ["./hero-list.component.css"],
+ /**
+ * Define two states, "inactive" and "active", and the end
+ * styles that apply whenever the element is in those states.
+ * Then define an animation for the inactive => active transition.
+ * This animation has no end styles, but only styles that are
+ * defined inline inside the transition and thus are only kept
+ * as long as the animation is running.
+ */
+ animations: [
+ trigger("heroState", [
+ transition("inactive => active", [
+ style({
+ backgroundColor: "#cfd8dc",
+ transform: "scale(1.3)"
+ }),
+ animate("80ms ease-in", style({
+ backgroundColor: "#eee",
+ transform: "scale(1)"
+ }))
+ ]),
+ ])
+ ]
+})
+export class HeroListInlineStylesComponent {
+ @Input() heroes: Heroes;
+}
diff --git a/e2e/animation-examples/app/hero/hero-list-timings.component.ts b/e2e/animation-examples/app/hero/hero-list-timings.component.ts
new file mode 100644
index 000000000..46deaacf4
--- /dev/null
+++ b/e2e/animation-examples/app/hero/hero-list-timings.component.ts
@@ -0,0 +1,57 @@
+import {
+ Component,
+ Input
+} from "@angular/core";
+import {
+ trigger,
+ state,
+ style,
+ animate,
+ transition
+} from "@angular/animations";
+
+import { Heroes } from "./hero.service";
+
+@Component({
+ moduleId: module.id,
+ selector: "hero-list-timings",
+ template: `
+
+
+
+ `,
+ styleUrls: ["./hero-list.component.css"],
+ /* The element here always has the state "in" when it
+ * is present. We animate two transitions: From void
+ * to in and from in to void, to achieve an animated
+ * enter and leave transition. The element enters from
+ * the left and leaves to the right using translateX,
+ * and fades in/out using opacity. We use different easings
+ * for enter and leave.
+ */
+ animations: [
+ trigger("flyInOut", [
+ state("in", style({ opacity: 1, transform: "translateX(0)" })),
+ transition("void => *", [
+ style({
+ opacity: 0,
+ transform: "translateX(-100%)"
+ }),
+ animate("0.2s ease-in")
+ ]),
+ transition("* => void", [
+ animate("0.2s 0.1s ease-out", style({
+ opacity: 0,
+ transform: "translateX(100%)"
+ }))
+ ])
+ ])
+ ]
+})
+export class HeroListTimingsComponent {
+ @Input() heroes: Heroes;
+}
diff --git a/e2e/animation-examples/app/hero/hero-list-twoway.component.ts b/e2e/animation-examples/app/hero/hero-list-twoway.component.ts
new file mode 100644
index 000000000..4367814b4
--- /dev/null
+++ b/e2e/animation-examples/app/hero/hero-list-twoway.component.ts
@@ -0,0 +1,50 @@
+import {
+ Component,
+ Input
+} from "@angular/core";
+import {
+ trigger,
+ state,
+ style,
+ animate,
+ transition
+} from "@angular/animations";
+
+import { Heroes } from "./hero.service";
+
+@Component({
+ moduleId: module.id,
+ selector: "hero-list-twoway",
+ template: `
+
+
+
+ `,
+ styleUrls: ["./hero-list.component.css"],
+ /*
+ * Define two states, "inactive" and "active", and the end
+ * styles that apply whenever the element is in those states.
+ * Then define an animated transition between these two
+ * states, in *both* directions.
+ */
+ animations: [
+ trigger("heroState", [
+ state("inactive", style({
+ backgroundColor: "#eee",
+ transform: "scale(1)"
+ })),
+ state("active", style({
+ backgroundColor: "#cfd8dc",
+ transform: "scale(1.1)"
+ })),
+ transition("inactive <=> active", animate("100ms ease-out"))
+ ])
+ ]
+})
+export class HeroListTwowayComponent {
+ @Input() heroes: Heroes;
+}
diff --git a/e2e/animation-examples/app/hero/hero-list.component.css b/e2e/animation-examples/app/hero/hero-list.component.css
new file mode 100644
index 000000000..d432e70ae
--- /dev/null
+++ b/e2e/animation-examples/app/hero/hero-list.component.css
@@ -0,0 +1,8 @@
+.active {
+ background-color: #cfd8dc;
+ transform: scale(1.1);
+}
+.inactive {
+ background-color: #eee;
+ transform: scale(1);
+}
diff --git a/e2e/animation-examples/app/hero/hero-routing.module.ts b/e2e/animation-examples/app/hero/hero-routing.module.ts
new file mode 100644
index 000000000..3e3126068
--- /dev/null
+++ b/e2e/animation-examples/app/hero/hero-routing.module.ts
@@ -0,0 +1,19 @@
+import { NgModule } from "@angular/core";
+import { Routes } from "@angular/router";
+import { NativeScriptRouterModule } from "nativescript-angular/router";
+
+import { HeroTeamBuilderComponent } from './hero-team-builder.component';
+
+export const routes: Routes = [
+ { path: "", pathMatch: "full", component: HeroTeamBuilderComponent },
+];
+
+@NgModule({
+ imports: [NativeScriptRouterModule.forChild(routes)],
+ exports: [NativeScriptRouterModule],
+})
+export class HeroRoutingModule { }
+
+export const routedComponents = [
+ HeroTeamBuilderComponent,
+];
diff --git a/e2e/animation-examples/app/hero/hero-team-builder.component.html b/e2e/animation-examples/app/hero/hero-team-builder.component.html
new file mode 100644
index 000000000..843813e0f
--- /dev/null
+++ b/e2e/animation-examples/app/hero/hero-team-builder.component.html
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/e2e/animation-examples/app/hero/hero-team-builder.component.ts b/e2e/animation-examples/app/hero/hero-team-builder.component.ts
new file mode 100644
index 000000000..cb029a15b
--- /dev/null
+++ b/e2e/animation-examples/app/hero/hero-team-builder.component.ts
@@ -0,0 +1,13 @@
+import { Component } from "@angular/core";
+
+import { Heroes } from "./hero.service";
+
+@Component({
+ moduleId: module.id,
+ selector: "hero-team-builder",
+ templateUrl: "./hero-team-builder.component.html",
+ providers: [Heroes]
+})
+export class HeroTeamBuilderComponent {
+ constructor(public heroes: Heroes) { }
+}
diff --git a/e2e/animation-examples/app/hero/hero.module.ts b/e2e/animation-examples/app/hero/hero.module.ts
new file mode 100644
index 000000000..6fefbb212
--- /dev/null
+++ b/e2e/animation-examples/app/hero/hero.module.ts
@@ -0,0 +1,31 @@
+import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
+import { NativeScriptCommonModule } from "nativescript-angular/common";
+
+import { HeroRoutingModule, routedComponents } from "./hero-routing.module";
+
+import { HeroListBasicComponent } from './hero-list-basic.component';
+import { HeroListInlineStylesComponent } from './hero-list-inline-styles.component';
+import { HeroListEnterLeaveComponent } from './hero-list-enter-leave.component';
+import { HeroListEnterLeaveStatesComponent } from './hero-list-enter-leave-states.component';
+import { HeroListCombinedTransitionsComponent } from './hero-list-combined-transitions.component';
+import { HeroListTwowayComponent } from './hero-list-twoway.component';
+import { HeroListTimingsComponent } from './hero-list-timings.component';
+
+@NgModule({
+ declarations: [
+ ...routedComponents,
+ HeroListBasicComponent,
+ HeroListInlineStylesComponent,
+ HeroListEnterLeaveComponent,
+ HeroListEnterLeaveStatesComponent,
+ HeroListCombinedTransitionsComponent,
+ HeroListTwowayComponent,
+ HeroListTimingsComponent,
+ ],
+ imports: [
+ NativeScriptCommonModule,
+ HeroRoutingModule,
+ ],
+ schemas: [NO_ERRORS_SCHEMA]
+})
+export class HeroModule { }
diff --git a/e2e/animation-examples/app/hero/hero.service.ts b/e2e/animation-examples/app/hero/hero.service.ts
new file mode 100644
index 000000000..d61874cd6
--- /dev/null
+++ b/e2e/animation-examples/app/hero/hero.service.ts
@@ -0,0 +1,70 @@
+import { Injectable } from "@angular/core";
+
+class Hero {
+ constructor(
+ public name: string,
+ public state = "inactive"
+ ) { }
+
+ toggleState() {
+ this.state = (this.state === "active" ? "inactive" : "active");
+ }
+}
+
+let ALL_HEROES = [
+ "Windstorm",
+ "RubberMan",
+ "Bombasto",
+ "Magneta",
+ "Dynama",
+ "Narco",
+ "Celeritas",
+ "Dr IQ",
+ "Magma",
+ "Tornado",
+ "Mr. Nice"
+].map(name => new Hero(name));
+
+@Injectable()
+export class Heroes implements Iterable {
+
+ currentHeroes: Hero[] = [new Hero("Narco")];
+
+ [Symbol.iterator]() {
+ return makeIterator(this.currentHeroes);
+ }
+
+ addActive() {
+ let hero = ALL_HEROES[this.currentHeroes.length];
+ hero.state = "active";
+ this.currentHeroes.push(hero);
+ }
+
+ addInactive() {
+ let hero = ALL_HEROES[this.currentHeroes.length];
+ hero.state = "inactive";
+ this.currentHeroes.push(hero);
+ }
+
+ remove() {
+ if (this.currentHeroes.length) {
+ this.currentHeroes.splice(this.currentHeroes.length - 1, 1);
+ }
+ }
+
+ reset() {
+ this.currentHeroes = [];
+ }
+}
+
+function makeIterator(array) {
+ let nextIndex = 0;
+
+ return {
+ next: function() {
+ return nextIndex < array.length ?
+ { value: array[nextIndex++], done: false } :
+ { value: "empty", done: true };
+ }
+ };
+}
diff --git a/e2e/animation-examples/app/main.aot.ts b/e2e/animation-examples/app/main.aot.ts
new file mode 100644
index 000000000..98bf134fc
--- /dev/null
+++ b/e2e/animation-examples/app/main.aot.ts
@@ -0,0 +1,4 @@
+import { platformNativeScript } from "nativescript-angular/platform-static";
+import { AppModuleNgFactory } from "./app.module.ngfactory";
+
+platformNativeScript().bootstrapModuleFactory(AppModuleNgFactory);
diff --git a/e2e/animation-examples/app/main.ts b/e2e/animation-examples/app/main.ts
new file mode 100644
index 000000000..3636ef86e
--- /dev/null
+++ b/e2e/animation-examples/app/main.ts
@@ -0,0 +1,10 @@
+import { platformNativeScriptDynamic } from "nativescript-angular/platform";
+import { animationsTraceCategory } from "nativescript-angular/trace";
+import { setCategories, enable } from "trace";
+
+import { AppModule } from "./app.module";
+
+setCategories(animationsTraceCategory);
+enable();
+
+platformNativeScriptDynamic().bootstrapModule(AppModule);
diff --git a/e2e/animation-examples/app/options-default.component.ts b/e2e/animation-examples/app/options-default.component.ts
new file mode 100644
index 000000000..f7246ab3d
--- /dev/null
+++ b/e2e/animation-examples/app/options-default.component.ts
@@ -0,0 +1,77 @@
+import { Component } from '@angular/core';
+import {
+ trigger,
+ state,
+ style,
+ animate,
+ transition
+} from '@angular/animations';
+
+@Component({
+ template: `
+
+
+
+
+
+
+
+ `,
+ styles: [
+ '.enabled: { background-color: green; color: white }',
+ '.disabled: { background-color: grey; color: #777 }'
+ ],
+ animations: [
+ trigger('flyInOut', [
+ state('in', style({transform: 'translate(0)'})),
+
+ transition('void => *', [
+ style({transform: 'translate(100%)'}),
+ animate('{{ appearTime }}')
+ ], {
+ params: {
+ appearTime: '1s'
+ }
+ }),
+
+ transition('* => void', [
+ animate("{{ disappearTime }}",
+ style({transform: 'translateX(100%)'}))
+ ], {
+ params: {
+ disappearTime: '0.4s'
+ }
+ })
+ ])
+ ]
+})
+export class OptionsDefaultComponent {
+ public heroes = ["Harley Quinn", "Wonder Woman", "Joker", "Aquaman"];
+ public extraHeroes = ["Batman", "Superman", "Killer Frost", "The Flash"];
+
+ flyOut(hero) {
+ const heroIndex = this.heroes.indexOf(hero);
+
+ this.extraHeroes.push(hero);
+ this.heroes.splice(heroIndex, 1);
+ }
+
+ addNew() {
+ const newHero = this.extraHeroes.pop();
+ this.heroes.push(newHero);
+ }
+}
diff --git a/e2e/animation-examples/app/options.component.ts b/e2e/animation-examples/app/options.component.ts
new file mode 100644
index 000000000..8f86d8613
--- /dev/null
+++ b/e2e/animation-examples/app/options.component.ts
@@ -0,0 +1,44 @@
+import { trigger, transition, style, animate } from "@angular/animations";
+import { Component } from "@angular/core";
+
+@Component({
+ template: `
+
+
+
+
+
+ `,
+ animations: [
+ trigger("someCoolAnimation", [
+ transition(":leave", [
+ animate("{{ time }}", style({ opacity: "{{ minOpacity }}" }))
+ ]),
+ ]),
+ ],
+})
+export class OptionsComponent {
+ public animationData = {
+ value: "active",
+ params: {
+ time: "0.5s",
+ minOpacity: 0,
+ }
+ };
+
+ fadeOut() {
+ this.animationData.value = "inactive";
+ }
+}
+
diff --git a/e2e/animation-examples/app/package.json b/e2e/animation-examples/app/package.json
new file mode 100644
index 000000000..d5356c0cc
--- /dev/null
+++ b/e2e/animation-examples/app/package.json
@@ -0,0 +1,5 @@
+{
+ "main": "main.js",
+ "name": "nativescript-template-ng-tutorial",
+ "version": "3.1.0"
+}
\ No newline at end of file
diff --git a/e2e/animation-examples/app/query-stagger.component.ts b/e2e/animation-examples/app/query-stagger.component.ts
new file mode 100644
index 000000000..6047d1ecf
--- /dev/null
+++ b/e2e/animation-examples/app/query-stagger.component.ts
@@ -0,0 +1,50 @@
+import {
+ animate,
+ query,
+ stagger,
+ style,
+ transition,
+ trigger,
+} from "@angular/animations";
+import { Component } from "@angular/core";
+
+@Component({
+ moduleId: module.id,
+ animations: [
+ trigger("listAnimation", [
+ transition("* => *", [
+ // this hides everything right away
+ query(":enter", style({ opacity: 0 })),
+
+ // starts to animate things with a stagger in between
+ query(":enter", stagger(200, [
+ animate(1000, style({ opacity: 1 }))
+ ]), { delay: 200 })
+ ])
+ ])
+ ],
+ template: `
+
+
+
+
+
+
+
+ `
+})
+export class QueryStaggerComponent {
+ public items = [
+ "Dramatic",
+ "Entrance",
+ "With",
+ "Really",
+ "Cool",
+ "Stagger",
+ ];
+
+ add() {
+ const newItem = `Item ${this.items.length}`;
+ this.items.push(newItem);
+ }
+}
diff --git a/e2e/animation-examples/app/selector-all.component.ts b/e2e/animation-examples/app/selector-all.component.ts
new file mode 100644
index 000000000..ea2fb2b26
--- /dev/null
+++ b/e2e/animation-examples/app/selector-all.component.ts
@@ -0,0 +1,66 @@
+import {
+ animate,
+ query,
+ style,
+ transition,
+ trigger,
+} from "@angular/animations";
+import { Component } from "@angular/core";
+
+@Component({
+ moduleId: module.id,
+ animations: [
+ trigger("listAnimation", [
+
+ transition(":enter", [
+ query("*", [
+ style({ opacity: 0 }),
+ animate(1000, style({ opacity: 1 }))
+ ])
+ ]),
+
+ transition(":leave", [
+ query("*", [
+ style({ opacity: 1 }),
+ animate(1000, style({ opacity: 0 }))
+ ])
+
+ ])
+ ]),
+ ],
+ template: `
+
+
+
+
+
+
+
+
+
+
+
+
+
+ `
+})
+export class SelectorAllComponent {
+ public items = [
+ "first",
+ "second",
+ ];
+
+ add() {
+ const newItem = `Item ${this.items.length}`;
+ this.items.push(newItem);
+ }
+
+ remove(item) {
+ const index = this.items.indexOf(item);
+ this.items.splice(index, 1)
+ }
+}
diff --git a/e2e/animation-examples/app/vendor.ts b/e2e/animation-examples/app/vendor.ts
new file mode 100644
index 000000000..fd29170f2
--- /dev/null
+++ b/e2e/animation-examples/app/vendor.ts
@@ -0,0 +1,18 @@
+// Snapshot the ~/app.css and the theme
+const application = require("application");
+require("ui/styling/style-scope");
+const appCssContext = require.context("~/", false, /^\.\/app\.(css|scss|less|sass)$/);
+global.registerWebpackModules(appCssContext);
+application.loadAppCss();
+
+require("reflect-metadata");
+require("@angular/platform-browser");
+require("@angular/core");
+require("@angular/common");
+require("@angular/forms");
+require("@angular/http");
+require("@angular/router");
+
+require("nativescript-angular/platform-static");
+require("nativescript-angular/forms");
+require("nativescript-angular/router");
diff --git a/e2e/animation-examples/e2e/helper/utils.ts b/e2e/animation-examples/e2e/helper/utils.ts
new file mode 100644
index 000000000..76b2fe75e
--- /dev/null
+++ b/e2e/animation-examples/e2e/helper/utils.ts
@@ -0,0 +1,18 @@
+import { UIElement } from "nativescript-dev-appium";
+
+export const sort = async (array: Array) => {
+ var done = false;
+ while (!done) {
+ done = true;
+ for (var i = 1; i < array.length; i++) {
+ if ((await (await array[i - 1]).location()).y > (await (await array[i]).location()).y) {
+ done = false;
+ var tmp = array[i - 1];
+ array[i - 1] = array[i];
+ array[i] = tmp;
+ }
+ }
+ }
+
+ return array;
+}
\ No newline at end of file
diff --git a/e2e/animation-examples/e2e/pages/animate-child-page.ts b/e2e/animation-examples/e2e/pages/animate-child-page.ts
new file mode 100644
index 000000000..05e8810d3
--- /dev/null
+++ b/e2e/animation-examples/e2e/pages/animate-child-page.ts
@@ -0,0 +1,40 @@
+import { AppiumDriver, UIElement } from "nativescript-dev-appium";
+import { assert } from "chai";
+import { BasePage } from "./base-page";
+
+export class AnimateChildPage extends BasePage {
+ private _parent: UIElement;
+ private _child: UIElement;
+
+ constructor(_driver: AppiumDriver) {
+ super(_driver)
+ }
+
+ async enterExample() {
+ const exampleBtn = await this._driver.findElementByAccessibilityId("animate-child");
+ await exampleBtn.click();
+ }
+
+ async waitParentToAppear() {
+ this._parent = (await this.awaitItemToAppear("parent")).element;
+ const startTime = Date.now();
+ while ((await this._parent.location()).x !== 0 && Date.now() - startTime < 3000) { }
+ }
+
+ async waitChildToAppear() {
+ this._child = (await this.awaitItemToAppear("child")).element;
+ const startTime = Date.now();
+ while ((await this._child.location()).y !== (await this._parent.location()).y && Date.now() - startTime < 3000) { }
+ }
+
+ async assertContainersPosition() {
+ assert.isTrue((await this._parent.location()).x === 0);
+ assert.isTrue((await this._parent.location()).y === (await this._child.location()).y);
+ }
+
+ private async awaitItemToAppear(item: string, wait: number = 3000): Promise<{ isVisible: boolean, element: UIElement }> {
+ const findBtn = async () => { return await this._driver.findElementByXPathIfExists(this._elementHelper.findByTextLocator("*", item, true)); };
+
+ return await this.waitElementTo(findBtn, true, wait);;
+ }
+}
\ No newline at end of file
diff --git a/e2e/animation-examples/e2e/pages/animation-builder-page.ts b/e2e/animation-examples/e2e/pages/animation-builder-page.ts
new file mode 100644
index 000000000..5c6349a7d
--- /dev/null
+++ b/e2e/animation-examples/e2e/pages/animation-builder-page.ts
@@ -0,0 +1,25 @@
+import { AppiumDriver, UIElement } from "nativescript-dev-appium";
+import { BasePage } from "./base-page";
+
+export class AnimationBuilderPage extends BasePage {
+ static tapToDisappear: string = "tapToDisappear";
+
+ constructor(driver: AppiumDriver) {
+ super(driver);
+ }
+
+ async enterExample() {
+ const exampleBtn = await this._driver.findElementByAutomationText("builder");
+ await exampleBtn.click();
+ }
+
+ async executeAnimation() {
+ const btnTapToDisappear = await this._driver.waitForElement(AnimationBuilderPage.tapToDisappear);
+ console.log("Btn tap to disappear should disappear");
+ await btnTapToDisappear.click();
+ }
+
+ async waitElementToHide(wait: number) {
+ return this.waitElementTo(() => this._driver.waitForElement(AnimationBuilderPage.tapToDisappear), false, wait);
+ }
+}
\ No newline at end of file
diff --git a/e2e/animation-examples/e2e/pages/animation-with-options-page.ts b/e2e/animation-examples/e2e/pages/animation-with-options-page.ts
new file mode 100644
index 000000000..e360e38b4
--- /dev/null
+++ b/e2e/animation-examples/e2e/pages/animation-with-options-page.ts
@@ -0,0 +1,41 @@
+import { AppiumDriver, Point, UIElement } from "nativescript-dev-appium";
+import { assert } from "chai";
+import { BasePage } from "./base-page";
+
+export class AnimationWithOptionsPage extends BasePage {
+ private initialPositionOfAnimatedBtn: Point
+
+ constructor(driver: AppiumDriver) {
+ super(driver);
+ }
+
+ async enterExample() {
+ const exampleBtn = await this._driver.findElementByAccessibilityId("options");
+ await exampleBtn.click();
+ this.initialPositionOfAnimatedBtn = await (await this.animatedBtn).location();
+ }
+
+ get btnToggleAnimation() {
+ return this._driver.findElementByAccessibilityId("toggleAnimation");
+ }
+
+ get animatedBtn() {
+ this._driver.findElementsByAccessibilityId("animatedBtn", 10000);
+ return this._driver.findElementByAccessibilityIdIfExists("animatedBtn");
+ }
+
+ async toggleAnimation() {
+ const btnTapToDisappear = await this.btnToggleAnimation;
+ await btnTapToDisappear.click();
+ }
+
+ async waitElementToHide() {
+ return this.waitElementTo(() => this.animatedBtn, false, 10000);
+ }
+
+ async assertPositionOfToggleAnimationBtn() {
+ this.waitElementTo(() => this.btnToggleAnimation, true, 5000);
+ const point: Point = await (await this.btnToggleAnimation).location();
+ assert.isTrue(point.y === this.initialPositionOfAnimatedBtn.y);
+ }
+}
\ No newline at end of file
diff --git a/e2e/animation-examples/e2e/pages/animations-with-default-options-page.ts b/e2e/animation-examples/e2e/pages/animations-with-default-options-page.ts
new file mode 100644
index 000000000..f3a13e351
--- /dev/null
+++ b/e2e/animation-examples/e2e/pages/animations-with-default-options-page.ts
@@ -0,0 +1,71 @@
+import { AppiumDriver, UIElement } from "nativescript-dev-appium";
+import { assert } from "chai";
+import { sort } from "../helper/utils";
+import { BasePage } from "./base-page";
+
+export class AnimationsWithDefaultOptionsPage extends BasePage {
+ private _btnAddItem: UIElement;
+ private _children: Array;
+ constructor(driver: AppiumDriver) {
+ super(driver);
+ }
+
+ async enterExample() {
+ const exampleBtn = await this._driver.findElementByAccessibilityId("options-default");
+ await exampleBtn.click();
+ this._children = await this.getChildren();
+ }
+
+ async addItem() {
+ this._btnAddItem = await this._driver.findElementByAccessibilityId("add");
+
+ await this._btnAddItem.click();
+ }
+
+ async clickOnItem(item: string) {
+ const btn = await this.getItem(item);
+
+ await btn.click();
+ }
+
+ private getItem(item) {
+ return this._driver.findElementByXPathIfExists(`${this._elementHelper.getXPathByTextAtributes("//*", "itemsContainer", true)}${this._elementHelper.getXPathByTextAtributes("//*", item, false)}`);
+ }
+
+ async awaitItemToDissapear(item: string, wait: number = 3000) {
+ const startTime = Date.now();
+ let btn = await this.getItem(item);
+ while (btn && await btn.isDisplayed() && Date.now() - startTime <= wait) {
+ btn = await this.getItem(item);
+ }
+
+ this._children = await this.getChildren();
+ }
+
+ async awaitItemToAppear(item: string, wait: number = 3000) {
+ const startTime = Date.now();
+ let btn = await this.getItem(item);
+ while (!btn && !(btn && !(await btn.isDisplayed())) && Date.now() - startTime <= wait) {
+ btn = await this.getItem(item);
+ }
+
+ this._children = await this.getChildren();
+ }
+
+ async getChildren() {
+ const children: Array = await this._driver.findElementsByXPath(`${this._elementHelper.getXPathByTextAtributes("//*", "itemsContainer", true)}/*`);
+ const orderedList: Array = await sort(children);
+
+ return orderedList;
+ }
+
+ async assertItemPosition(text: string, itemIndex: number, expctedElementsCount: number) {
+ const children = this._children;
+
+ assert.isTrue(children.length === expctedElementsCount, `Expected items count: ${expctedElementsCount} is not as actual: ${children.length}`);
+ const element = children[itemIndex];
+ console.log("Element text: ", await element.text());
+ const currentElementText = await element.text();
+ assert.isTrue(currentElementText.toLowerCase() === text.toLowerCase(), `Expected element text: ${text} at position: ${itemIndex} is not as actual: ${currentElementText}!`);
+ }
+}
\ No newline at end of file
diff --git a/e2e/animation-examples/e2e/pages/base-page.ts b/e2e/animation-examples/e2e/pages/base-page.ts
new file mode 100644
index 000000000..5fe48dba3
--- /dev/null
+++ b/e2e/animation-examples/e2e/pages/base-page.ts
@@ -0,0 +1,29 @@
+import { AppiumDriver, ElementHelper, UIElement } from "nativescript-dev-appium";
+
+export class BasePage {
+ protected _elementHelper: ElementHelper;
+
+ constructor(protected _driver: AppiumDriver) {
+ this._elementHelper = new ElementHelper(this._driver.nsCapabilities);
+ }
+
+ async waitElementTo(element: () => Promise, shouldBeVisible: boolean, wait: number) {
+ const start = Date.now();
+ let btn = await element();
+ while ((await this.isBtnDisplayed(btn)) !== shouldBeVisible && Date.now() - start <= wait) {
+ btn = await element();
+ }
+
+ return { isVisible: await this.isBtnDisplayed(btn), element: btn };
+ }
+
+ async isBtnDisplayed(element: UIElement) {
+ let btn: UIElement = await element;
+ let isBtnDisplayed = false
+ try {
+ isBtnDisplayed = btn ? await btn.isDisplayed() : false;
+ } catch (error) { }
+
+ return isBtnDisplayed;
+ }
+}
\ No newline at end of file
diff --git a/e2e/animation-examples/e2e/pages/extarnal-animation-page.ts b/e2e/animation-examples/e2e/pages/extarnal-animation-page.ts
new file mode 100644
index 000000000..96eeda94b
--- /dev/null
+++ b/e2e/animation-examples/e2e/pages/extarnal-animation-page.ts
@@ -0,0 +1,26 @@
+import { AppiumDriver, UIElement } from "nativescript-dev-appium";
+import { BasePage } from "./base-page";
+
+export class ExternalAnimationPage extends BasePage {
+ constructor(driver: AppiumDriver) {
+ super(driver);
+ }
+
+ async enterExample() {
+ const exampleBtn = await this._driver.waitForElement("external");
+ await exampleBtn.click();
+ }
+
+ async toggleAnimation() {
+ const btnTapToDisappear = await this._driver.waitForElement("toggleAnimation");
+ await btnTapToDisappear.click();
+ }
+
+ animatedBtn() {
+ return this._driver.waitForElement("animatedBtn");
+ }
+
+ async waitElementToToggleVisibilityTo(shouldBeVisible: boolean) {
+ return this.waitElementTo(() => this.animatedBtn(), shouldBeVisible, 10000);
+ }
+}
\ No newline at end of file
diff --git a/e2e/animation-examples/e2e/pages/fade-in-out-page.ts b/e2e/animation-examples/e2e/pages/fade-in-out-page.ts
new file mode 100644
index 000000000..d44c8e460
--- /dev/null
+++ b/e2e/animation-examples/e2e/pages/fade-in-out-page.ts
@@ -0,0 +1,26 @@
+import { AppiumDriver } from "nativescript-dev-appium";
+import { BasePage } from "./base-page";
+
+export class FadeInOutPage extends BasePage {
+ constructor(driver: AppiumDriver) {
+ super(driver);
+ }
+
+ async enterExample() {
+ const exampleBtn = await this._driver.findElementByAccessibilityId("fade-in-out");
+ await exampleBtn.click();
+ }
+
+ async toggleAnimation() {
+ const btnTapToDisappear = await this._driver.findElementByAccessibilityId("toggleAnimation");
+ await btnTapToDisappear.click();
+ }
+
+ animatedBtn() {
+ return this._driver.findElementByAccessibilityIdIfExists("animatedBtn");
+ }
+
+ async waitElementToToggleVisibility(shouldBeVisible: boolean) {
+ return this.waitElementTo(() => this.animatedBtn(), shouldBeVisible, 10000);
+ }
+}
\ No newline at end of file
diff --git a/e2e/animation-examples/e2e/pages/hero-page.ts b/e2e/animation-examples/e2e/pages/hero-page.ts
new file mode 100644
index 000000000..503716a3c
--- /dev/null
+++ b/e2e/animation-examples/e2e/pages/hero-page.ts
@@ -0,0 +1,34 @@
+import { AppiumDriver } from "nativescript-dev-appium";
+import { BasePage } from "./base-page";
+
+export class HeroPage extends BasePage{
+ constructor(driver: AppiumDriver) {
+ super(driver);
+ }
+
+ async enterExample() {
+ const exampleBtn = await this._driver.findElementByAccessibilityId("hero");
+ await exampleBtn.click();
+ }
+
+ public async addActive() {
+ await this.executeAction("addActive");
+ }
+
+ public async addInactive() {
+ await this.executeAction("addInactive");
+ }
+
+ public async remove() {
+ await this.executeAction("remove");
+ }
+
+ public async reset() {
+ await this.executeAction("reset");
+ }
+
+ public async executeAction(name: string) {
+ const btn = await this._driver.findElementByAccessibilityId(name);
+ await btn.click();
+ }
+}
\ No newline at end of file
diff --git a/e2e/animation-examples/e2e/pages/query-stagger-page.ts b/e2e/animation-examples/e2e/pages/query-stagger-page.ts
new file mode 100644
index 000000000..a7a20581f
--- /dev/null
+++ b/e2e/animation-examples/e2e/pages/query-stagger-page.ts
@@ -0,0 +1,42 @@
+import { AppiumDriver, UIElement, SearchOptions } from "nativescript-dev-appium";
+import { assert } from "chai";
+import { sort } from "../helper/utils";
+import { BasePage } from "./base-page";
+
+export class QueryWithStaggerPage extends BasePage {
+ private _btnAddItem: UIElement;
+ constructor(driver: AppiumDriver) {
+ super(driver);
+ }
+
+ async enterExample() {
+ const exampleBtn = await this._driver.findElementByAccessibilityId("query-stagger");
+ await exampleBtn.click();
+ }
+
+ async addItem() {
+ this._btnAddItem = await this._driver.findElementByText("ADD", SearchOptions.contains);
+
+ await this._btnAddItem.click();
+ }
+
+ async getChildren() {
+ const children: Array = await this._driver.findElementsByXPath(`${this._elementHelper.getXPathByTextAtributes("//*", "container", true)}/*`);
+ const orderedList: Array = await sort(children);
+
+ return orderedList;
+ }
+
+ async assertItemPosition(text: string, itemIndex: number, expctedElementsCount: number) {
+ const startTime = Date.now();
+ let item = await this._driver.findElementByTextIfExists(text)
+ while ((!item || !(await item.isDisplayed())) && Date.now() - startTime <= 3000) { }
+ const children = await this.getChildren();
+ assert.isTrue(children.length === expctedElementsCount);
+ const element = children[itemIndex];
+ const elementText = await element.text();
+ console.log("Element text: ", elementText);
+
+ assert.isTrue(elementText.toLowerCase() === text.toLowerCase());
+ }
+}
\ No newline at end of file
diff --git a/e2e/animation-examples/e2e/pages/selector-page.ts b/e2e/animation-examples/e2e/pages/selector-page.ts
new file mode 100644
index 000000000..97d5b99d6
--- /dev/null
+++ b/e2e/animation-examples/e2e/pages/selector-page.ts
@@ -0,0 +1,58 @@
+import { AppiumDriver, UIElement } from "nativescript-dev-appium";
+import { assert } from "chai";
+import { sort } from "../helper/utils";
+import { BasePage } from "./base-page";
+
+export class SelectorPage extends BasePage {
+ private _btnAddItem: UIElement;
+ private _itemsContainerXpath;
+ private _itemsContainerChildrenXpath;
+
+ constructor(_driver: AppiumDriver) {
+ super(_driver);
+ this._itemsContainerXpath = this._elementHelper.getXPathByTextAtributes("//*", "itemsContainer", true);
+ this._itemsContainerChildrenXpath = `${this._itemsContainerXpath}/*`
+ }
+
+ async enterExample() {
+ const exampleBtn = await this._driver.findElementByAccessibilityId("selector");
+ await exampleBtn.click();
+ }
+
+ async addItem() {
+ this._btnAddItem = await this._driver.findElementByText("add");
+ await this._btnAddItem.click();
+ }
+
+ async clickOnItem(item: string) {
+ const btn = await this._driver.findElementByXPath(this.itemXpath(item));
+
+ await btn.click();
+ }
+
+ async waitItemToToggleVisibility(item: string, visibility: boolean) {
+ return this.waitElementTo(() => this._driver.findElementByXPathIfExists(this.itemXpath(item)), visibility, 5000);
+ }
+
+ async getChildren() {
+ const children: Array = await this._driver.findElementsByXPath(this._itemsContainerChildrenXpath);
+ const orderedList: Array = await sort(children);
+
+ return orderedList;
+ }
+
+ async assertElementPossition(expctedElementsCount: number) {
+ const children = await this.getChildren();
+ assert.isTrue(children.length === expctedElementsCount)
+ for (let index = 0; index < children.length - 1; index++) {
+ const element = children[index];
+ const el = await (element.driver()).elementByXPathIfExists(this._elementHelper.getXPathByTextAtributes("//*", `Item No.${index}`, true));
+ console.log(await el.text());
+ assert.isTrue(el && el !== null);
+ }
+ }
+
+ private itemXpath(item) {
+ return `${this._itemsContainerXpath}${this._elementHelper.getXPathByTextAtributes("//*", item, false)}`;
+ }
+}
\ No newline at end of file
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api19-Default/add_active_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api19-Default/add_active_items.png
new file mode 100644
index 000000000..270d1b007
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api19-Default/add_active_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api19-Default/add_inactive_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api19-Default/add_inactive_items.png
new file mode 100644
index 000000000..7201c5550
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api19-Default/add_inactive_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api19-Default/add_remove_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api19-Default/add_remove_items.png
new file mode 100644
index 000000000..270d1b007
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api19-Default/add_remove_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api19-Default/add_reset_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api19-Default/add_reset_items.png
new file mode 100644
index 000000000..47d1bbb7e
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api19-Default/add_reset_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api21-Default/add_active_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api21-Default/add_active_items.png
new file mode 100644
index 000000000..f86544cd8
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api21-Default/add_active_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api21-Default/add_inactive_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api21-Default/add_inactive_items.png
new file mode 100644
index 000000000..4bea5e8ef
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api21-Default/add_inactive_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api21-Default/add_remove_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api21-Default/add_remove_items.png
new file mode 100644
index 000000000..f5afdfa80
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api21-Default/add_remove_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api21-Default/add_reset_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api21-Default/add_reset_items.png
new file mode 100644
index 000000000..a3976e322
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api21-Default/add_reset_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api22-Default/add_active_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api22-Default/add_active_items.png
new file mode 100644
index 000000000..7ec26ac9a
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api22-Default/add_active_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api22-Default/add_inactive_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api22-Default/add_inactive_items.png
new file mode 100644
index 000000000..48e4b3fed
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api22-Default/add_inactive_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api22-Default/add_remove_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api22-Default/add_remove_items.png
new file mode 100644
index 000000000..f5afdfa80
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api22-Default/add_remove_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api22-Default/add_reset_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api22-Default/add_reset_items.png
new file mode 100644
index 000000000..9fc42c191
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api22-Default/add_reset_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api23-Default/add_active_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api23-Default/add_active_items.png
new file mode 100644
index 000000000..b00ca72c1
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api23-Default/add_active_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api23-Default/add_inactive_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api23-Default/add_inactive_items.png
new file mode 100644
index 000000000..b5af980ac
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api23-Default/add_inactive_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api23-Default/add_remove_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api23-Default/add_remove_items.png
new file mode 100644
index 000000000..89a245a89
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api23-Default/add_remove_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api23-Default/add_reset_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api23-Default/add_reset_items.png
new file mode 100644
index 000000000..8c1a81384
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api23-Default/add_reset_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api24-Default/add_active_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api24-Default/add_active_items.png
new file mode 100644
index 000000000..ba1bc9e28
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api24-Default/add_active_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api24-Default/add_inactive_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api24-Default/add_inactive_items.png
new file mode 100644
index 000000000..48c57ada3
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api24-Default/add_inactive_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api24-Default/add_remove_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api24-Default/add_remove_items.png
new file mode 100644
index 000000000..ba1bc9e28
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api24-Default/add_remove_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api24-Default/add_reset_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api24-Default/add_reset_items.png
new file mode 100644
index 000000000..d18eb2357
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api24-Default/add_reset_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api25-Google/add_active_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api25-Google/add_active_items.png
new file mode 100644
index 000000000..24517e39a
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api25-Google/add_active_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api25-Google/add_inactive_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api25-Google/add_inactive_items.png
new file mode 100644
index 000000000..295cf5363
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api25-Google/add_inactive_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api25-Google/add_remove_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api25-Google/add_remove_items.png
new file mode 100644
index 000000000..952bf2257
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api25-Google/add_remove_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api25-Google/add_reset_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api25-Google/add_reset_items.png
new file mode 100644
index 000000000..f225ab1f9
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api25-Google/add_reset_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api26-Google/add_active_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api26-Google/add_active_items.png
new file mode 100644
index 000000000..24517e39a
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api26-Google/add_active_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api26-Google/add_inactive_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api26-Google/add_inactive_items.png
new file mode 100644
index 000000000..295cf5363
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api26-Google/add_inactive_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api26-Google/add_remove_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api26-Google/add_remove_items.png
new file mode 100644
index 000000000..952bf2257
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api26-Google/add_remove_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api26-Google/add_reset_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api26-Google/add_reset_items.png
new file mode 100644
index 000000000..f225ab1f9
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api26-Google/add_reset_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api27-Google/add_active_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api27-Google/add_active_items.png
new file mode 100644
index 000000000..24517e39a
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api27-Google/add_active_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api27-Google/add_inactive_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api27-Google/add_inactive_items.png
new file mode 100644
index 000000000..295cf5363
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api27-Google/add_inactive_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api27-Google/add_remove_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api27-Google/add_remove_items.png
new file mode 100644
index 000000000..952bf2257
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api27-Google/add_remove_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api27-Google/add_reset_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api27-Google/add_reset_items.png
new file mode 100644
index 000000000..f225ab1f9
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api27-Google/add_reset_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api28-Google/add_active_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api28-Google/add_active_items.png
new file mode 100644
index 000000000..71cb18b48
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api28-Google/add_active_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api28-Google/add_inactive_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api28-Google/add_inactive_items.png
new file mode 100644
index 000000000..062711ac9
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api28-Google/add_inactive_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api28-Google/add_remove_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api28-Google/add_remove_items.png
new file mode 100644
index 000000000..bce44e009
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api28-Google/add_remove_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api28-Google/add_reset_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api28-Google/add_reset_items.png
new file mode 100644
index 000000000..df21f8865
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/Emulator-Api28-Google/add_reset_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 110/add_active_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 110/add_active_items.png
new file mode 100644
index 000000000..ecdc5a3ce
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 110/add_active_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 110/add_inactive_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 110/add_inactive_items.png
new file mode 100644
index 000000000..3797ea51d
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 110/add_inactive_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 110/add_remove_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 110/add_remove_items.png
new file mode 100644
index 000000000..ecdc5a3ce
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 110/add_remove_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 110/add_reset_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 110/add_reset_items.png
new file mode 100644
index 000000000..650669e53
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 7 110/add_reset_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 8/add_active_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 8/add_active_items.png
new file mode 100644
index 000000000..421bfc51a
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 8/add_active_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 8/add_inactive_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 8/add_inactive_items.png
new file mode 100644
index 000000000..b83c77259
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 8/add_inactive_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 8/add_remove_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 8/add_remove_items.png
new file mode 100644
index 000000000..33116d0f1
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 8/add_remove_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 8/add_reset_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 8/add_reset_items.png
new file mode 100644
index 000000000..0a788d779
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone 8/add_reset_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 110/add_active_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 110/add_active_items.png
new file mode 100644
index 000000000..fae72a389
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 110/add_active_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 110/add_inactive_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 110/add_inactive_items.png
new file mode 100644
index 000000000..39fbf2243
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 110/add_inactive_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 110/add_remove_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 110/add_remove_items.png
new file mode 100644
index 000000000..fae72a389
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 110/add_remove_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 110/add_reset_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 110/add_reset_items.png
new file mode 100644
index 000000000..6f35565ae
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 110/add_reset_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 12/add_active_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 12/add_active_items.png
new file mode 100644
index 000000000..2abe37a94
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 12/add_active_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 12/add_inactive_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 12/add_inactive_items.png
new file mode 100644
index 000000000..69c569cd4
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 12/add_inactive_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 12/add_remove_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 12/add_remove_items.png
new file mode 100644
index 000000000..cabf56466
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 12/add_remove_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 12/add_reset_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 12/add_reset_items.png
new file mode 100644
index 000000000..034b4696d
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X 12/add_reset_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone XR 12/add_active_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone XR 12/add_active_items.png
new file mode 100644
index 000000000..b2576fe65
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone XR 12/add_active_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone XR 12/add_inactive_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone XR 12/add_inactive_items.png
new file mode 100644
index 000000000..7d5881652
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone XR 12/add_inactive_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone XR 12/add_remove_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone XR 12/add_remove_items.png
new file mode 100644
index 000000000..0a9a802d3
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone XR 12/add_remove_items.png differ
diff --git a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone XR 12/add_reset_items.png b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone XR 12/add_reset_items.png
new file mode 100644
index 000000000..ae2bc14bb
Binary files /dev/null and b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone XR 12/add_reset_items.png differ
diff --git "a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X\312\200/add_active_items.png" "b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X\312\200/add_active_items.png"
new file mode 100644
index 000000000..b2576fe65
Binary files /dev/null and "b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X\312\200/add_active_items.png" differ
diff --git "a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X\312\200/add_inactive_items.png" "b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X\312\200/add_inactive_items.png"
new file mode 100644
index 000000000..7d5881652
Binary files /dev/null and "b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X\312\200/add_inactive_items.png" differ
diff --git "a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X\312\200/add_remove_items.png" "b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X\312\200/add_remove_items.png"
new file mode 100644
index 000000000..0a9a802d3
Binary files /dev/null and "b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X\312\200/add_remove_items.png" differ
diff --git "a/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X\312\200/add_reset_items.png" "b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X\312\200/add_reset_items.png"
new file mode 100644
index 000000000..ae2bc14bb
Binary files /dev/null and "b/e2e/animation-examples/e2e/resources/images/ng4animations/iPhone X\312\200/add_reset_items.png" differ
diff --git a/e2e/animation-examples/e2e/setup.ts b/e2e/animation-examples/e2e/setup.ts
new file mode 100644
index 000000000..e7143ae78
--- /dev/null
+++ b/e2e/animation-examples/e2e/setup.ts
@@ -0,0 +1,18 @@
+import { startServer, stopServer, ITestReporter, nsCapabilities, LogImageType } from "nativescript-dev-appium";
+const addContext = require('mochawesome/addContext');
+
+const testReporterContext = {};
+testReporterContext.name = "mochawesome";
+testReporterContext.reportDir = "mochawesome-report";
+testReporterContext.log = addContext;
+testReporterContext.logImageTypes = [LogImageType.screenshots, LogImageType.everyImage];
+nsCapabilities.testReporter = testReporterContext;
+
+before("start server", async function () {
+ nsCapabilities.testReporter.context = this;
+ await startServer();
+});
+
+after("stop server", async function () {
+ await stopServer();
+});
diff --git a/e2e/animation-examples/e2e/smoke.e2e-spec.ts b/e2e/animation-examples/e2e/smoke.e2e-spec.ts
new file mode 100644
index 000000000..ce345059f
--- /dev/null
+++ b/e2e/animation-examples/e2e/smoke.e2e-spec.ts
@@ -0,0 +1,147 @@
+import { AppiumDriver, createDriver, nsCapabilities } from "nativescript-dev-appium";
+import { assert } from "chai";
+import { AnimationBuilderPage } from "./pages/animation-builder-page";
+import { ExternalAnimationPage } from "./pages/extarnal-animation-page";
+import { SelectorPage } from "./pages/selector-page";
+import { QueryWithStaggerPage } from "./pages/query-stagger-page";
+import { FadeInOutPage } from "./pages/fade-in-out-page";
+import { AnimationWithOptionsPage } from "./pages/animation-with-options-page";
+import { AnimationsWithDefaultOptionsPage } from "./pages/animations-with-default-options-page";
+import { AnimateChildPage } from "./pages/animate-child-page";
+import { HeroPage } from "./pages/hero-page";
+
+describe("smoke-tests", async function () {
+ let driver: AppiumDriver;
+
+ before(async function () {
+ nsCapabilities.testReporter.context = this;
+ driver = await createDriver();
+ });
+
+ afterEach(async function () {
+ if (this.currentTest.state === "failed") {
+ await driver.logTestArtifacts(this.currentTest.title);
+ }
+ try {
+ await driver.navBack();
+ } catch (error) {
+ await driver.logTestArtifacts(`${this.currentTest.title}_navBack_fail`);
+ }
+ });
+
+ it("animation builder - btn should disappear", async function () {
+ const animationBuilder = new AnimationBuilderPage(driver);
+ await animationBuilder.enterExample();
+ await animationBuilder.executeAnimation();
+ const result = await animationBuilder.waitElementToHide(driver.defaultWaitTime);
+ assert.isFalse(!result || result.isVisible, "The btn should disappear");
+ });
+
+ it("external animation - visibility", async function () {
+ this.retries(1);
+ const externalAnimationPage = new ExternalAnimationPage(driver);
+ await externalAnimationPage.enterExample();
+ await externalAnimationPage.toggleAnimation();
+ let result = await externalAnimationPage.waitElementToToggleVisibilityTo(false);
+ assert.isFalse(result.isVisible, "The button should disappear!");
+
+ await externalAnimationPage.toggleAnimation();
+ result = await externalAnimationPage.waitElementToToggleVisibilityTo(true);
+ assert.isTrue(result.isVisible, "The button should appear!");
+ });
+
+ it("selector", async function () {
+ const selectorPage = new SelectorPage(driver);
+ await selectorPage.enterExample();
+ await selectorPage.addItem();
+ await selectorPage.waitItemToToggleVisibility("Item No.2", true);
+ await selectorPage.assertElementPossition(4);
+
+ await selectorPage.clickOnItem("second");
+ await selectorPage.waitItemToToggleVisibility("second", false);
+ await selectorPage.assertElementPossition(3);
+ });
+
+ it("querry with stagger", async function () {
+ const queryWithStaggerPage = new QueryWithStaggerPage(driver);
+ await queryWithStaggerPage.enterExample();
+ await queryWithStaggerPage.addItem();
+ await queryWithStaggerPage.assertItemPosition("Item 6", 6, 7);
+ });
+
+ it("fade in - out", async function () {
+ this.retries(1);
+ const fadeInOutPage = new FadeInOutPage(driver);
+ await fadeInOutPage.enterExample();
+ await fadeInOutPage.toggleAnimation();
+ let result = await fadeInOutPage.waitElementToToggleVisibility(false);
+ assert.isFalse(result.isVisible, "The button should disappear!");
+
+ await fadeInOutPage.toggleAnimation();
+ result = await fadeInOutPage.waitElementToToggleVisibility(true);
+ assert.isTrue(result.isVisible, "The button should appear!");
+ });
+
+ it("animation with options", async function () {
+ const animationWithOptionsPage = new AnimationWithOptionsPage(driver);
+ await animationWithOptionsPage.enterExample();
+ await animationWithOptionsPage.toggleAnimation();
+ const result = await animationWithOptionsPage.waitElementToHide();
+ assert.isFalse(result.isVisible, "The button should disappear!");
+
+ await animationWithOptionsPage.assertPositionOfToggleAnimationBtn();
+ });
+
+ it("animation with default options", async function () {
+ const animationWithOptionsPage = new AnimationsWithDefaultOptionsPage(driver);
+ await animationWithOptionsPage.enterExample();
+ let examplesCount = 5;
+ await animationWithOptionsPage.assertItemPosition("Harley Quinn", 1, examplesCount);
+ await animationWithOptionsPage.assertItemPosition("Wonder Woman", 2, examplesCount);
+ await animationWithOptionsPage.assertItemPosition("Joker", 3, examplesCount);
+ await animationWithOptionsPage.assertItemPosition("Aquaman", 4, examplesCount);
+
+ await animationWithOptionsPage.clickOnItem("Harley Quinn");
+ examplesCount--;
+ await animationWithOptionsPage.awaitItemToDissapear("Harley Quinn");
+ await animationWithOptionsPage.assertItemPosition("Wonder Woman", 1, examplesCount);
+ await animationWithOptionsPage.assertItemPosition("Joker", 2, examplesCount);
+ await animationWithOptionsPage.assertItemPosition("Aquaman", 3, examplesCount);
+
+ await animationWithOptionsPage.addItem();
+ examplesCount++;
+ await animationWithOptionsPage.awaitItemToAppear("Harley Quinn");
+ await animationWithOptionsPage.assertItemPosition("Wonder Woman", 1, examplesCount);
+ await animationWithOptionsPage.assertItemPosition("Joker", 2, examplesCount);
+ await animationWithOptionsPage.assertItemPosition("Aquaman", 3, examplesCount);
+ await animationWithOptionsPage.assertItemPosition("Harley Quinn", 4, examplesCount);
+ });
+
+ it("animate child", async function () {
+ this.retries(1);
+ const animateChildPage = new AnimateChildPage(driver);
+ await animateChildPage.enterExample();
+ await animateChildPage.waitParentToAppear();
+ await animateChildPage.waitChildToAppear();
+ await animateChildPage.assertContainersPosition();
+ });
+
+ it("angular docs", async function () {
+ const heroPage = new HeroPage(driver);
+ await heroPage.enterExample();
+ await heroPage.addActive();
+ let result = await driver.compareScreen("add_active_items", 5, 0.01);
+
+ await heroPage.addInactive();
+ result = await driver.compareScreen("add_inactive_items", 5, 0.01) && result;
+
+ await heroPage.remove();
+ result = await driver.compareScreen("add_remove_items", 5, 0.01) && result;
+
+ await heroPage.reset();
+ result = await driver.compareScreen("add_reset_items", 5, 0.01) && result;
+
+ assert.isTrue(result, "Image verification failed!");
+
+ });
+});
\ No newline at end of file
diff --git a/e2e/animation-examples/e2e/tsconfig.json b/e2e/animation-examples/e2e/tsconfig.json
new file mode 100644
index 000000000..6517ca58d
--- /dev/null
+++ b/e2e/animation-examples/e2e/tsconfig.json
@@ -0,0 +1,19 @@
+{
+ "compilerOptions": {
+ "module": "commonjs",
+ "target": "es6",
+ "experimentalDecorators": true,
+ "emitDecoratorMetadata": true,
+ "importHelpers": false,
+ "sourceMap": true,
+ "types": [
+ "node",
+ "mocha",
+ "chai"
+ ],
+ "lib": [
+ "es2015",
+ "dom"
+ ]
+ }
+}
\ No newline at end of file
diff --git a/e2e/animation-examples/package.json b/e2e/animation-examples/package.json
new file mode 100644
index 000000000..8ed8f99be
--- /dev/null
+++ b/e2e/animation-examples/package.json
@@ -0,0 +1,58 @@
+{
+ "description": "NativeScript Application",
+ "license": "SEE LICENSE IN ",
+ "readme": "NativeScript Application",
+ "repository": "",
+ "nativescript": {
+ "id": "org.nativescript.ng4animations",
+ "tns-ios": {
+ "version": "latest"
+ },
+ "tns-android": {
+ "version": "5.4.0-2019-05-02-235338-05"
+ }
+ },
+ "dependencies": {
+ "@angular/animations": "~7.2.0",
+ "@angular/common": "~7.2.0",
+ "@angular/compiler": "~7.2.0",
+ "@angular/core": "~7.2.0",
+ "@angular/forms": "~7.2.0",
+ "@angular/http": "~7.2.0",
+ "@angular/platform-browser": "~7.2.0",
+ "@angular/platform-browser-dynamic": "~7.2.0",
+ "@angular/router": "~7.2.0",
+ "nativescript-angular": "^7.2.4-next-2019-05-06-201428-01",
+ "nativescript-theme-core": "~1.0.2",
+ "reflect-metadata": "~0.1.8",
+ "rxjs": "^6.3.3",
+ "tns-core-modules": "^5.4.0-next-2019-05-01-141636-02",
+ "zone.js": "^0.8.4"
+ },
+ "devDependencies": {
+ "@angular/compiler-cli": "~7.2.0",
+ "@ngtools/webpack": "~7.2.0",
+ "@types/chai": "~4.1.7",
+ "@types/mocha": "~5.2.5",
+ "@types/node": "~10.12.18",
+ "babel-traverse": "6.25.0",
+ "babel-types": "6.25.0",
+ "babylon": "6.17.4",
+ "lazy": "1.0.11",
+ "mocha": "~5.2.0",
+ "mochawesome": "~3.1.2",
+ "nativescript-css-loader": "~0.26.0",
+ "nativescript-dev-appium": "next",
+ "nativescript-dev-typescript": "^0.9.1-next-2019-03-12-162713-03",
+ "nativescript-dev-webpack": "^0.22.0-next-2019-04-17-111030-01",
+ "typescript": "~3.1.1"
+ },
+ "scripts": {
+ "u": "update-ns-webpack",
+ "e2e": "tsc -p e2e && mocha --opts ../config/mocha.opts --recursive e2e --appiumCapsLocation ../config/appium.capabilities.json",
+ "e2e-watch": "tsc -p e2e --watch",
+ "update-app-ng-deps": "update-app-ng-deps",
+ "ns-verify-bundle": "ns-verify-bundle",
+ "update-ns-webpack": "update-ns-webpack"
+ }
+}
diff --git a/e2e/animation-examples/tsconfig.json b/e2e/animation-examples/tsconfig.json
new file mode 100644
index 000000000..a4ddb2d04
--- /dev/null
+++ b/e2e/animation-examples/tsconfig.json
@@ -0,0 +1,30 @@
+{
+ "compilerOptions": {
+ "module": "commonjs",
+ "target": "es5",
+ "experimentalDecorators": true,
+ "emitDecoratorMetadata": true,
+ "noEmitHelpers": true,
+ "noEmitOnError": true,
+ "lib": [
+ "es6",
+ "dom",
+ "es2015.iterable"
+ ],
+ "baseUrl": ".",
+ "paths": {
+ "*": [
+ "./node_modules/tns-core-modules/*",
+ "./node_modules/*"
+ ],
+ "~/*": [
+ "app/*"
+ ]
+ }
+ },
+ "exclude": [
+ "node_modules",
+ "platforms",
+ "e2e"
+ ]
+}
\ No newline at end of file
diff --git a/e2e/animation-examples/tsconfig.tns.json b/e2e/animation-examples/tsconfig.tns.json
new file mode 100644
index 000000000..95f2ecee0
--- /dev/null
+++ b/e2e/animation-examples/tsconfig.tns.json
@@ -0,0 +1,7 @@
+{
+ "extends": "./tsconfig",
+ "compilerOptions": {
+ "module": "es2015",
+ "moduleResolution": "node"
+ }
+}
diff --git a/e2e/routable-animations/.gitignore b/e2e/routable-animations/.gitignore
new file mode 100644
index 000000000..d610480ff
--- /dev/null
+++ b/e2e/routable-animations/.gitignore
@@ -0,0 +1,16 @@
+**/.DS_Store
+
+hooks
+node_modules
+platforms
+
+app/**/*.js
+e2e/**/*.js
+e2e/**/*.map
+e2e/reports/
+test-results.xml
+
+# Webpack files
+tsconfig.esm.json
+webpack.config.js
+
diff --git a/e2e/routable-animations/.vscode/launch.json b/e2e/routable-animations/.vscode/launch.json
new file mode 100644
index 000000000..0a26473cc
--- /dev/null
+++ b/e2e/routable-animations/.vscode/launch.json
@@ -0,0 +1,60 @@
+{
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "type": "node",
+ "request": "launch",
+ "name": "Mocha Tests",
+ "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
+ "args": [
+ "-u",
+ "tdd",
+ "--timeout",
+ "999999",
+ "--colors",
+ "--opts", "./e2e/config/mocha.opts",
+ "--runType", "sim.iPhone8",
+ "--attachToDebug",
+ "--port",
+ "8300"
+ ],
+ "internalConsoleOptions": "openOnSessionStart"
+ },
+ {
+ "name": "Launch on iOS",
+ "type": "nativescript",
+ "request": "launch",
+ "platform": "ios",
+ "appRoot": "${workspaceRoot}",
+ "sourceMaps": true,
+ "watch": true
+ },
+ {
+ "name": "Attach on iOS",
+ "type": "nativescript",
+ "request": "attach",
+ "platform": "ios",
+ "appRoot": "${workspaceRoot}",
+ "sourceMaps": true,
+ "watch": false
+ },
+ {
+ "name": "Launch on Android",
+ "type": "nativescript",
+ "request": "launch",
+ "platform": "android",
+ "appRoot": "${workspaceRoot}",
+ "sourceMaps": true,
+ "watch": true
+ },
+ {
+ "name": "Attach on Android",
+ "type": "nativescript",
+ "request": "attach",
+ "platform": "android",
+ "appRoot": "${workspaceRoot}",
+ "sourceMaps": true,
+ "watch": false
+ }
+ ]
+}
\ No newline at end of file
diff --git a/e2e/routable-animations/README.md b/e2e/routable-animations/README.md
new file mode 100644
index 000000000..a52a3d621
--- /dev/null
+++ b/e2e/routable-animations/README.md
@@ -0,0 +1,3 @@
+# NativeScript Routable Animations
+
+A NativeScript Angular applications showcasing [angular routable animations](https://www.yearofmoo.com/2017/06/new-wave-of-animation-features.html#routable-animations).
\ No newline at end of file
diff --git a/e2e/routable-animations/app/App_Resources/Android/AndroidManifest.xml b/e2e/routable-animations/app/App_Resources/Android/AndroidManifest.xml
new file mode 100644
index 000000000..9db832151
--- /dev/null
+++ b/e2e/routable-animations/app/App_Resources/Android/AndroidManifest.xml
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/e2e/routable-animations/app/App_Resources/Android/app.gradle b/e2e/routable-animations/app/App_Resources/Android/app.gradle
new file mode 100644
index 000000000..c714809c9
--- /dev/null
+++ b/e2e/routable-animations/app/App_Resources/Android/app.gradle
@@ -0,0 +1,23 @@
+// Add your native dependencies here:
+
+// Uncomment to add recyclerview-v7 dependency
+//dependencies {
+// compile 'com.android.support:recyclerview-v7:+'
+//}
+
+android {
+ defaultConfig {
+ generatedDensities = []
+ applicationId = "org.nativescript.nsroanimations"
+
+ //override supported platforms
+ // ndk {
+ // abiFilters.clear()
+ // abiFilters "armeabi-v7a"
+ // }
+
+ }
+ aaptOptions {
+ additionalParameters "--no-version-vectors"
+ }
+}
diff --git a/e2e/routable-animations/app/App_Resources/Android/drawable-hdpi/background.png b/e2e/routable-animations/app/App_Resources/Android/drawable-hdpi/background.png
new file mode 100644
index 000000000..eb381c258
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/Android/drawable-hdpi/background.png differ
diff --git a/e2e/routable-animations/app/App_Resources/Android/drawable-hdpi/icon.png b/e2e/routable-animations/app/App_Resources/Android/drawable-hdpi/icon.png
new file mode 100755
index 000000000..1034356e2
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/Android/drawable-hdpi/icon.png differ
diff --git a/e2e/routable-animations/app/App_Resources/Android/drawable-hdpi/logo.png b/e2e/routable-animations/app/App_Resources/Android/drawable-hdpi/logo.png
new file mode 100644
index 000000000..5218f4c90
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/Android/drawable-hdpi/logo.png differ
diff --git a/e2e/routable-animations/app/App_Resources/Android/drawable-ldpi/background.png b/e2e/routable-animations/app/App_Resources/Android/drawable-ldpi/background.png
new file mode 100644
index 000000000..748b2adf5
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/Android/drawable-ldpi/background.png differ
diff --git a/e2e/routable-animations/app/App_Resources/Android/drawable-ldpi/icon.png b/e2e/routable-animations/app/App_Resources/Android/drawable-ldpi/icon.png
new file mode 100755
index 000000000..ddfc17a71
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/Android/drawable-ldpi/icon.png differ
diff --git a/e2e/routable-animations/app/App_Resources/Android/drawable-ldpi/logo.png b/e2e/routable-animations/app/App_Resources/Android/drawable-ldpi/logo.png
new file mode 100644
index 000000000..b9e102a76
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/Android/drawable-ldpi/logo.png differ
diff --git a/e2e/routable-animations/app/App_Resources/Android/drawable-mdpi/background.png b/e2e/routable-animations/app/App_Resources/Android/drawable-mdpi/background.png
new file mode 100644
index 000000000..efeaf2907
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/Android/drawable-mdpi/background.png differ
diff --git a/e2e/routable-animations/app/App_Resources/Android/drawable-mdpi/icon.png b/e2e/routable-animations/app/App_Resources/Android/drawable-mdpi/icon.png
new file mode 100755
index 000000000..486e41091
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/Android/drawable-mdpi/icon.png differ
diff --git a/e2e/routable-animations/app/App_Resources/Android/drawable-mdpi/logo.png b/e2e/routable-animations/app/App_Resources/Android/drawable-mdpi/logo.png
new file mode 100644
index 000000000..626338766
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/Android/drawable-mdpi/logo.png differ
diff --git a/e2e/routable-animations/app/App_Resources/Android/drawable-nodpi/splash_screen.xml b/e2e/routable-animations/app/App_Resources/Android/drawable-nodpi/splash_screen.xml
new file mode 100644
index 000000000..ada77f92c
--- /dev/null
+++ b/e2e/routable-animations/app/App_Resources/Android/drawable-nodpi/splash_screen.xml
@@ -0,0 +1,8 @@
+
+ -
+
+
+ -
+
+
+
\ No newline at end of file
diff --git a/e2e/routable-animations/app/App_Resources/Android/drawable-xhdpi/background.png b/e2e/routable-animations/app/App_Resources/Android/drawable-xhdpi/background.png
new file mode 100644
index 000000000..612bbd072
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/Android/drawable-xhdpi/background.png differ
diff --git a/e2e/routable-animations/app/App_Resources/Android/drawable-xhdpi/icon.png b/e2e/routable-animations/app/App_Resources/Android/drawable-xhdpi/icon.png
new file mode 100644
index 000000000..f29188209
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/Android/drawable-xhdpi/icon.png differ
diff --git a/e2e/routable-animations/app/App_Resources/Android/drawable-xhdpi/logo.png b/e2e/routable-animations/app/App_Resources/Android/drawable-xhdpi/logo.png
new file mode 100644
index 000000000..ad8ee2f4b
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/Android/drawable-xhdpi/logo.png differ
diff --git a/e2e/routable-animations/app/App_Resources/Android/drawable-xxhdpi/background.png b/e2e/routable-animations/app/App_Resources/Android/drawable-xxhdpi/background.png
new file mode 100644
index 000000000..0fa88e235
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/Android/drawable-xxhdpi/background.png differ
diff --git a/e2e/routable-animations/app/App_Resources/Android/drawable-xxhdpi/icon.png b/e2e/routable-animations/app/App_Resources/Android/drawable-xxhdpi/icon.png
new file mode 100644
index 000000000..4f69cb25b
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/Android/drawable-xxhdpi/icon.png differ
diff --git a/e2e/routable-animations/app/App_Resources/Android/drawable-xxhdpi/logo.png b/e2e/routable-animations/app/App_Resources/Android/drawable-xxhdpi/logo.png
new file mode 100644
index 000000000..668327832
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/Android/drawable-xxhdpi/logo.png differ
diff --git a/e2e/routable-animations/app/App_Resources/Android/drawable-xxxhdpi/background.png b/e2e/routable-animations/app/App_Resources/Android/drawable-xxxhdpi/background.png
new file mode 100644
index 000000000..c650f6438
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/Android/drawable-xxxhdpi/background.png differ
diff --git a/e2e/routable-animations/app/App_Resources/Android/drawable-xxxhdpi/icon.png b/e2e/routable-animations/app/App_Resources/Android/drawable-xxxhdpi/icon.png
new file mode 100644
index 000000000..50887a856
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/Android/drawable-xxxhdpi/icon.png differ
diff --git a/e2e/routable-animations/app/App_Resources/Android/drawable-xxxhdpi/logo.png b/e2e/routable-animations/app/App_Resources/Android/drawable-xxxhdpi/logo.png
new file mode 100644
index 000000000..fa6331c8d
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/Android/drawable-xxxhdpi/logo.png differ
diff --git a/e2e/routable-animations/app/App_Resources/Android/values-v21/colors.xml b/e2e/routable-animations/app/App_Resources/Android/values-v21/colors.xml
new file mode 100644
index 000000000..a64641a9d
--- /dev/null
+++ b/e2e/routable-animations/app/App_Resources/Android/values-v21/colors.xml
@@ -0,0 +1,4 @@
+
+
+ #3d5afe
+
\ No newline at end of file
diff --git a/e2e/routable-animations/app/App_Resources/Android/values-v21/styles.xml b/e2e/routable-animations/app/App_Resources/Android/values-v21/styles.xml
new file mode 100644
index 000000000..dac8727c8
--- /dev/null
+++ b/e2e/routable-animations/app/App_Resources/Android/values-v21/styles.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/e2e/routable-animations/app/App_Resources/Android/values/colors.xml b/e2e/routable-animations/app/App_Resources/Android/values/colors.xml
new file mode 100644
index 000000000..74ad8829c
--- /dev/null
+++ b/e2e/routable-animations/app/App_Resources/Android/values/colors.xml
@@ -0,0 +1,7 @@
+
+
+ #F5F5F5
+ #757575
+ #33B5E5
+ #272734
+
\ No newline at end of file
diff --git a/e2e/routable-animations/app/App_Resources/Android/values/styles.xml b/e2e/routable-animations/app/App_Resources/Android/values/styles.xml
new file mode 100644
index 000000000..1e8c7f29b
--- /dev/null
+++ b/e2e/routable-animations/app/App_Resources/Android/values/styles.xml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 000000000..1953734f4
--- /dev/null
+++ b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,92 @@
+{
+ "images" : [
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "icon-29.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "icon-29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "icon-29@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "icon-40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "icon-40@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "icon-60@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "icon-60@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "icon-29.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "icon-29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "icon-40.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "icon-40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "icon-76.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "icon-76@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "83.5x83.5",
+ "idiom" : "ipad",
+ "filename" : "icon-83.5@2x.png",
+ "scale" : "2x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png
new file mode 100644
index 000000000..9e15af09d
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png
new file mode 100644
index 000000000..7b9e55537
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png
new file mode 100644
index 000000000..76f61ec1f
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png
new file mode 100644
index 000000000..15b06db11
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png
new file mode 100644
index 000000000..585065f94
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png
new file mode 100644
index 000000000..a450c421d
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png
new file mode 100644
index 000000000..457b6d94c
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png
new file mode 100644
index 000000000..fa5a6ac86
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png
new file mode 100644
index 000000000..94abcf70d
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png
new file mode 100644
index 000000000..2e71dd3a0
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png
new file mode 100644
index 000000000..4abc9ec50
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/Contents.json b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/Contents.json
new file mode 100644
index 000000000..da4a164c9
--- /dev/null
+++ b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json
new file mode 100644
index 000000000..4414bad08
--- /dev/null
+++ b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json
@@ -0,0 +1,158 @@
+{
+ "images" : [
+ {
+ "extent" : "full-screen",
+ "idiom" : "iphone",
+ "subtype" : "736h",
+ "filename" : "Default-736h@3x.png",
+ "minimum-system-version" : "8.0",
+ "orientation" : "portrait",
+ "scale" : "3x"
+ },
+ {
+ "extent" : "full-screen",
+ "idiom" : "iphone",
+ "subtype" : "736h",
+ "filename" : "Default-Landscape@3x.png",
+ "minimum-system-version" : "8.0",
+ "orientation" : "landscape",
+ "scale" : "3x"
+ },
+ {
+ "extent" : "full-screen",
+ "idiom" : "iphone",
+ "subtype" : "667h",
+ "filename" : "Default-667h@2x.png",
+ "minimum-system-version" : "8.0",
+ "orientation" : "portrait",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "iphone",
+ "filename" : "Default@2x.png",
+ "extent" : "full-screen",
+ "minimum-system-version" : "7.0",
+ "scale" : "2x"
+ },
+ {
+ "extent" : "full-screen",
+ "idiom" : "iphone",
+ "subtype" : "retina4",
+ "filename" : "Default-568h@2x.png",
+ "minimum-system-version" : "7.0",
+ "orientation" : "portrait",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "ipad",
+ "filename" : "Default-Portrait.png",
+ "extent" : "full-screen",
+ "minimum-system-version" : "7.0",
+ "scale" : "1x"
+ },
+ {
+ "orientation" : "landscape",
+ "idiom" : "ipad",
+ "filename" : "Default-Landscape.png",
+ "extent" : "full-screen",
+ "minimum-system-version" : "7.0",
+ "scale" : "1x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "ipad",
+ "filename" : "Default-Portrait@2x.png",
+ "extent" : "full-screen",
+ "minimum-system-version" : "7.0",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "landscape",
+ "idiom" : "ipad",
+ "filename" : "Default-Landscape@2x.png",
+ "extent" : "full-screen",
+ "minimum-system-version" : "7.0",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "iphone",
+ "filename" : "Default.png",
+ "extent" : "full-screen",
+ "scale" : "1x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "iphone",
+ "filename" : "Default@2x.png",
+ "extent" : "full-screen",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "iphone",
+ "filename" : "Default-568h@2x.png",
+ "extent" : "full-screen",
+ "subtype" : "retina4",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "ipad",
+ "extent" : "to-status-bar",
+ "scale" : "1x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "ipad",
+ "filename" : "Default-Portrait.png",
+ "extent" : "full-screen",
+ "scale" : "1x"
+ },
+ {
+ "orientation" : "landscape",
+ "idiom" : "ipad",
+ "extent" : "to-status-bar",
+ "scale" : "1x"
+ },
+ {
+ "orientation" : "landscape",
+ "idiom" : "ipad",
+ "filename" : "Default-Landscape.png",
+ "extent" : "full-screen",
+ "scale" : "1x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "ipad",
+ "extent" : "to-status-bar",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "ipad",
+ "filename" : "Default-Portrait@2x.png",
+ "extent" : "full-screen",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "landscape",
+ "idiom" : "ipad",
+ "extent" : "to-status-bar",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "landscape",
+ "idiom" : "ipad",
+ "filename" : "Default-Landscape@2x.png",
+ "extent" : "full-screen",
+ "scale" : "2x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png
new file mode 100644
index 000000000..d7f17fcd2
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png
new file mode 100644
index 000000000..b88415405
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png
new file mode 100644
index 000000000..faab4b631
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png
new file mode 100644
index 000000000..3365ba3cd
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png
new file mode 100644
index 000000000..a44945c1a
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png
new file mode 100644
index 000000000..e6dca6269
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png
new file mode 100644
index 000000000..1a5007962
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png
new file mode 100644
index 000000000..73d8b920f
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png
new file mode 100644
index 000000000..9f1f6ce3e
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png
new file mode 100644
index 000000000..514fc5cde
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json
new file mode 100644
index 000000000..4f4e9c506
--- /dev/null
+++ b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json
@@ -0,0 +1,22 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchScreen-AspectFill.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchScreen-AspectFill@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png
new file mode 100644
index 000000000..c293f9c7a
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png
new file mode 100644
index 000000000..233693a6e
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json
new file mode 100644
index 000000000..23c0ffd7a
--- /dev/null
+++ b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json
@@ -0,0 +1,22 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchScreen-Center.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchScreen-Center@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png
new file mode 100644
index 000000000..a5a775a2b
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png
new file mode 100644
index 000000000..154c19343
Binary files /dev/null and b/e2e/routable-animations/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png differ
diff --git a/e2e/routable-animations/app/App_Resources/iOS/Info.plist b/e2e/routable-animations/app/App_Resources/iOS/Info.plist
new file mode 100644
index 000000000..ea3e3ea23
--- /dev/null
+++ b/e2e/routable-animations/app/App_Resources/iOS/Info.plist
@@ -0,0 +1,47 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleDisplayName
+ ${PRODUCT_NAME}
+ CFBundleExecutable
+ ${EXECUTABLE_NAME}
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ ${PRODUCT_NAME}
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1.0
+ LSRequiresIPhoneOS
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIRequiresFullScreen
+
+ UIRequiredDeviceCapabilities
+
+ armv7
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+
+
diff --git a/e2e/routable-animations/app/App_Resources/iOS/LaunchScreen.storyboard b/e2e/routable-animations/app/App_Resources/iOS/LaunchScreen.storyboard
new file mode 100644
index 000000000..2ad9471e1
--- /dev/null
+++ b/e2e/routable-animations/app/App_Resources/iOS/LaunchScreen.storyboard
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/e2e/routable-animations/app/App_Resources/iOS/build.xcconfig b/e2e/routable-animations/app/App_Resources/iOS/build.xcconfig
new file mode 100644
index 000000000..4b0118490
--- /dev/null
+++ b/e2e/routable-animations/app/App_Resources/iOS/build.xcconfig
@@ -0,0 +1,7 @@
+// You can add custom settings here
+// for example you can uncomment the following line to force distribution code signing
+// CODE_SIGN_IDENTITY = iPhone Distribution
+// To build for device with Xcode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
+// DEVELOPMENT_TEAM = YOUR_TEAM_ID;
+ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
diff --git a/e2e/routable-animations/app/README.md b/e2e/routable-animations/app/README.md
new file mode 100644
index 000000000..ebe60c416
--- /dev/null
+++ b/e2e/routable-animations/app/README.md
@@ -0,0 +1,5 @@
+# NativeScript Tutorial Angular Template
+
+This repo serves as the starting point for NativeScript’s [Angular Getting Started Guide](https://docs.nativescript.org/angular/tutorial/ng-chapter-0).
+
+Please file any issues with this template on the [NativeScript/docs repository](https://github.com/nativescript/docs), which is where the tutorial content lives.
\ No newline at end of file
diff --git a/e2e/routable-animations/app/app-routing.module.ts b/e2e/routable-animations/app/app-routing.module.ts
new file mode 100644
index 000000000..8ce2788fe
--- /dev/null
+++ b/e2e/routable-animations/app/app-routing.module.ts
@@ -0,0 +1,29 @@
+import { NgModule } from '@angular/core';
+import { Routes } from '@angular/router';
+import { NativeScriptRouterModule } from "nativescript-angular/router";
+
+import { HomeComponent } from './home/home.component';
+import { SupportComponent } from './support/support.component';
+
+const routes: Routes = [
+ {
+ path: '',
+ component: HomeComponent,
+ data: {
+ animation: 'homePage'
+ },
+ },
+ {
+ path: 'support',
+ component: SupportComponent,
+ data: {
+ animation: 'supportPage'
+ }
+ },
+];
+
+@NgModule({
+ imports: [NativeScriptRouterModule.forRoot(routes)],
+ exports: [NativeScriptRouterModule]
+})
+export class AppRoutingModule { }
diff --git a/e2e/routable-animations/app/app.component.ts b/e2e/routable-animations/app/app.component.ts
new file mode 100644
index 000000000..f3883127e
--- /dev/null
+++ b/e2e/routable-animations/app/app.component.ts
@@ -0,0 +1,51 @@
+import { Component } from "@angular/core";
+import {
+ animate,
+ animateChild,
+ group,
+ query,
+ style,
+ transition,
+ trigger,
+} from "@angular/animations";
+
+const slideLeft = [
+ query(':leave', style({ transform: 'translateX(0)' })),
+ query(':enter', style({ transform: 'translateX(-400)' })),
+
+ group([
+ query(':leave', animate(500, style({ transform: 'translateX(400)' }))),
+ query(':enter', animate(500, style({ transform: 'translateX(0)' }))),
+ ], { delay: 10 }) // Needed because a wierd animation scheduling bug in IOS
+]
+
+const slideRight = [
+ query(':leave', style({ transform: 'translateX(0)'})),
+ query(':enter', style({ transform: 'translateX(400)'})),
+
+ group([
+ query(':leave', animate(500, style({ transform: 'translateX(-400)' })), { delay: 100 }),
+ query(':enter', animate(500, style({ transform: 'translateX(0)' })), { delay: 100 }),
+ ], { delay: 10 }) // Needed because a wierd animation scheduling bug in IOS
+]
+
+@Component({
+ template: `
+
+
+
+ `,
+ animations: [
+ trigger('routeAnimation', [
+ transition('homePage => supportPage', slideRight),
+ transition('supportPage => homePage', slideLeft),
+ ])
+ ],
+})
+export class AppComponent {
+ prepRouteState(outlet: any) {
+ return outlet.activatedRouteData['animation'] || 'firstPage';
+ }
+}
+
+
diff --git a/e2e/routable-animations/app/app.css b/e2e/routable-animations/app/app.css
new file mode 100644
index 000000000..8aca5e29a
--- /dev/null
+++ b/e2e/routable-animations/app/app.css
@@ -0,0 +1 @@
+@import "~nativescript-theme-core/css/core.light.css";
diff --git a/e2e/routable-animations/app/app.module.ngfactory.d.ts b/e2e/routable-animations/app/app.module.ngfactory.d.ts
new file mode 100644
index 000000000..9d15b9419
--- /dev/null
+++ b/e2e/routable-animations/app/app.module.ngfactory.d.ts
@@ -0,0 +1 @@
+export const AppModuleNgFactory: any;
\ No newline at end of file
diff --git a/e2e/routable-animations/app/app.module.ts b/e2e/routable-animations/app/app.module.ts
new file mode 100644
index 000000000..fd566ef7f
--- /dev/null
+++ b/e2e/routable-animations/app/app.module.ts
@@ -0,0 +1,29 @@
+import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
+import { NativeScriptModule } from "nativescript-angular/nativescript.module";
+import { NativeScriptAnimationsModule } from "nativescript-angular/animations";
+
+import { AppComponent } from "./app.component";
+import { AppRoutingModule } from './app-routing.module';
+import { HomeComponent } from './home/home.component';
+import { SupportComponent } from './support/support.component';
+
+import { animationsTraceCategory } from "nativescript-angular/trace";
+import { setCategories, enable } from "trace";
+setCategories(animationsTraceCategory);
+enable();
+
+@NgModule({
+ declarations: [
+ AppComponent,
+ HomeComponent,
+ SupportComponent
+ ],
+ bootstrap: [AppComponent],
+ imports: [
+ NativeScriptModule,
+ NativeScriptAnimationsModule,
+ AppRoutingModule,
+ ],
+ schemas: [NO_ERRORS_SCHEMA],
+})
+export class AppModule { }
diff --git a/e2e/routable-animations/app/home/home.component.css b/e2e/routable-animations/app/home/home.component.css
new file mode 100644
index 000000000..e69de29bb
diff --git a/e2e/routable-animations/app/home/home.component.html b/e2e/routable-animations/app/home/home.component.html
new file mode 100644
index 000000000..4adabcc24
--- /dev/null
+++ b/e2e/routable-animations/app/home/home.component.html
@@ -0,0 +1,6 @@
+
+
+
+
+
diff --git a/e2e/routable-animations/app/home/home.component.ts b/e2e/routable-animations/app/home/home.component.ts
new file mode 100644
index 000000000..f577257f0
--- /dev/null
+++ b/e2e/routable-animations/app/home/home.component.ts
@@ -0,0 +1,15 @@
+import { Component, OnInit } from '@angular/core';
+
+@Component({
+ moduleId: module.id,
+ templateUrl: './home.component.html',
+ styleUrls: ['./home.component.css']
+})
+export class HomeComponent implements OnInit {
+
+ constructor() { }
+
+ ngOnInit() {
+ }
+
+}
diff --git a/e2e/routable-animations/app/main.aot.ts b/e2e/routable-animations/app/main.aot.ts
new file mode 100644
index 000000000..98bf134fc
--- /dev/null
+++ b/e2e/routable-animations/app/main.aot.ts
@@ -0,0 +1,4 @@
+import { platformNativeScript } from "nativescript-angular/platform-static";
+import { AppModuleNgFactory } from "./app.module.ngfactory";
+
+platformNativeScript().bootstrapModuleFactory(AppModuleNgFactory);
diff --git a/e2e/routable-animations/app/main.ts b/e2e/routable-animations/app/main.ts
new file mode 100644
index 000000000..639bfd513
--- /dev/null
+++ b/e2e/routable-animations/app/main.ts
@@ -0,0 +1,4 @@
+import { platformNativeScriptDynamic } from "nativescript-angular/platform";
+import { AppModule } from "./app.module";
+
+platformNativeScriptDynamic().bootstrapModule(AppModule);
diff --git a/e2e/routable-animations/app/package.json b/e2e/routable-animations/app/package.json
new file mode 100644
index 000000000..dfd0ce000
--- /dev/null
+++ b/e2e/routable-animations/app/package.json
@@ -0,0 +1,5 @@
+{
+ "name": "nativescript-template-ng-tutorial",
+ "version": "3.1.0",
+ "main": "main.js"
+}
\ No newline at end of file
diff --git a/e2e/routable-animations/app/support/support.component.css b/e2e/routable-animations/app/support/support.component.css
new file mode 100644
index 000000000..e69de29bb
diff --git a/e2e/routable-animations/app/support/support.component.html b/e2e/routable-animations/app/support/support.component.html
new file mode 100644
index 000000000..e743bbd92
--- /dev/null
+++ b/e2e/routable-animations/app/support/support.component.html
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/e2e/routable-animations/app/support/support.component.ts b/e2e/routable-animations/app/support/support.component.ts
new file mode 100644
index 000000000..c31fbc51a
--- /dev/null
+++ b/e2e/routable-animations/app/support/support.component.ts
@@ -0,0 +1,17 @@
+import { Component, OnInit } from '@angular/core';
+import { RouterExtensions } from 'nativescript-angular/router';
+
+@Component({
+ moduleId: module.id,
+ templateUrl: './support.component.html',
+ styleUrls: ['./support.component.css']
+})
+export class SupportComponent implements OnInit {
+
+ constructor(public router: RouterExtensions) {
+ }
+
+ ngOnInit() {
+ }
+
+}
diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api19-Default/home.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api19-Default/home.png
new file mode 100644
index 000000000..e52f73d80
Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api19-Default/home.png differ
diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api19-Default/support.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api19-Default/support.png
new file mode 100644
index 000000000..3046d7116
Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api19-Default/support.png differ
diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api23-Default/home.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api23-Default/home.png
new file mode 100644
index 000000000..4f4da09ef
Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api23-Default/home.png differ
diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api23-Default/support.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api23-Default/support.png
new file mode 100644
index 000000000..e042e48b1
Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api23-Default/support.png differ
diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api27-Google/home.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api27-Google/home.png
new file mode 100644
index 000000000..c52b30285
Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api27-Google/home.png differ
diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api27-Google/support.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api27-Google/support.png
new file mode 100644
index 000000000..e83f97176
Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/Emulator-Api27-Google/support.png differ
diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 7 100/home.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 7 100/home.png
new file mode 100644
index 000000000..e45e0e7e6
Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 7 100/home.png differ
diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 7 100/support.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 7 100/support.png
new file mode 100644
index 000000000..37ed5d73d
Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 7 100/support.png differ
diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 7 110/home.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 7 110/home.png
new file mode 100644
index 000000000..e45e0e7e6
Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 7 110/home.png differ
diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 7 110/support.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 7 110/support.png
new file mode 100644
index 000000000..37ed5d73d
Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 7 110/support.png differ
diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 8/home.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 8/home.png
new file mode 100644
index 000000000..e45e0e7e6
Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 8/home.png differ
diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 8/support.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 8/support.png
new file mode 100644
index 000000000..37ed5d73d
Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone 8/support.png differ
diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone X 110/home.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone X 110/home.png
new file mode 100644
index 000000000..49139d5a6
Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone X 110/home.png differ
diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone X 110/support.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone X 110/support.png
new file mode 100644
index 000000000..64dd2209f
Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone X 110/support.png differ
diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone XR 12/home.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone XR 12/home.png
new file mode 100644
index 000000000..f32265ad8
Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone XR 12/home.png differ
diff --git a/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone XR 12/support.png b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone XR 12/support.png
new file mode 100644
index 000000000..43a8a2257
Binary files /dev/null and b/e2e/routable-animations/e2e/resources/images/nsroanimations/iPhone XR 12/support.png differ
diff --git a/e2e/routable-animations/e2e/setup.ts b/e2e/routable-animations/e2e/setup.ts
new file mode 100644
index 000000000..8b26e66e9
--- /dev/null
+++ b/e2e/routable-animations/e2e/setup.ts
@@ -0,0 +1,9 @@
+import { startServer, stopServer } from "nativescript-dev-appium";
+
+before("start server", async () => {
+ await startServer();
+});
+
+after("stop server", async () => {
+ await stopServer();
+});
diff --git a/e2e/routable-animations/e2e/tests.e2e.ts b/e2e/routable-animations/e2e/tests.e2e.ts
new file mode 100644
index 000000000..170b8813c
--- /dev/null
+++ b/e2e/routable-animations/e2e/tests.e2e.ts
@@ -0,0 +1,40 @@
+import { AppiumDriver, createDriver, SearchOptions } from "nativescript-dev-appium";
+import { assert } from "chai";
+
+describe("sample scenario", () => {
+ const defaultWaitTime = 5000;
+ let driver: AppiumDriver;
+
+ before(async () => {
+ driver = await createDriver();
+ });
+
+ after(async () => {
+ await driver.quit();
+ console.log("Quit driver!");
+ });
+
+ afterEach(async function () {
+ if (this.currentTest.state === "failed") {
+ await driver.logTestArtifacts(this.currentTest.title);
+ }
+ });
+
+ it("should go to support page", async () => {
+ const btnGoToSupportPage = await driver.findElementByAutomationText("go to support page");
+ const homeImage = await driver.compareScreen("home");
+ assert.isTrue(homeImage);
+ await btnGoToSupportPage.click();
+ const titleSupportPage = await driver.findElementByAutomationText("Support Page");
+ console.log(await titleSupportPage.text());
+ });
+
+ it("should go back to home page", async () => {
+ const btnGoBackToHomePage = await driver.findElementByAutomationText("go back to home page");
+ const supportImage = await driver.compareScreen("support");
+ assert.isTrue(supportImage);
+ await btnGoBackToHomePage.click();
+ const titleHomePage = await driver.findElementByAutomationText("Home Page");
+ console.log(await titleHomePage.text());
+ });
+});
diff --git a/e2e/routable-animations/e2e/tsconfig.json b/e2e/routable-animations/e2e/tsconfig.json
new file mode 100644
index 000000000..6517ca58d
--- /dev/null
+++ b/e2e/routable-animations/e2e/tsconfig.json
@@ -0,0 +1,19 @@
+{
+ "compilerOptions": {
+ "module": "commonjs",
+ "target": "es6",
+ "experimentalDecorators": true,
+ "emitDecoratorMetadata": true,
+ "importHelpers": false,
+ "sourceMap": true,
+ "types": [
+ "node",
+ "mocha",
+ "chai"
+ ],
+ "lib": [
+ "es2015",
+ "dom"
+ ]
+ }
+}
\ No newline at end of file
diff --git a/e2e/routable-animations/package.json b/e2e/routable-animations/package.json
new file mode 100644
index 000000000..53cbd60bb
--- /dev/null
+++ b/e2e/routable-animations/package.json
@@ -0,0 +1,51 @@
+{
+ "description": "NativeScript Application",
+ "license": "SEE LICENSE IN ",
+ "readme": "NativeScript Application",
+ "repository": "",
+ "nativescript": {
+ "id": "org.nativescript.nsroanimations"
+ },
+ "dependencies": {
+ "@angular/animations": "~6.0.6",
+ "@angular/common": "~6.0.6",
+ "@angular/compiler": "~6.0.6",
+ "@angular/core": "~6.0.6",
+ "@angular/forms": "~6.0.6",
+ "@angular/http": "~6.0.6",
+ "@angular/platform-browser": "~6.0.6",
+ "@angular/platform-browser-dynamic": "~6.0.6",
+ "@angular/router": "~6.0.6",
+ "nativescript-angular": "next",
+ "nativescript-theme-core": "~1.0.2",
+ "reflect-metadata": "~0.1.8",
+ "rxjs": "~6.0.0 || >=6.1.0",
+ "tns-core-modules": "^4.0.0",
+ "zone.js": "^0.8.26"
+ },
+ "devDependencies": {
+ "@ngtools/webpack": "6.1.0-rc.0",
+ "@angular/compiler-cli": "~6.1.0-beta.3",
+ "@types/chai": "~4.1.3",
+ "@types/mocha": "~5.2.1",
+ "@types/node": "^7.0.5",
+ "babel-traverse": "6.25.0",
+ "babel-types": "6.25.0",
+ "babylon": "6.17.4",
+ "colors": "^1.1.2",
+ "lazy": "1.0.11",
+ "nativescript-css-loader": "~0.26.0",
+ "nativescript-dev-appium": "^4.0.0",
+ "nativescript-dev-typescript": "~0.7.1",
+ "nativescript-dev-webpack": "next",
+ "typescript": "~2.7.2"
+ },
+ "scripts": {
+ "ns-bundle": "ns-bundle",
+ "e2e": "tsc -p e2e && mocha --opts ../config/mocha.opts --recursive e2e --appiumCapsLocation ../config/appium.capabilities.json",
+ "e2e-watch": "tsc -p e2e --watch",
+ "update-app-ng-deps": "update-app-ng-deps",
+ "ns-verify-bundle": "ns-verify-bundle",
+ "update-ns-webpack": "update-ns-webpack"
+ }
+}
diff --git a/e2e/routable-animations/tsconfig.esm.json b/e2e/routable-animations/tsconfig.esm.json
new file mode 100644
index 000000000..95f2ecee0
--- /dev/null
+++ b/e2e/routable-animations/tsconfig.esm.json
@@ -0,0 +1,7 @@
+{
+ "extends": "./tsconfig",
+ "compilerOptions": {
+ "module": "es2015",
+ "moduleResolution": "node"
+ }
+}
diff --git a/e2e/routable-animations/tsconfig.json b/e2e/routable-animations/tsconfig.json
new file mode 100644
index 000000000..a4ddb2d04
--- /dev/null
+++ b/e2e/routable-animations/tsconfig.json
@@ -0,0 +1,30 @@
+{
+ "compilerOptions": {
+ "module": "commonjs",
+ "target": "es5",
+ "experimentalDecorators": true,
+ "emitDecoratorMetadata": true,
+ "noEmitHelpers": true,
+ "noEmitOnError": true,
+ "lib": [
+ "es6",
+ "dom",
+ "es2015.iterable"
+ ],
+ "baseUrl": ".",
+ "paths": {
+ "*": [
+ "./node_modules/tns-core-modules/*",
+ "./node_modules/*"
+ ],
+ "~/*": [
+ "app/*"
+ ]
+ }
+ },
+ "exclude": [
+ "node_modules",
+ "platforms",
+ "e2e"
+ ]
+}
\ No newline at end of file
diff --git a/e2e/router/e2e/router.e2e-spec.ts b/e2e/router/e2e/router.e2e-spec.ts
index b71926499..2af62f001 100644
--- a/e2e/router/e2e/router.e2e-spec.ts
+++ b/e2e/router/e2e/router.e2e-spec.ts
@@ -15,6 +15,12 @@ describe("Simple navigate and back", async function(){
await driver.resetApp();
});
+ afterEach(async function () {
+ if (this.currentTest.state === "failed") {
+ await driver.logTestArtifacts(this.currentTest.title);
+ }
+ });
+
it("should find First", async function(){
await assureFirstComponent(driver);
});
@@ -41,6 +47,12 @@ describe("Navigate inside nested outlet", async function(){
await driver.resetApp();
});
+ afterEach(async function () {
+ if (this.currentTest.state === "failed") {
+ await driver.logTestArtifacts(this.currentTest.title);
+ }
+ });
+
it("should find First", async function(){
await assureFirstComponent(driver);
});
@@ -89,6 +101,12 @@ describe("Navigate to same component with different param", async function(){
await driver.resetApp();
});
+ afterEach(async function () {
+ if (this.currentTest.state === "failed") {
+ await driver.logTestArtifacts(this.currentTest.title);
+ }
+ });
+
it("should find First", async function(){
await assureFirstComponent(driver);
});
@@ -131,6 +149,12 @@ describe("Nested navigation + page navigation", async function(){
await driver.resetApp();
});
+ afterEach(async function () {
+ if (this.currentTest.state === "failed") {
+ await driver.logTestArtifacts(this.currentTest.title);
+ }
+ });
+
it("should find First", async function(){
await assureFirstComponent(driver);
});
@@ -204,6 +228,12 @@ describe("Nested name navigation + page navigation", async function(){
await driver.resetApp();
});
+ afterEach(async function () {
+ if (this.currentTest.state === "failed") {
+ await driver.logTestArtifacts(this.currentTest.title);
+ }
+ });
+
it("should find First", async function(){
await assureFirstComponent(driver);
});
@@ -252,6 +282,12 @@ describe("Shouldn't be able to navigate back on startup", async function(){
await driver.resetApp();
});
+ afterEach(async function () {
+ if (this.currentTest.state === "failed") {
+ await driver.logTestArtifacts(this.currentTest.title);
+ }
+ });
+
it("should find First", async function(){
await assureFirstComponent(driver);
});
@@ -271,6 +307,12 @@ describe("Shouldn't be able to navigate back after cleared history", async funct
await driver.resetApp();
});
+ afterEach(async function () {
+ if (this.currentTest.state === "failed") {
+ await driver.logTestArtifacts(this.currentTest.title);
+ }
+ });
+
it("should find First", async function(){
await assureFirstComponent(driver);
});
@@ -303,6 +345,12 @@ describe("Navigate to componentless route", async function(){
await driver.resetApp();
});
+ afterEach(async function () {
+ if (this.currentTest.state === "failed") {
+ await driver.logTestArtifacts(this.currentTest.title);
+ }
+ });
+
it("should find First", async function(){
await assureFirstComponent(driver);
});
@@ -341,6 +389,12 @@ describe("Navigate to lazy module", async function(){
await driver.resetApp();
});
+ afterEach(async function () {
+ if (this.currentTest.state === "failed") {
+ await driver.logTestArtifacts(this.currentTest.title);
+ }
+ });
+
it("should find First", async function(){
await assureFirstComponent(driver);
});
@@ -383,6 +437,12 @@ describe("Navigate to componentless lazy module route", async function(){
await driver.resetApp();
});
+ afterEach(async function () {
+ if (this.currentTest.state === "failed") {
+ await driver.logTestArtifacts(this.currentTest.title);
+ }
+ });
+
it("should find First", async function(){
await assureFirstComponent(driver);
});
@@ -426,6 +486,12 @@ describe("Simple navigate and back should trigger only one CD on FirstComponent"
await driver.resetApp();
});
+ afterEach(async function () {
+ if (this.currentTest.state === "failed") {
+ await driver.logTestArtifacts(this.currentTest.title);
+ }
+ });
+
it("should find First", async function(){
await assureFirstComponent(driver);
});
@@ -457,6 +523,12 @@ describe("Simple navigate and back should trigger only one CD on FirstComponent
await driver.resetApp();
});
+ afterEach(async function () {
+ if (this.currentTest.state === "failed") {
+ await driver.logTestArtifacts(this.currentTest.title);
+ }
+ });
+
it("should find First", async () => {
await assureFirstComponent(driver);
});
diff --git a/e2e/tests-app-ng/.DS_Store b/e2e/tests-app-ng/.DS_Store
new file mode 100644
index 000000000..1fbac29ca
Binary files /dev/null and b/e2e/tests-app-ng/.DS_Store differ
diff --git a/e2e/tests-app-ng/.gitignore b/e2e/tests-app-ng/.gitignore
new file mode 100644
index 000000000..ecb5e0009
--- /dev/null
+++ b/e2e/tests-app-ng/.gitignore
@@ -0,0 +1,15 @@
+hooks
+node_modules
+platforms
+lib
+tags
+report
+
+app/**/*.js
+app/**/*.map
+package-lock.json
+
+# Webpack files
+tsconfig.esm.json
+webpack.config.js
+
diff --git a/e2e/tests-app-ng/.vscode/settings.json b/e2e/tests-app-ng/.vscode/settings.json
new file mode 100644
index 000000000..b17e73fe9
--- /dev/null
+++ b/e2e/tests-app-ng/.vscode/settings.json
@@ -0,0 +1,9 @@
+// Place your settings in this file to overwrite default and user settings.
+{
+ "files.exclude": {
+ "**/*.js": {
+ "when": "$(basename).ts"
+ },
+ "**/*.js.map": true
+ }
+}
\ No newline at end of file
diff --git a/e2e/tests-app-ng/app/.DS_Store b/e2e/tests-app-ng/app/.DS_Store
new file mode 100644
index 000000000..7e319d2bf
Binary files /dev/null and b/e2e/tests-app-ng/app/.DS_Store differ
diff --git a/e2e/tests-app-ng/app/App_Resources/Android/AndroidManifest.xml b/e2e/tests-app-ng/app/App_Resources/Android/AndroidManifest.xml
new file mode 100644
index 000000000..8d827dc8d
--- /dev/null
+++ b/e2e/tests-app-ng/app/App_Resources/Android/AndroidManifest.xml
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/e2e/tests-app-ng/app/App_Resources/Android/app.gradle b/e2e/tests-app-ng/app/App_Resources/Android/app.gradle
new file mode 100644
index 000000000..725fb59b1
--- /dev/null
+++ b/e2e/tests-app-ng/app/App_Resources/Android/app.gradle
@@ -0,0 +1,15 @@
+// Add your native dependencies here:
+
+// Uncomment to add recyclerview-v7 dependency
+//dependencies {
+// compile 'com.android.support:recyclerview-v7:+'
+//}
+
+android {
+ defaultConfig {
+ generatedDensities = []
+ }
+ aaptOptions {
+ additionalParameters "--no-version-vectors"
+ }
+}
diff --git a/e2e/tests-app-ng/app/App_Resources/Android/drawable-hdpi/icon.png b/e2e/tests-app-ng/app/App_Resources/Android/drawable-hdpi/icon.png
new file mode 100755
index 000000000..1034356e2
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/Android/drawable-hdpi/icon.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/Android/drawable-ldpi/icon.png b/e2e/tests-app-ng/app/App_Resources/Android/drawable-ldpi/icon.png
new file mode 100755
index 000000000..ddfc17a71
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/Android/drawable-ldpi/icon.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/Android/drawable-mdpi/icon.png b/e2e/tests-app-ng/app/App_Resources/Android/drawable-mdpi/icon.png
new file mode 100755
index 000000000..486e41091
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/Android/drawable-mdpi/icon.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/Android/drawable-nodpi/splashscreen.9.png b/e2e/tests-app-ng/app/App_Resources/Android/drawable-nodpi/splashscreen.9.png
new file mode 100644
index 000000000..bd53be2ec
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/Android/drawable-nodpi/splashscreen.9.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 000000000..5f5359340
--- /dev/null
+++ b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,128 @@
+{
+ "images" : [
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "icon-29.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "icon-29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "icon-29@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "icon-40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "icon-40@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "57x57",
+ "idiom" : "iphone",
+ "filename" : "icon-57.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "57x57",
+ "idiom" : "iphone",
+ "filename" : "icon-57@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "icon-60@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "icon-60@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "icon-29.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "icon-29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "icon-40.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "icon-40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "50x50",
+ "idiom" : "ipad",
+ "filename" : "icon-50.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "50x50",
+ "idiom" : "ipad",
+ "filename" : "icon-50@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "72x72",
+ "idiom" : "ipad",
+ "filename" : "icon-72.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "72x72",
+ "idiom" : "ipad",
+ "filename" : "icon-72@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "icon-76.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "icon-76@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "83.5x83.5",
+ "idiom" : "ipad",
+ "filename" : "icon-83.5@2x.png",
+ "scale" : "2x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png
new file mode 100644
index 000000000..9e15af09d
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png
new file mode 100644
index 000000000..7b9e55537
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png
new file mode 100644
index 000000000..76f61ec1f
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png
new file mode 100644
index 000000000..15b06db11
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png
new file mode 100644
index 000000000..585065f94
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png
new file mode 100644
index 000000000..a450c421d
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png
new file mode 100755
index 000000000..4a62478f9
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png
new file mode 100755
index 000000000..01ff7c16c
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png
new file mode 100755
index 000000000..beea81999
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png
new file mode 100755
index 000000000..c3dc7b035
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png
new file mode 100644
index 000000000..457b6d94c
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png
new file mode 100644
index 000000000..fa5a6ac86
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png
new file mode 100755
index 000000000..556bdd688
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png
new file mode 100755
index 000000000..4f69cb25b
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png
new file mode 100644
index 000000000..94abcf70d
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png
new file mode 100644
index 000000000..2e71dd3a0
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png
new file mode 100644
index 000000000..4abc9ec50
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/Contents.json b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/Contents.json
new file mode 100644
index 000000000..da4a164c9
--- /dev/null
+++ b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json
new file mode 100644
index 000000000..4414bad08
--- /dev/null
+++ b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json
@@ -0,0 +1,158 @@
+{
+ "images" : [
+ {
+ "extent" : "full-screen",
+ "idiom" : "iphone",
+ "subtype" : "736h",
+ "filename" : "Default-736h@3x.png",
+ "minimum-system-version" : "8.0",
+ "orientation" : "portrait",
+ "scale" : "3x"
+ },
+ {
+ "extent" : "full-screen",
+ "idiom" : "iphone",
+ "subtype" : "736h",
+ "filename" : "Default-Landscape@3x.png",
+ "minimum-system-version" : "8.0",
+ "orientation" : "landscape",
+ "scale" : "3x"
+ },
+ {
+ "extent" : "full-screen",
+ "idiom" : "iphone",
+ "subtype" : "667h",
+ "filename" : "Default-667h@2x.png",
+ "minimum-system-version" : "8.0",
+ "orientation" : "portrait",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "iphone",
+ "filename" : "Default@2x.png",
+ "extent" : "full-screen",
+ "minimum-system-version" : "7.0",
+ "scale" : "2x"
+ },
+ {
+ "extent" : "full-screen",
+ "idiom" : "iphone",
+ "subtype" : "retina4",
+ "filename" : "Default-568h@2x.png",
+ "minimum-system-version" : "7.0",
+ "orientation" : "portrait",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "ipad",
+ "filename" : "Default-Portrait.png",
+ "extent" : "full-screen",
+ "minimum-system-version" : "7.0",
+ "scale" : "1x"
+ },
+ {
+ "orientation" : "landscape",
+ "idiom" : "ipad",
+ "filename" : "Default-Landscape.png",
+ "extent" : "full-screen",
+ "minimum-system-version" : "7.0",
+ "scale" : "1x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "ipad",
+ "filename" : "Default-Portrait@2x.png",
+ "extent" : "full-screen",
+ "minimum-system-version" : "7.0",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "landscape",
+ "idiom" : "ipad",
+ "filename" : "Default-Landscape@2x.png",
+ "extent" : "full-screen",
+ "minimum-system-version" : "7.0",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "iphone",
+ "filename" : "Default.png",
+ "extent" : "full-screen",
+ "scale" : "1x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "iphone",
+ "filename" : "Default@2x.png",
+ "extent" : "full-screen",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "iphone",
+ "filename" : "Default-568h@2x.png",
+ "extent" : "full-screen",
+ "subtype" : "retina4",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "ipad",
+ "extent" : "to-status-bar",
+ "scale" : "1x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "ipad",
+ "filename" : "Default-Portrait.png",
+ "extent" : "full-screen",
+ "scale" : "1x"
+ },
+ {
+ "orientation" : "landscape",
+ "idiom" : "ipad",
+ "extent" : "to-status-bar",
+ "scale" : "1x"
+ },
+ {
+ "orientation" : "landscape",
+ "idiom" : "ipad",
+ "filename" : "Default-Landscape.png",
+ "extent" : "full-screen",
+ "scale" : "1x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "ipad",
+ "extent" : "to-status-bar",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "ipad",
+ "filename" : "Default-Portrait@2x.png",
+ "extent" : "full-screen",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "landscape",
+ "idiom" : "ipad",
+ "extent" : "to-status-bar",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "landscape",
+ "idiom" : "ipad",
+ "filename" : "Default-Landscape@2x.png",
+ "extent" : "full-screen",
+ "scale" : "2x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png
new file mode 100644
index 000000000..d7f17fcd2
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png
new file mode 100644
index 000000000..b88415405
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png
new file mode 100644
index 000000000..faab4b631
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png
new file mode 100644
index 000000000..3365ba3cd
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png
new file mode 100644
index 000000000..a44945c1a
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png
new file mode 100644
index 000000000..e6dca6269
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png
new file mode 100644
index 000000000..1a5007962
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png
new file mode 100644
index 000000000..73d8b920f
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png
new file mode 100644
index 000000000..9f1f6ce3e
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png
new file mode 100644
index 000000000..514fc5cde
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json
new file mode 100644
index 000000000..4f4e9c506
--- /dev/null
+++ b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json
@@ -0,0 +1,22 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchScreen-AspectFill.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchScreen-AspectFill@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png
new file mode 100644
index 000000000..c293f9c7a
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png
new file mode 100644
index 000000000..233693a6e
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json
new file mode 100644
index 000000000..23c0ffd7a
--- /dev/null
+++ b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json
@@ -0,0 +1,22 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchScreen-Center.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchScreen-Center@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png
new file mode 100644
index 000000000..a5a775a2b
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png
new file mode 100644
index 000000000..154c19343
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Default-568h@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Default-568h@2x.png
new file mode 100755
index 000000000..d7f17fcd2
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Default-568h@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Default-667h@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Default-667h@2x.png
new file mode 100644
index 000000000..b88415405
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Default-667h@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Default-736h@3x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Default-736h@3x.png
new file mode 100644
index 000000000..faab4b631
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Default-736h@3x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Default-Landscape-568h@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Default-Landscape-568h@2x.png
new file mode 100644
index 000000000..d21bd292b
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Default-Landscape-568h@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Default-Landscape-667h@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Default-Landscape-667h@2x.png
new file mode 100644
index 000000000..5305bbdf2
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Default-Landscape-667h@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Default-Landscape.png b/e2e/tests-app-ng/app/App_Resources/iOS/Default-Landscape.png
new file mode 100755
index 000000000..3365ba3cd
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Default-Landscape.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Default-Landscape@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Default-Landscape@2x.png
new file mode 100755
index 000000000..a44945c1a
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Default-Landscape@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Default-Landscape@3x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Default-Landscape@3x.png
new file mode 100644
index 000000000..e6dca6269
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Default-Landscape@3x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Default-Portrait.png b/e2e/tests-app-ng/app/App_Resources/iOS/Default-Portrait.png
new file mode 100755
index 000000000..1a5007962
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Default-Portrait.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Default-Portrait@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Default-Portrait@2x.png
new file mode 100755
index 000000000..73d8b920f
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Default-Portrait@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Default.png b/e2e/tests-app-ng/app/App_Resources/iOS/Default.png
new file mode 100755
index 000000000..9f1f6ce3e
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Default.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Default@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Default@2x.png
new file mode 100755
index 000000000..514fc5cde
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Default@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Icon-Small-50.png b/e2e/tests-app-ng/app/App_Resources/iOS/Icon-Small-50.png
new file mode 100755
index 000000000..4a62478f9
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Icon-Small-50.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Icon-Small-50@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Icon-Small-50@2x.png
new file mode 100755
index 000000000..01ff7c16c
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Icon-Small-50@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Icon-Small.png b/e2e/tests-app-ng/app/App_Resources/iOS/Icon-Small.png
new file mode 100755
index 000000000..9e13a222a
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Icon-Small.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Icon-Small@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/Icon-Small@2x.png
new file mode 100755
index 000000000..89dd84cd8
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/Icon-Small@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/Info.plist b/e2e/tests-app-ng/app/App_Resources/iOS/Info.plist
new file mode 100644
index 000000000..ea3e3ea23
--- /dev/null
+++ b/e2e/tests-app-ng/app/App_Resources/iOS/Info.plist
@@ -0,0 +1,47 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleDisplayName
+ ${PRODUCT_NAME}
+ CFBundleExecutable
+ ${EXECUTABLE_NAME}
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ ${PRODUCT_NAME}
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1.0
+ LSRequiresIPhoneOS
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIRequiresFullScreen
+
+ UIRequiredDeviceCapabilities
+
+ armv7
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+
+
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/LaunchScreen.storyboard b/e2e/tests-app-ng/app/App_Resources/iOS/LaunchScreen.storyboard
new file mode 100644
index 000000000..2ad9471e1
--- /dev/null
+++ b/e2e/tests-app-ng/app/App_Resources/iOS/LaunchScreen.storyboard
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/build.xcconfig b/e2e/tests-app-ng/app/App_Resources/iOS/build.xcconfig
new file mode 100644
index 000000000..9d738435d
--- /dev/null
+++ b/e2e/tests-app-ng/app/App_Resources/iOS/build.xcconfig
@@ -0,0 +1,7 @@
+// You can add custom settings here
+// for example you can uncomment the following line to force distribution code signing
+// CODE_SIGN_IDENTITY = iPhone Distribution
+// To build for device with XCode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
+// DEVELOPMENT_TEAM = YOUR_TEAM_ID;
+ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/icon-40.png b/e2e/tests-app-ng/app/App_Resources/iOS/icon-40.png
new file mode 100755
index 000000000..9b36ac4fe
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/icon-40.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/icon-40@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/icon-40@2x.png
new file mode 100755
index 000000000..8ce4b8899
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/icon-40@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/icon-60.png b/e2e/tests-app-ng/app/App_Resources/iOS/icon-60.png
new file mode 100755
index 000000000..d2e951831
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/icon-60.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/icon-60@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/icon-60@2x.png
new file mode 100755
index 000000000..693f67f66
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/icon-60@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/icon-72.png b/e2e/tests-app-ng/app/App_Resources/iOS/icon-72.png
new file mode 100755
index 000000000..556bdd688
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/icon-72.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/icon-72@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/icon-72@2x.png
new file mode 100755
index 000000000..4f69cb25b
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/icon-72@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/icon-76.png b/e2e/tests-app-ng/app/App_Resources/iOS/icon-76.png
new file mode 100755
index 000000000..1c659c62a
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/icon-76.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/icon-76@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/icon-76@2x.png
new file mode 100755
index 000000000..bcc126d30
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/icon-76@2x.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/icon.png b/e2e/tests-app-ng/app/App_Resources/iOS/icon.png
new file mode 100755
index 000000000..beea81999
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/icon.png differ
diff --git a/e2e/tests-app-ng/app/App_Resources/iOS/icon@2x.png b/e2e/tests-app-ng/app/App_Resources/iOS/icon@2x.png
new file mode 100755
index 000000000..c3dc7b035
Binary files /dev/null and b/e2e/tests-app-ng/app/App_Resources/iOS/icon@2x.png differ
diff --git a/e2e/tests-app-ng/app/action-bar/action-bar-first.component.ts b/e2e/tests-app-ng/app/action-bar/action-bar-first.component.ts
new file mode 100644
index 000000000..2eaac6aed
--- /dev/null
+++ b/e2e/tests-app-ng/app/action-bar/action-bar-first.component.ts
@@ -0,0 +1,64 @@
+import { Component } from "@angular/core";
+
+@Component({
+ selector: "first-action-bar",
+ template: `
+
+
+
+
+
+
+
+
+
+
+
+ `,
+})
+export class FirstActionBarComponent {
+
+ public counterShare: number = 0;
+ public counterDelete: number = 0;
+ public show: boolean = true;
+
+ public get messageShare(): string {
+ if (this.counterShare === 1) {
+ return this.counterShare + " share tap";
+ } else {
+ return this.counterShare + " share taps";
+ }
+ }
+
+ public get messageDelete(): string {
+ if (this.counterDelete === 1) {
+ return this.counterDelete + " delete tap";
+ } else {
+ return this.counterDelete + " delete taps";
+ }
+ }
+
+ public onShare() {
+ this.counterShare++;
+ console.log("Share button tapped!");
+ }
+
+ public onTap() {
+ console.log("FirstComponent.Tapped!");
+ }
+
+ public onDelete() {
+ this.counterDelete++;
+ console.log("Delete button tapped!");
+ }
+}
diff --git a/e2e/tests-app-ng/app/action-bar/action-bar-nested.component.ts b/e2e/tests-app-ng/app/action-bar/action-bar-nested.component.ts
new file mode 100644
index 000000000..6e1f9a317
--- /dev/null
+++ b/e2e/tests-app-ng/app/action-bar/action-bar-nested.component.ts
@@ -0,0 +1,35 @@
+import { Component } from "@angular/core";
+
+@Component({
+ selector: "nested-component",
+ template: `
+
+
+
+
+
+
+
+
+
+
+ `,
+})
+export class NestedComponent {
+
+ public counter: number = 0;
+ public show: boolean = true;
+
+ public get message(): string {
+ if (this.counter === 1) {
+ return this.counter + " custom tap";
+ } else {
+ return this.counter + " custom taps";
+ }
+ }
+
+ public onTap() {
+ this.counter++;
+ console.log("NestedComponent.Tapped!");
+ }
+}
diff --git a/e2e/tests-app-ng/app/action-bar/action-bar-second.component.ts b/e2e/tests-app-ng/app/action-bar/action-bar-second.component.ts
new file mode 100644
index 000000000..c3d9e873f
--- /dev/null
+++ b/e2e/tests-app-ng/app/action-bar/action-bar-second.component.ts
@@ -0,0 +1,33 @@
+import { Component } from "@angular/core";
+
+@Component({
+ selector: "second-action-bar",
+ template: `
+
+
+
+
+
+
+
+
+
+ `,
+})
+export class SecondActionBarComponent {
+
+ public counter: number = 0;
+
+ public get message(): string {
+ if (this.counter === 1) {
+ return this.counter + " tap";
+ } else {
+ return this.counter + " taps";
+ }
+ }
+
+ public onTap() {
+ this.counter++;
+ console.log("SecondComponent.Tapped!");
+ }
+}
diff --git a/e2e/tests-app-ng/app/app.css b/e2e/tests-app-ng/app/app.css
new file mode 100644
index 000000000..067c61478
--- /dev/null
+++ b/e2e/tests-app-ng/app/app.css
@@ -0,0 +1,19 @@
+@import '~nativescript-theme-core/css/core.light.css';
+
+button {
+ font-size: 13;
+}
+
+label {
+ text-align: center;
+}
+
+.tab-view-container {
+ font-family: 'Courier'; /* Enabling this results in the error and shows a blank TabView */
+}
+
+.btnIcon {
+ font-family: 'FontAwesome';
+ font-size: 30
+}
+
diff --git a/e2e/tests-app-ng/app/app.module.ngfactory.d.ts b/e2e/tests-app-ng/app/app.module.ngfactory.d.ts
new file mode 100644
index 000000000..4ead4ec18
--- /dev/null
+++ b/e2e/tests-app-ng/app/app.module.ngfactory.d.ts
@@ -0,0 +1,5 @@
+/*
+* A dynamically generated module when compiled with AoT.
+*/
+// tslint:disable-next-line
+export const AppModuleNgFactory: any;
diff --git a/e2e/tests-app-ng/app/app.module.ts b/e2e/tests-app-ng/app/app.module.ts
new file mode 100644
index 000000000..1ac14641e
--- /dev/null
+++ b/e2e/tests-app-ng/app/app.module.ts
@@ -0,0 +1,27 @@
+import { NgModule, NgModuleFactoryLoader, NO_ERRORS_SCHEMA } from "@angular/core";
+import { NativeScriptModule } from "nativescript-angular/nativescript.module";
+
+import { NavigationMainPageRouterComponent } from "./main/main-page-router-outlet";
+import { routableComponents, routes } from "./app.routes";
+import { NativeScriptRouterModule } from "nativescript-angular/router";
+import { NativeScriptFormsModule } from "nativescript-angular/forms";
+import { NestedComponent } from "./action-bar/action-bar-nested.component";
+import { CustomTemplateComponent } from "./list-view/list-view-item-template.component";
+
+@NgModule({
+ declarations: [
+ NavigationMainPageRouterComponent,
+ NestedComponent,
+ CustomTemplateComponent,
+ ...routableComponents,
+ ],
+ bootstrap: [NavigationMainPageRouterComponent],
+ imports: [
+ NativeScriptModule,
+ NativeScriptFormsModule,
+ NativeScriptRouterModule,
+ NativeScriptRouterModule.forRoot(routes),
+ ],
+ schemas: [NO_ERRORS_SCHEMA],
+})
+export class AppModule { }
diff --git a/e2e/tests-app-ng/app/app.routes.ts b/e2e/tests-app-ng/app/app.routes.ts
new file mode 100644
index 000000000..dfe3bafe0
--- /dev/null
+++ b/e2e/tests-app-ng/app/app.routes.ts
@@ -0,0 +1,185 @@
+import { Component } from "@angular/core";
+
+import { FirstActionBarComponent } from "./action-bar/action-bar-first.component";
+import { SecondActionBarComponent } from "./action-bar/action-bar-second.component";
+
+import { AppComponent } from "./template/app.component";
+
+import { FirstComponent } from "./router/router-outlet/first.component";
+import { SecondComponent } from "./router/router-outlet/second.component";
+import { NavigationComponent, NAVIGATION_SUBROUTES } from "./router/router-outlet/navigation.component";
+import { LazyNavigationComponent } from "./router/lazy-module-navigation/lazy-navigation.component";
+
+import { BindingComponent } from "./binding/binding-page.component";
+
+import { ListViewComponent } from "./list-view/list-view-page.component";
+import { ListViewControlComponent } from "./list-view/list-view-item-template.component";
+import { ListViewAsyncPipeComponent } from "./list-view/async-pipe-template.component";
+import { ListViewMainPageComponent } from "./list-view/list-view-main-page.component";
+import { ListViewWithNestedTemplateComponent } from "./list-view/list-view-nested-template.component";
+import { ListViewMultipleTemplatesComponent } from "./list-view/multiple-templates.component";
+
+import { ListPickerMainPageComponent } from "./list-picker/list-picker-main-page.component";
+import { ListPickerComponent } from "./list-picker/list-picker.component";
+
+import {
+ ModalTestComponent,
+ ModalTestWithPushStrategyComponent,
+ ModalContentComponent
+} from "./modal/modal-dialogs/modal-dialog.component";
+import { ModalViewMainPageComponent } from "./modal/modal-view-main-page.component";
+import { LazyLoadModalComponent } from "./modal/lazy/lazy-load-modal.component";
+
+import { TabViewComponent } from "./tab-view/tab-view.component";
+
+import { NavigationOptionsComponent } from "./navigation-options/navigation-options.component";
+import { NavigationInfoComponent } from "./navigation-options/navigation-info.component";
+
+import { SegmentedBarMainPageComponent } from "./segmented-bar/segmented-bar-main-page.component";
+import { SegmentedBarIssue649Component } from "./segmented-bar/issue-649.component";
+
+import { DatePickerMainPageComponent } from "./date-picker/date-picker-main-page.component";
+import { DatePickerIssue324Component } from "./date-picker/issue-324.component";
+import { ButtonMainPageComponent } from "./button/button-main-page.component";
+import { ButtonTextAlignmentComponent } from "./button/button-text-alignment.component";
+
+import { MainComponent } from "./main/main-page-router-outlet";
+
+export const routableComponents = [
+ MainComponent,
+ ModalContentComponent,
+ AppComponent,
+
+ NavigationComponent,
+ LazyNavigationComponent,
+
+ FirstComponent,
+ SecondComponent,
+
+ FirstActionBarComponent,
+ SecondActionBarComponent,
+
+ BindingComponent,
+
+ ListViewMainPageComponent,
+ ListViewComponent,
+ ListViewControlComponent,
+ ListViewAsyncPipeComponent,
+ ListViewWithNestedTemplateComponent,
+ ListViewMultipleTemplatesComponent,
+
+ ListPickerComponent,
+ ListPickerMainPageComponent,
+
+ ModalViewMainPageComponent,
+ ModalTestComponent,
+ ModalTestWithPushStrategyComponent,
+ LazyLoadModalComponent,
+
+ TabViewComponent,
+
+ NavigationOptionsComponent,
+ NavigationInfoComponent,
+ SegmentedBarMainPageComponent,
+ SegmentedBarIssue649Component,
+ DatePickerMainPageComponent,
+ DatePickerIssue324Component,
+ ButtonMainPageComponent,
+ ButtonTextAlignmentComponent,
+];
+
+// Set isNavigatable: true if the page is a mian page to other sub pages
+export const routes = [
+ { path: "", component: MainComponent, data: { title: "" } },
+ { path: "", component: ModalContentComponent, data: { title: "" } },
+ { path: "template", component: AppComponent, data: { title: "Template", isNavigatable: true } },
+
+ {
+ path: "router",
+ component: NavigationComponent,
+ children: NAVIGATION_SUBROUTES,
+ data: { title: "Router", isNavigatable: true }
+ },
+ { path: "lazy-router", component: LazyNavigationComponent, data: { title: "Lazy Router", isNavigatable: true } },
+
+ { path: "first", component: FirstComponent, data: { title: "First", isNavigatable: true } },
+ { path: "second", component: SecondComponent, data: { title: "Second", isNavigatable: true } },
+
+ {
+ path: "first-action-bar",
+ component: FirstActionBarComponent,
+ data: { title: "ActionBar1", isNavigatable: true }
+ },
+ {
+ path: "second-action-bar",
+ component: SecondActionBarComponent,
+ data: { title: "ActionBar2", isNavigatable: true }
+ },
+
+ { path: "binding", component: BindingComponent, data: { title: "Binding", isNavigatable: true } },
+
+ {
+ path: "ListViewExamples",
+ component: ListViewMainPageComponent,
+ data: { title: "ListViewExamples", isNavigatable: true }
+ },
+ { path: "ListViewExamples/commonTemplate", component: ListViewComponent, data: { title: "commonTemplate" } },
+ { path: "ListViewExamples/customTemplate", component: ListViewControlComponent, data: { title: "customTemplate" } },
+ { path: "listView/asyncPipeTemplate", component: ListViewAsyncPipeComponent, data: { title: "asyncPipeTemplate" } },
+ {
+ path: "listView/nestedTemplate",
+ component: ListViewWithNestedTemplateComponent,
+ data: { title: "nestedTemplate" }
+ },
+ {
+ path: "listView/multiple-templates",
+ component: ListViewMultipleTemplatesComponent,
+ data: { title: "multipleTemplates" }
+ },
+ {
+ path: "listPicker",
+ component: ListPickerMainPageComponent,
+ data: { title: "ListPicker", isNavigatable: true }
+ },
+ {
+ path: "listPicker/list-picker",
+ component: ListPickerComponent,
+ data: { title: "ListPicker", isNavigatable: false }
+ },
+ { path: "modal", component: ModalViewMainPageComponent, data: { title: "Modals", isNavigatable: true } },
+ { path: "modal/modal-dialogs", component: ModalTestComponent, data: { title: "modal" } },
+ {
+ path: "modal/modal-dialogs-push",
+ component: ModalTestWithPushStrategyComponent,
+ data: { title: "modal(onPush)" }
+ },
+ { path: "modal/lazy", component: LazyLoadModalComponent, data: { title: "modal(lazy)" } },
+
+ { path: "tab-view", component: TabViewComponent, data: { title: "tab-view", isNavigatable: true } },
+
+ { path: "nav-options", component: NavigationOptionsComponent, data: { title: "nav-options", isNavigatable: true } },
+ { path: "nav-info", component: NavigationInfoComponent, data: { title: "nav-info" } },
+
+ {
+ path: "segmented-bar",
+ component: SegmentedBarMainPageComponent,
+ data: { title: "SegmentedBar", isNavigatable: true }
+ },
+ { path: "segmented-bar/issue-649", component: SegmentedBarIssue649Component, data: { title: "issue-649" } },
+
+ { path: "date-picker", component: DatePickerMainPageComponent, data: { title: "DatePicker", isNavigatable: true } },
+ { path: "date-picker/issue-324", component: DatePickerIssue324Component, data: { title: "issue-324" } },
+
+ { path: "button", component: ButtonMainPageComponent, data: { title: "Button", isNavigatable: true } },
+ {
+ path: "button/button-text-alignment",
+ component: ButtonTextAlignmentComponent,
+ data: { title: "button-text-alignment" }
+ },
+
+ // Needed for AoT compilation
+ {
+ path: "lazy",
+ loadChildren: "./lazy/lazy.module#LazyModule"
+ },
+];
diff --git a/e2e/tests-app-ng/app/binding/binding-page.component.ts b/e2e/tests-app-ng/app/binding/binding-page.component.ts
new file mode 100644
index 000000000..67d37d7de
--- /dev/null
+++ b/e2e/tests-app-ng/app/binding/binding-page.component.ts
@@ -0,0 +1,85 @@
+import { Component } from "@angular/core";
+
+@Component({
+ selector: "binding",
+ template: `
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ `
+})
+
+export class BindingComponent {
+ private _oneWayDataBinding: string;
+ private _twoWayDataBinding: string;
+ private _curlyBracket: string;
+ private _result: string;
+ public completedDate: Date = new Date(2016, 5, 3);
+
+ constructor() {
+ this.refresh();
+ }
+
+ get oneWayDataBinding() {
+ return this._oneWayDataBinding;
+ }
+
+ get twoWayDataBinding() {
+ return this._twoWayDataBinding;
+ }
+
+ set twoWayDataBinding(value: string) {
+ this._twoWayDataBinding = value;
+ }
+
+ get curlyBracket() {
+ return this._curlyBracket;
+ }
+
+ set curlyBracket(value: string) {
+ this._curlyBracket = value;
+ }
+
+ get results() {
+ return this._result;
+ }
+
+ changeValues() {
+ this._oneWayDataBinding = this.twoWayDataBinding;
+ this._curlyBracket = this.twoWayDataBinding;
+ this._twoWayDataBinding = this.twoWayDataBinding;
+ }
+
+ getValues() {
+ this._result = "";
+ this._result += "one-way value is " + this.oneWayDataBinding + "; \n";
+ this._result += "two-way value is " + this.twoWayDataBinding + "; \n";
+ this._result += "curly-bracket value is " + this.curlyBracket + "; \n";
+ }
+
+ private refresh() {
+ this._oneWayDataBinding = "1";
+ this._twoWayDataBinding = "2";
+ this._curlyBracket = "5";
+ this._result = "";
+ }
+}
diff --git a/e2e/tests-app-ng/app/button/button-main-page.component.ts b/e2e/tests-app-ng/app/button/button-main-page.component.ts
new file mode 100644
index 000000000..f7be5ec8d
--- /dev/null
+++ b/e2e/tests-app-ng/app/button/button-main-page.component.ts
@@ -0,0 +1,11 @@
+import { Component } from "@angular/core";
+
+@Component({
+ selector: "main",
+ template: `
+
+
+
+ `,
+})
+export class ButtonMainPageComponent { }
diff --git a/e2e/tests-app-ng/app/button/button-text-alignment.component.ts b/e2e/tests-app-ng/app/button/button-text-alignment.component.ts
new file mode 100644
index 000000000..ddd4ec7d6
--- /dev/null
+++ b/e2e/tests-app-ng/app/button/button-text-alignment.component.ts
@@ -0,0 +1,52 @@
+import { Observable as RxObservable } from "rxjs";
+import {
+ Component,
+ Input,
+ ChangeDetectionStrategy
+} from "@angular/core";
+
+@Component({
+ styles: [ ".odd { background-color : yellow } " +
+ ".even{ background-color : green } " +
+ ".test{ font-family:FontAwesome; font-size:70 }"],
+ template: `
+
+
+
+
+
+ `
+})
+export class ButtonTextAlignmentComponent {
+
+ public get test(): string {
+ return "\ntest";
+ }
+}
diff --git a/e2e/tests-app-ng/app/date-picker/date-picker-main-page.component.ts b/e2e/tests-app-ng/app/date-picker/date-picker-main-page.component.ts
new file mode 100644
index 000000000..1642196e2
--- /dev/null
+++ b/e2e/tests-app-ng/app/date-picker/date-picker-main-page.component.ts
@@ -0,0 +1,10 @@
+import { Component } from "@angular/core";
+
+@Component({
+ template: `
+
+
+
+ `,
+})
+export class DatePickerMainPageComponent { }
diff --git a/e2e/tests-app-ng/app/date-picker/issue-324.component.ts b/e2e/tests-app-ng/app/date-picker/issue-324.component.ts
new file mode 100644
index 000000000..70aa9192b
--- /dev/null
+++ b/e2e/tests-app-ng/app/date-picker/issue-324.component.ts
@@ -0,0 +1,23 @@
+import { Component } from "@angular/core";
+
+@Component({
+ template: `
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ `,
+})
+
+export class DatePickerIssue324Component {
+}
diff --git a/e2e/tests-app-ng/app/fonts/FontAwesome.ttf b/e2e/tests-app-ng/app/fonts/FontAwesome.ttf
new file mode 100644
index 000000000..35acda2fa
Binary files /dev/null and b/e2e/tests-app-ng/app/fonts/FontAwesome.ttf differ
diff --git a/e2e/tests-app-ng/app/fonts/Pacifico.ttf b/e2e/tests-app-ng/app/fonts/Pacifico.ttf
new file mode 100644
index 000000000..6d47cdc9a
Binary files /dev/null and b/e2e/tests-app-ng/app/fonts/Pacifico.ttf differ
diff --git a/e2e/tests-app-ng/app/fonts/Sofia.otf b/e2e/tests-app-ng/app/fonts/Sofia.otf
new file mode 100644
index 000000000..1f76d2d58
Binary files /dev/null and b/e2e/tests-app-ng/app/fonts/Sofia.otf differ
diff --git a/e2e/tests-app-ng/app/lazy/lazy.component.html b/e2e/tests-app-ng/app/lazy/lazy.component.html
new file mode 100644
index 000000000..6ffd7d2a6
--- /dev/null
+++ b/e2e/tests-app-ng/app/lazy/lazy.component.html
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
diff --git a/e2e/tests-app-ng/app/lazy/lazy.component.ts b/e2e/tests-app-ng/app/lazy/lazy.component.ts
new file mode 100644
index 000000000..8e5354559
--- /dev/null
+++ b/e2e/tests-app-ng/app/lazy/lazy.component.ts
@@ -0,0 +1,30 @@
+import { Component } from "@angular/core";
+
+import { RouterExtensions } from "nativescript-angular/router";
+import { ModalDialogParams } from "nativescript-angular/directives/dialogs";
+
+@Component({
+ selector: "ns-lazy",
+ moduleId: module.id,
+ templateUrl: "./lazy.component.html",
+})
+export class LazyComponent {
+ public isModal: boolean;
+
+ constructor(
+ private router: RouterExtensions,
+ private params: ModalDialogParams
+ ) {
+ if (params.context.isModal) {
+ this.isModal = true;
+ }
+ }
+
+ public close() {
+ if (this.isModal) {
+ this.params.closeCallback();
+ } else {
+ this.router.back();
+ }
+ }
+}
diff --git a/e2e/tests-app-ng/app/lazy/lazy.module.ts b/e2e/tests-app-ng/app/lazy/lazy.module.ts
new file mode 100644
index 000000000..b48ea497f
--- /dev/null
+++ b/e2e/tests-app-ng/app/lazy/lazy.module.ts
@@ -0,0 +1,39 @@
+import { NativeScriptCommonModule } from "nativescript-angular/common";
+import { NativeScriptRouterModule } from "nativescript-angular/router";
+import { ModalDialogParams } from "nativescript-angular/directives/dialogs";
+
+import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
+import { Routes } from "@angular/router";
+
+import { LazyComponent } from "./lazy.component";
+
+export function modalParamsFactory() {
+ return new ModalDialogParams({}, null);
+}
+
+const routes: Routes = [
+ {
+ path: "",
+ component: LazyComponent
+ }
+];
+
+@NgModule({
+ imports: [
+ NativeScriptCommonModule,
+ NativeScriptRouterModule.forChild(routes),
+ ],
+ declarations: [
+ LazyComponent
+ ],
+ entryComponents: [
+ LazyComponent
+ ],
+ providers: [
+ // allows same component to be routed to
+ // or lazily loaded via modal
+ { provide: ModalDialogParams, useFactory: modalParamsFactory }
+ ],
+ schemas: [NO_ERRORS_SCHEMA]
+})
+export class LazyModule { }
diff --git a/e2e/tests-app-ng/app/list-picker/list-picker-main-page.component.ts b/e2e/tests-app-ng/app/list-picker/list-picker-main-page.component.ts
new file mode 100644
index 000000000..f1756d9ef
--- /dev/null
+++ b/e2e/tests-app-ng/app/list-picker/list-picker-main-page.component.ts
@@ -0,0 +1,11 @@
+import { Component } from "@angular/core";
+
+@Component({
+ selector: "main",
+ template: `
+
+
+
+ `,
+})
+export class ListPickerMainPageComponent { }
diff --git a/e2e/tests-app-ng/app/list-picker/list-picker.component.ts b/e2e/tests-app-ng/app/list-picker/list-picker.component.ts
new file mode 100644
index 000000000..d6eff5efd
--- /dev/null
+++ b/e2e/tests-app-ng/app/list-picker/list-picker.component.ts
@@ -0,0 +1,42 @@
+import {
+ Component,
+ Input,
+ ChangeDetectionStrategy
+} from "@angular/core";
+
+@Component({
+ moduleId: module.id,
+ selector: "list",
+ styleUrls: ["./list-picker.css"],
+ template: `
+
+
+
+
+ `,
+ changeDetection: ChangeDetectionStrategy.OnPush
+})
+
+export class ListPickerComponent {
+ public pokemons: Array;
+ public picked: string;
+ public selectedIndex: number;
+
+ private pokemonList = ["Bulbasaur", "Parasect", "Venonat", "Venomoth", "Diglett",
+ "Dugtrio", "Meowth", "Persian", "Psyduck", "Arcanine", "Poliwrath", "Machoke"];
+
+ constructor() {
+ this.pokemons = [];
+
+ for (let i = 0; i < this.pokemonList.length; i++) {
+ this.pokemons.push(this.pokemonList[i]);
+ }
+ }
+
+ public selectedIndexChanged(picker) {
+ console.log("picker selection: " + picker.selectedIndex);
+ this.picked = this.pokemons[picker.selectedIndex];
+ }
+}
diff --git a/e2e/tests-app-ng/app/list-picker/list-picker.css b/e2e/tests-app-ng/app/list-picker/list-picker.css
new file mode 100644
index 000000000..314c79fa9
--- /dev/null
+++ b/e2e/tests-app-ng/app/list-picker/list-picker.css
@@ -0,0 +1,4 @@
+.listPicker {
+ color: green;
+ background-color: black;
+}
diff --git a/e2e/tests-app-ng/app/list-view/async-pipe-template.component.ts b/e2e/tests-app-ng/app/list-view/async-pipe-template.component.ts
new file mode 100644
index 000000000..7e33b639d
--- /dev/null
+++ b/e2e/tests-app-ng/app/list-view/async-pipe-template.component.ts
@@ -0,0 +1,52 @@
+import { Observable as RxObservable } from "rxjs";
+import { Component, Input, ChangeDetectionStrategy } from "@angular/core";
+import { DataItem } from "./data-item";
+
+@Component({
+ selector: "list-test-async",
+ template: `
+
+
+
+
+
+
+
+
+
+
+ `,
+ changeDetection: ChangeDetectionStrategy.OnPush
+})
+export class ListViewAsyncPipeComponent {
+ public myItems: RxObservable>;
+ public output: string;
+
+ constructor() {
+ let items = [];
+ for (let i = 0; i < 3; i++) {
+ items.push(new DataItem(i, "data item " + i));
+ }
+
+ let subscr;
+ this.myItems = RxObservable.create(subscriber => {
+ subscr = subscriber;
+ subscriber.next(items);
+ return function () {
+ console.log("Unsubscribe called!!!");
+ this.output = "Unsubscribe called!!!";
+ };
+ });
+
+ let counter = 2;
+ const intervalId = setInterval(() => {
+ counter++;
+ items.push(new DataItem(counter, "data item " + counter));
+ subscr.next(items);
+ }, 1000);
+
+ setTimeout(() => {
+ clearInterval(intervalId);
+ }, 10000);
+ }
+}
diff --git a/e2e/tests-app-ng/app/list-view/data-item.ts b/e2e/tests-app-ng/app/list-view/data-item.ts
new file mode 100644
index 000000000..f9774a293
--- /dev/null
+++ b/e2e/tests-app-ng/app/list-view/data-item.ts
@@ -0,0 +1,3 @@
+export class DataItem {
+ constructor(public id: number, public name: string) { }
+}
diff --git a/e2e/tests-app-ng/app/list-view/list-view-item-template.component.ts b/e2e/tests-app-ng/app/list-view/list-view-item-template.component.ts
new file mode 100644
index 000000000..e0e31713b
--- /dev/null
+++ b/e2e/tests-app-ng/app/list-view/list-view-item-template.component.ts
@@ -0,0 +1,38 @@
+import { Component, Input, ChangeDetectionStrategy } from "@angular/core";
+
+@Component({
+ selector: "custom-template",
+ template: `
+
+
+
+ `
+})
+export class CustomTemplateComponent {
+ @Input() data: any;
+}
+
+@Component({
+ selector: "list-test",
+ template: `
+
+
+
+
+
+
+
+ `,
+ changeDetection: ChangeDetectionStrategy.OnPush
+})
+export class ListViewControlComponent {
+ public myItems: Array;
+ private counter: number;
+
+ constructor() {
+ const list = [{ "text": "a" }, { "text": "b" }];
+ const list1 = [{ "text": "c" }, { "text": "d" }];
+ this.myItems = [{ "list": list }, { "list": list1 }];
+ }
+}
diff --git a/e2e/tests-app-ng/app/list-view/list-view-main-page.component.ts b/e2e/tests-app-ng/app/list-view/list-view-main-page.component.ts
new file mode 100644
index 000000000..d08c565ba
--- /dev/null
+++ b/e2e/tests-app-ng/app/list-view/list-view-main-page.component.ts
@@ -0,0 +1,15 @@
+import { Component } from "@angular/core";
+
+@Component({
+ selector: "main",
+ template: `
+
+
+
+
+
+
+
+ `,
+})
+export class ListViewMainPageComponent { }
diff --git a/e2e/tests-app-ng/app/list-view/list-view-nested-template.component.ts b/e2e/tests-app-ng/app/list-view/list-view-nested-template.component.ts
new file mode 100644
index 000000000..085104737
--- /dev/null
+++ b/e2e/tests-app-ng/app/list-view/list-view-nested-template.component.ts
@@ -0,0 +1,22 @@
+import { Component, ChangeDetectionStrategy } from "@angular/core";
+
+@Component({
+ selector: "list-test",
+ template: `
+
+
+
+
+
+
+
+
+
+
+
+ `,
+ changeDetection: ChangeDetectionStrategy.OnPush
+})
+export class ListViewWithNestedTemplateComponent {
+ public myItems: string[] = ["one", "two"];
+}
diff --git a/e2e/tests-app-ng/app/list-view/list-view-page.component.ts b/e2e/tests-app-ng/app/list-view/list-view-page.component.ts
new file mode 100644
index 000000000..0a92cfdcc
--- /dev/null
+++ b/e2e/tests-app-ng/app/list-view/list-view-page.component.ts
@@ -0,0 +1,41 @@
+import { Component, Input, ChangeDetectionStrategy } from "@angular/core";
+import { DataItem } from "./data-item";
+
+@Component({
+ moduleId: module.id,
+ selector: "list-test",
+ styleUrls: ["./list-view-page.css"],
+ template: `
+
+
+
+
+
+
+
+
+
+
+
+ `
+})
+
+export class ListViewComponent {
+ public myItems: Array;
+ public results: string;
+ private counter: number;
+
+ constructor() {
+ this.results = "";
+ this.myItems = [];
+ this.counter = 0;
+ for (let i = 0; i < 5; i++) {
+ this.myItems.push(new DataItem(i, "data item " + i));
+ this.counter = i;
+ }
+ }
+
+ public onItemTap(args) {
+ this.results += "ItemTapped: " + args.index + "; \n";
+ }
+}
diff --git a/e2e/tests-app-ng/app/list-view/list-view-page.css b/e2e/tests-app-ng/app/list-view/list-view-page.css
new file mode 100644
index 000000000..d29d67f85
--- /dev/null
+++ b/e2e/tests-app-ng/app/list-view/list-view-page.css
@@ -0,0 +1,7 @@
+.odd {
+ background-color: red;
+}
+
+.even {
+ background-color: blue;
+}
\ No newline at end of file
diff --git a/e2e/tests-app-ng/app/list-view/multiple-templates.component.ts b/e2e/tests-app-ng/app/list-view/multiple-templates.component.ts
new file mode 100644
index 000000000..00c92f288
--- /dev/null
+++ b/e2e/tests-app-ng/app/list-view/multiple-templates.component.ts
@@ -0,0 +1,36 @@
+import { Observable as RxObservable } from "rxjs";
+import { Component, Input, ChangeDetectionStrategy } from "@angular/core";
+import { DataItem } from "./data-item";
+
+@Component({
+ styles: [".odd { background-color : yellow } .even{ background-color : green }"],
+ template: `
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ `
+})
+export class ListViewMultipleTemplatesComponent {
+ public myItems: Array = [];
+
+ constructor() {
+ for (let i = 0; i < 12; i++) {
+ this.myItems.push(new DataItem(i, "data item " + i));
+ }
+ }
+}
diff --git a/e2e/tests-app-ng/app/main.aot.ts b/e2e/tests-app-ng/app/main.aot.ts
new file mode 100644
index 000000000..9a731884a
--- /dev/null
+++ b/e2e/tests-app-ng/app/main.aot.ts
@@ -0,0 +1,5 @@
+import { platformNativeScript } from "nativescript-angular/platform-static";
+
+import { AppModuleNgFactory } from "./app.module.ngfactory";
+
+platformNativeScript().bootstrapModuleFactory(AppModuleNgFactory);
diff --git a/e2e/tests-app-ng/app/main.ts b/e2e/tests-app-ng/app/main.ts
new file mode 100644
index 000000000..985fa3445
--- /dev/null
+++ b/e2e/tests-app-ng/app/main.ts
@@ -0,0 +1,5 @@
+import { platformNativeScriptDynamic } from "nativescript-angular/platform";
+
+import { AppModule } from "./app.module";
+
+platformNativeScriptDynamic().bootstrapModule(AppModule);
diff --git a/e2e/tests-app-ng/app/main/main-page-router-outlet.ts b/e2e/tests-app-ng/app/main/main-page-router-outlet.ts
new file mode 100644
index 000000000..727262b01
--- /dev/null
+++ b/e2e/tests-app-ng/app/main/main-page-router-outlet.ts
@@ -0,0 +1,63 @@
+import { Component } from "@angular/core";
+import * as platform from "tns-core-modules/platform";
+
+@Component({
+ selector: "main",
+ styles: [
+ ".main-btn{" +
+ "margin-right:5; margin-bottom:5;" +
+ "padding-left:5; padding-right:5;" +
+ "background-color:#28a745;color:white;" +
+ "border-radius:5;}"],
+ template: `
+
+
+
+ `,
+})
+export class MainComponent {
+ private _pages = [];
+ private _routes = require("../app.routes").routes;
+ private _orientation: string = "vertical";
+
+ constructor() {
+ const navigatableRoutes = this._routes.filter((item) => {
+ return item.data && item.data.isNavigatable && item.path;
+ });
+
+ const examples = navigatableRoutes.sort((a, b) => {
+ if (a.data.title > b.data.title) {
+ return 1;
+ }
+
+ if (a.data.title < b.data.title) {
+ return -1;
+ }
+
+ return 0;
+ });
+
+ this._pages = examples;
+ if (platform.isAndroid) {
+ this._orientation = "horizontal";
+ }
+ }
+
+ get pages() {
+ return this._pages;
+ }
+
+ get orientation() {
+ return this._orientation;
+ }
+}
+
+@Component({
+ selector: "navigation-main",
+ template: ``
+})
+export class NavigationMainPageRouterComponent { }
diff --git a/e2e/tests-app-ng/app/modal/lazy/lazy-load-modal.component.ts b/e2e/tests-app-ng/app/modal/lazy/lazy-load-modal.component.ts
new file mode 100644
index 000000000..0e55c4653
--- /dev/null
+++ b/e2e/tests-app-ng/app/modal/lazy/lazy-load-modal.component.ts
@@ -0,0 +1,38 @@
+import {
+ Component,
+ ComponentFactory,
+ NgModuleFactory,
+ NgModuleFactoryLoader,
+ ViewContainerRef,
+} from "@angular/core";
+
+import { NSModuleFactoryLoader } from "nativescript-angular/router";
+import { ModalDialogService } from "nativescript-angular/directives/dialogs";
+
+import { LazyComponent } from "../../lazy/lazy.component";
+
+@Component({
+ template: `
+
+ `
+})
+export class LazyLoadModalComponent {
+ constructor(
+ private moduleLoader: NgModuleFactoryLoader,
+ private vcRef: ViewContainerRef,
+ private modalService: ModalDialogService
+ ) { }
+
+ public openModal() {
+ this.moduleLoader.load("./lazy/lazy.module#LazyModule")
+ .then((module: NgModuleFactory) => {
+ const moduleRef = module.create(this.vcRef.parentInjector);
+
+ this.modalService.showModal(LazyComponent, {
+ moduleRef,
+ viewContainerRef: this.vcRef,
+ context: { isModal: true }
+ });
+ });
+ }
+}
diff --git a/e2e/tests-app-ng/app/modal/modal-dialogs/modal-dialog.component.ts b/e2e/tests-app-ng/app/modal/modal-dialogs/modal-dialog.component.ts
new file mode 100644
index 000000000..655f5241c
--- /dev/null
+++ b/e2e/tests-app-ng/app/modal/modal-dialogs/modal-dialog.component.ts
@@ -0,0 +1,106 @@
+import {
+ Component,
+ ChangeDetectionStrategy,
+ ViewContainerRef,
+ ChangeDetectorRef
+} from "@angular/core";
+import {
+ ModalDialogService,
+ ModalDialogOptions,
+ ModalDialogParams
+} from "nativescript-angular/directives/dialogs";
+
+@Component({
+ selector: "modal-content",
+ template: `
+
+
+
+
+
+
+
+
+
+ `
+})
+export class ModalContentComponent {
+ public prompt: string;
+ constructor(private params: ModalDialogParams) {
+ this.prompt = params.context.message;
+ }
+
+ public close(res: string) {
+ this.params.closeCallback(res);
+ }
+}
+
+const TEMPLATE = `
+
+
+
+
+
+`;
+
+@Component({
+ selector: "modal-test",
+ providers: [ModalDialogService],
+ template: TEMPLATE
+})
+export class ModalTestComponent {
+ public result: string = "---";
+
+ constructor(private modal: ModalDialogService, private vcRef: ViewContainerRef) { }
+
+ public showModal() {
+ const options: ModalDialogOptions = {
+ viewContainerRef: this.vcRef,
+ context: { message: "Hello from dialog!" },
+ fullscreen: true
+ };
+
+ this.modal.showModal(ModalContentComponent, options).then((res: string) => {
+ this.result = res || "empty result";
+ });
+ }
+
+ public showModalAsync() {
+ setTimeout(() => {
+ this.showModal();
+ }, 10);
+ }
+}
+
+@Component({
+ selector: "modal-test-on-push",
+ changeDetection: ChangeDetectionStrategy.OnPush,
+ template: TEMPLATE
+})
+export class ModalTestWithPushStrategyComponent {
+ public result: string = "---";
+
+ constructor(
+ private modal: ModalDialogService,
+ private vcRef: ViewContainerRef,
+ private cdRef: ChangeDetectorRef) { }
+
+ public showModal() {
+ const options: ModalDialogOptions = {
+ viewContainerRef: this.vcRef,
+ context: { message: "Hello from dialog (onPush)!" },
+ fullscreen: true
+ };
+
+ this.modal.showModal(ModalContentComponent, options).then((res: string) => {
+ this.result = res || "empty result";
+ this.cdRef.markForCheck();
+ });
+ }
+
+ public showModalAsync() {
+ setTimeout(() => {
+ this.showModal();
+ }, 10);
+ }
+}
diff --git a/e2e/tests-app-ng/app/modal/modal-view-main-page.component.ts b/e2e/tests-app-ng/app/modal/modal-view-main-page.component.ts
new file mode 100644
index 000000000..786e8ec7b
--- /dev/null
+++ b/e2e/tests-app-ng/app/modal/modal-view-main-page.component.ts
@@ -0,0 +1,13 @@
+import { Component } from "@angular/core";
+
+@Component({
+ selector: "main",
+ template: `
+
+
+
+
+
+ `,
+})
+export class ModalViewMainPageComponent { }
diff --git a/e2e/tests-app-ng/app/navigation-options/navigation-info.component.ts b/e2e/tests-app-ng/app/navigation-options/navigation-info.component.ts
new file mode 100644
index 000000000..1815b701b
--- /dev/null
+++ b/e2e/tests-app-ng/app/navigation-options/navigation-info.component.ts
@@ -0,0 +1,28 @@
+import { Component } from "@angular/core";
+import { NSLocationStrategy } from "nativescript-angular/router/ns-location-strategy";
+import { Frame } from "tns-core-modules/ui/frame";
+
+@Component({
+ selector: "nav-info",
+ template: `
+
+
+
+
+
+
+
+ `
+})
+export class NavigationInfoComponent {
+ public frameStack: number = -1;
+ public locationStack: number = -1;
+
+ constructor(private frame: Frame, private strategy: NSLocationStrategy) { }
+
+ update() {
+ // If history is cleared: frameStack = 0, locationStack = 1
+ this.frameStack = this.frame.backStack.length;
+ this.locationStack = this.strategy.findOutlet("primary").states.length;
+ }
+}
diff --git a/e2e/tests-app-ng/app/navigation-options/navigation-options.component.ts b/e2e/tests-app-ng/app/navigation-options/navigation-options.component.ts
new file mode 100644
index 000000000..fd23438fe
--- /dev/null
+++ b/e2e/tests-app-ng/app/navigation-options/navigation-options.component.ts
@@ -0,0 +1,27 @@
+import { Component } from "@angular/core";
+import { RouterExtensions } from "nativescript-angular/router";
+
+@Component({
+ selector: "nav-options",
+ template: `
+
+
+
+
+ `
+})
+
+export class NavigationOptionsComponent {
+
+ constructor(private routerExtensions: RouterExtensions) { }
+
+ flipToNextPage() {
+ this.routerExtensions.navigate(["/nav-info"], {
+ transition: {
+ name: "flip",
+ duration: 17000,
+ curve: "linear"
+ }
+ });
+ }
+}
diff --git a/e2e/tests-app-ng/app/package.json b/e2e/tests-app-ng/app/package.json
new file mode 100644
index 000000000..bb4e575a1
--- /dev/null
+++ b/e2e/tests-app-ng/app/package.json
@@ -0,0 +1,8 @@
+{
+ "android": {
+ "v8Flags": "--expose_gc"
+ },
+ "main": "main.js",
+ "name": "tns-template-hello-world-ng",
+ "version": "3.0.0"
+}
diff --git a/e2e/tests-app-ng/app/router/lazy-module-navigation/lazy-navigation.component.ts b/e2e/tests-app-ng/app/router/lazy-module-navigation/lazy-navigation.component.ts
new file mode 100644
index 000000000..dde337885
--- /dev/null
+++ b/e2e/tests-app-ng/app/router/lazy-module-navigation/lazy-navigation.component.ts
@@ -0,0 +1,7 @@
+import { Component } from "@angular/core";
+
+@Component({
+ template: ``,
+})
+export class LazyNavigationComponent {
+}
diff --git a/e2e/tests-app-ng/app/router/router-outlet/first.component.ts b/e2e/tests-app-ng/app/router/router-outlet/first.component.ts
new file mode 100644
index 000000000..2e421dfcb
--- /dev/null
+++ b/e2e/tests-app-ng/app/router/router-outlet/first.component.ts
@@ -0,0 +1,11 @@
+import { Component } from "@angular/core";
+
+@Component({
+ selector: "first",
+ template: `
+
+
+
+ `
+})
+export class FirstComponent { }
diff --git a/e2e/tests-app-ng/app/router/router-outlet/navigation.component.css b/e2e/tests-app-ng/app/router/router-outlet/navigation.component.css
new file mode 100644
index 000000000..59cc35a5f
--- /dev/null
+++ b/e2e/tests-app-ng/app/router/router-outlet/navigation.component.css
@@ -0,0 +1,15 @@
+.title {
+ font-size: 30;
+ margin: 16;
+}
+
+.nav {
+ orientation: horizontal;
+ horizontal-align: stretch;
+ padding: 4;
+ background-color: lightblue;
+}
+
+.link {
+ margin: 10 30;
+}
\ No newline at end of file
diff --git a/e2e/tests-app-ng/app/router/router-outlet/navigation.component.ts b/e2e/tests-app-ng/app/router/router-outlet/navigation.component.ts
new file mode 100644
index 000000000..41b0b71d5
--- /dev/null
+++ b/e2e/tests-app-ng/app/router/router-outlet/navigation.component.ts
@@ -0,0 +1,28 @@
+import { Component } from "@angular/core";
+import { FirstComponent } from "./first.component";
+import { SecondComponent } from "./second.component";
+
+@Component({
+ moduleId: module.id,
+ selector: "navigation-test",
+ styleUrls: ["./navigation.component.css"],
+ template: `
+
+
+
+
+
+
+
+
+ `
+})
+export class NavigationComponent { }
+
+export const NAVIGATION_SUBROUTES = [
+ { path: "", redirectTo: "first", pathMatch: "full" },
+ { path: "first", component: FirstComponent },
+ { path: "second", component: SecondComponent },
+];
diff --git a/e2e/tests-app-ng/app/router/router-outlet/second.component.ts b/e2e/tests-app-ng/app/router/router-outlet/second.component.ts
new file mode 100644
index 000000000..8a8f4dfdb
--- /dev/null
+++ b/e2e/tests-app-ng/app/router/router-outlet/second.component.ts
@@ -0,0 +1,12 @@
+import { Component } from "@angular/core";
+
+@Component({
+ selector: "second",
+ template: `
+
+
+
+ `
+})
+export class SecondComponent { }
+
diff --git a/e2e/tests-app-ng/app/segmented-bar/issue-649.component.ts b/e2e/tests-app-ng/app/segmented-bar/issue-649.component.ts
new file mode 100644
index 000000000..e74b30098
--- /dev/null
+++ b/e2e/tests-app-ng/app/segmented-bar/issue-649.component.ts
@@ -0,0 +1,36 @@
+import { Component } from "@angular/core";
+import { SegmentedBar, SegmentedBarItem } from "tns-core-modules/ui/segmented-bar";
+
+@Component({
+ styles: ["#second { margin: 5; color: blue;" +
+ "background-color: yellow;" +
+ "font-weight: bold; font-size: 20;" +
+ "font-style: italic; font-family: monospace;" +
+ "height: 72; border-width: 2; border-radius: 7;" +
+ "border-color:green; selected-background-color: red; }"],
+ template: `
+
+
+
+
+
+ `
+})
+export class SegmentedBarIssue649Component {
+ public firstSegmentedBarItems: Array = [];
+ public secondSegmentedBarItems: Array = [];
+
+ constructor() {
+ for (let i = 1; i < 4; i++) {
+ let segmentedBarItem = new SegmentedBarItem();
+ segmentedBarItem.title = "View " + i;
+ this.firstSegmentedBarItems.push(segmentedBarItem);
+ let segmentedBarItem1 = new SegmentedBarItem();
+ segmentedBarItem1.title = "View " + i * 2;
+ this.secondSegmentedBarItems.push(segmentedBarItem1);
+ }
+ }
+}
diff --git a/e2e/tests-app-ng/app/segmented-bar/segmented-bar-main-page.component.ts b/e2e/tests-app-ng/app/segmented-bar/segmented-bar-main-page.component.ts
new file mode 100644
index 000000000..08ebbf765
--- /dev/null
+++ b/e2e/tests-app-ng/app/segmented-bar/segmented-bar-main-page.component.ts
@@ -0,0 +1,10 @@
+import { Component } from "@angular/core";
+
+@Component({
+ template: `
+
+
+
+ `,
+})
+export class SegmentedBarMainPageComponent { }
diff --git a/e2e/tests-app-ng/app/tab-view/tab-view.component.ts b/e2e/tests-app-ng/app/tab-view/tab-view.component.ts
new file mode 100644
index 000000000..fad7b9204
--- /dev/null
+++ b/e2e/tests-app-ng/app/tab-view/tab-view.component.ts
@@ -0,0 +1,30 @@
+import { Component, OnInit } from "@angular/core";
+
+@Component({
+ selector: "tab-view-component",
+ template: `
+
+
+
+
+
+
+
+
+
+
+
+
+
+ `,
+})
+
+export class TabViewComponent implements OnInit {
+ public isLoading: boolean = true;
+
+ public ngOnInit(): void {
+ setTimeout(() => {
+ this.isLoading = false;
+ }, 500);
+ }
+}
diff --git a/e2e/tests-app-ng/app/template/.DS_Store b/e2e/tests-app-ng/app/template/.DS_Store
new file mode 100644
index 000000000..5008ddfcf
Binary files /dev/null and b/e2e/tests-app-ng/app/template/.DS_Store differ
diff --git a/e2e/tests-app-ng/app/template/app.component.css b/e2e/tests-app-ng/app/template/app.component.css
new file mode 100644
index 000000000..8d4dce63d
--- /dev/null
+++ b/e2e/tests-app-ng/app/template/app.component.css
@@ -0,0 +1,19 @@
+button, label, stack-layout {
+ horizontal-align: center;
+}
+
+button {
+ font-size: 36;
+}
+
+.title {
+ font-size: 30;
+ margin: 20;
+}
+
+.message {
+ font-size: 20;
+ color: #284848;
+ text-align: center;
+ margin: 0 20;
+}
\ No newline at end of file
diff --git a/e2e/tests-app-ng/app/template/app.component.ts b/e2e/tests-app-ng/app/template/app.component.ts
new file mode 100644
index 000000000..5f3969aba
--- /dev/null
+++ b/e2e/tests-app-ng/app/template/app.component.ts
@@ -0,0 +1,30 @@
+import { Component } from "@angular/core";
+
+@Component({
+ moduleId: module.id,
+ selector: "my-app",
+ styles: ["button {color: lime}"],
+ styleUrls: ["./app.component.css"],
+ template: `
+
+
+
+
+
+`,
+})
+export class AppComponent {
+ public counter: number = 16;
+
+ public get message(): string {
+ if (this.counter > 0) {
+ return this.counter + " taps left";
+ } else {
+ return "Hoorraaay! \nYou are ready to start building!";
+ }
+ }
+
+ public onTap() {
+ this.counter--;
+ }
+}
diff --git a/e2e/tests-app-ng/app/vendor.ts b/e2e/tests-app-ng/app/vendor.ts
new file mode 100644
index 000000000..4a6272bb4
--- /dev/null
+++ b/e2e/tests-app-ng/app/vendor.ts
@@ -0,0 +1,18 @@
+// Snapshot the ~/app.css and the theme
+const application = require("tns-core-modules/application");
+require("tns-core-modules/ui/styling/style-scope");
+const appCssContext = require.context("~/", false, /^\.\/app\.(css|scss|less|sass)$/);
+global.registerWebpackModules(appCssContext);
+application.loadAppCss();
+
+require("reflect-metadata");
+require("@angular/platform-browser");
+require("@angular/core");
+require("@angular/common");
+require("@angular/forms");
+require("@angular/common/http");
+require("@angular/router");
+
+require("nativescript-angular/platform-static");
+require("nativescript-angular/forms");
+require("nativescript-angular/router");
diff --git a/e2e/tests-app-ng/package.json b/e2e/tests-app-ng/package.json
new file mode 100644
index 000000000..d260b5a4a
--- /dev/null
+++ b/e2e/tests-app-ng/package.json
@@ -0,0 +1,52 @@
+{
+ "description": "NativeScript Application",
+ "license": "SEE LICENSE IN ",
+ "readme": "NativeScript Application",
+ "repository": "",
+ "nativescript": {
+ "id": "org.nativescript.testsappng",
+ "tns-ios": {
+ "version": "next"
+ },
+ "tns-android": {
+ "version": "next"
+ }
+ },
+ "dependencies": {
+ "@angular/common": "~7.2.0",
+ "@angular/compiler": "~7.2.0",
+ "@angular/core": "~7.2.0",
+ "@angular/forms": "~7.2.0",
+ "@angular/platform-browser": "~7.2.0",
+ "@angular/platform-browser-dynamic": "~7.2.0",
+ "@angular/router": "~7.2.0",
+ "nativescript-angular": "next",
+ "nativescript-intl": "~3.0.0",
+ "nativescript-theme-core": "^1.0.4",
+ "reflect-metadata": "~0.1.8",
+ "rxjs": "~6.0.0 || >=6.1.0 || >=6.0.0",
+ "tns-core-modules": "next",
+ "zone.js": "^0.8.26"
+ },
+ "devDependencies": {
+ "babel-traverse": "6.24.1",
+ "babel-types": "6.24.1",
+ "babylon": "6.17.0",
+ "codelyzer": "^4.0.0",
+ "filewalker": "^0.1.3",
+ "lazy": "1.0.11",
+ "nativescript-dev-typescript": "next",
+ "nativescript-dev-webpack": "next",
+ "tslint": "^5.4.3"
+ },
+ "scripts": {
+ "tslint": "tslint --config tslint.json 'app/**/*.ts'",
+ "ns-bundle": "ns-bundle",
+ "start-android-bundle": "npm run ns-bundle --android --run-app",
+ "start-ios-bundle": "npm run ns-bundle --ios --run-app",
+ "build-android-bundle": "npm run ns-bundle --android --build-app",
+ "build-ios-bundle": "npm run ns-bundle --ios --build-app",
+ "publish-ios-bundle": "npm run ns-bundle --ios --publish-app",
+ "generate-android-snapshot": "generate-android-snapshot --targetArchs arm,arm64,ia32 --install"
+ }
+}
diff --git a/e2e/tests-app-ng/references.d.ts b/e2e/tests-app-ng/references.d.ts
new file mode 100644
index 000000000..b14f3837d
--- /dev/null
+++ b/e2e/tests-app-ng/references.d.ts
@@ -0,0 +1 @@
+/// Needed for autocompletion and compilation.
\ No newline at end of file
diff --git a/e2e/tests-app-ng/tsconfig.json b/e2e/tests-app-ng/tsconfig.json
new file mode 100644
index 000000000..f251eb444
--- /dev/null
+++ b/e2e/tests-app-ng/tsconfig.json
@@ -0,0 +1,29 @@
+{
+ "compilerOptions": {
+ "module": "commonjs",
+ "target": "es5",
+ "experimentalDecorators": true,
+ "emitDecoratorMetadata": true,
+ "noEmitHelpers": true,
+ "noEmitOnError": true,
+ "lib": [
+ "es6",
+ "dom",
+ "es2015.iterable"
+ ],
+ "baseUrl": ".",
+ "paths": {
+ "*": [
+ "./node_modules/tns-core-modules/*",
+ "./node_modules/*"
+ ],
+ "~/*": [
+ "app/*"
+ ]
+ }
+ },
+ "exclude": [
+ "node_modules",
+ "platforms"
+ ]
+}
\ No newline at end of file
diff --git a/e2e/tests-app-ng/tsconfig.tns.json b/e2e/tests-app-ng/tsconfig.tns.json
new file mode 100644
index 000000000..95f2ecee0
--- /dev/null
+++ b/e2e/tests-app-ng/tsconfig.tns.json
@@ -0,0 +1,7 @@
+{
+ "extends": "./tsconfig",
+ "compilerOptions": {
+ "module": "es2015",
+ "moduleResolution": "node"
+ }
+}
diff --git a/e2e/tests-app-ng/tslint.json b/e2e/tests-app-ng/tslint.json
new file mode 100644
index 000000000..4f96f5c0b
--- /dev/null
+++ b/e2e/tests-app-ng/tslint.json
@@ -0,0 +1,132 @@
+{
+ "rulesDirectory": [
+ "node_modules/codelyzer"
+ ],
+ "rules":{
+ "use-input-property-decorator": true,
+ "use-output-property-decorator": true,
+ "use-host-property-decorator": true,
+ "no-attribute-parameter-decorator": true,
+ "no-input-rename": true,
+ "no-output-rename": true,
+ "use-life-cycle-interface": true,
+ "use-pipe-transform-interface": true,
+ "pipe-naming": [true, "camelCase"],
+ "component-class-suffix": true,
+ "directive-class-suffix": true,
+ "import-destructuring-spacing": true,
+ "member-access": false,
+ "no-any": false,
+ "no-inferrable-types": false,
+ "no-internal-module": true,
+ "no-var-requires": false,
+ "typedef": false,
+ "typedef-whitespace": [
+ true,
+ {
+ "call-signature": "nospace",
+ "index-signature": "nospace",
+ "parameter": "nospace",
+ "property-declaration": "nospace",
+ "variable-declaration": "nospace"
+ },
+ {
+ "call-signature": "space",
+ "index-signature": "space",
+ "parameter": "space",
+ "property-declaration": "space",
+ "variable-declaration": "space"
+ }
+ ],
+
+ "ban": false,
+ "curly": true,
+ "no-arg": true,
+ "no-bitwise": true,
+ "no-conditional-assignment": true,
+ "no-console": [
+ true,
+ "debug",
+ "info",
+ "time",
+ "timeEnd",
+ "trace"
+ ],
+ "no-construct": true,
+ "no-debugger": true,
+ "no-duplicate-variable": true,
+ "no-empty": false,
+ "no-eval": true,
+ "no-null-keyword": false,
+ "no-shadowed-variable": true,
+ "no-string-literal": false,
+ "no-switch-case-fall-through": true,
+ "no-unused-expression": true,
+ "no-var-keyword": true,
+ "radix": false,
+ "switch-default": true,
+ "triple-equals": [
+ true,
+ "allow-null-check"
+ ],
+ "eofline": true,
+ "indent": [
+ true,
+ "spaces"
+ ],
+ "max-line-length": [
+ true,
+ 120
+ ],
+ "no-require-imports": false,
+ "no-trailing-whitespace": true,
+ "object-literal-sort-keys": false,
+ "trailing-comma": [
+ true,
+ {
+ "multiline": false,
+ "singleline": "never"
+ }
+ ],
+
+ "align": false,
+ "class-name": true,
+ "comment-format": [
+ true,
+ "check-space"
+ ],
+ "interface-name": false,
+ "jsdoc-format": true,
+ "no-consecutive-blank-lines": [
+ true, 2
+ ],
+ "one-line": [
+ true,
+ "check-open-brace",
+ "check-catch",
+ "check-else",
+ "check-finally",
+ "check-whitespace"
+ ],
+ "quotemark": [
+ true,
+ "double",
+ "avoid-escape"
+ ],
+ "semicolon": [true, "always"],
+ "variable-name": [
+ true,
+ "check-format",
+ "allow-leading-underscore",
+ "ban-keywords"
+ ],
+ "whitespace": [
+ true,
+ "check-branch",
+ "check-decl",
+ "check-operator",
+ "check-separator",
+ "check-type"
+ ]
+ }
+}