diff --git a/CHANGELOG.md b/CHANGELOG.md index 922edf6ca..39f771f84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,116 @@ + +# [6.0.0](https://github.com/NativeScript/NativeScript/compare/5.4.2...6.0.0) (2019-06-28) + + +### Bug Fixes + +* **bundle:** support for file qualifiers with webpack ([#7386](https://github.com/NativeScript/NativeScript/issues/7386)) ([9fcc1dd](https://github.com/NativeScript/NativeScript/commit/9fcc1dd)) +* **bundle:** code-only typescript custom components with webpack ([#7321](https://github.com/NativeScript/NativeScript/issues/7321)) ([9fcc1dd](https://github.com/NativeScript/NativeScript/commit/9fcc1dd)) +* **bundle:** component builder support for codeFile / cssFile / import with webpack ([#7324](https://github.com/NativeScript/NativeScript/issues/7324)) ([9fcc1dd](https://github.com/NativeScript/NativeScript/commit/9fcc1dd)) +* **bundle:** different event order ([NativeScript/nativescript-cli#4633](https://github.com/NativeScript/nativescript-cli/issues/4633)) ([8851835](https://github.com/NativeScript/NativeScript/commit/8851835)) +* restore TextField.textChange and Switch.checkedChange event syntax in xml ([#7403](https://github.com/NativeScript/NativeScript/issues/7403)) ([76b5089](https://github.com/NativeScript/NativeScript/commit/76b5089)) +* **android:** ignore gzip content-encoding for status code 204 ([#7417](https://github.com/NativeScript/NativeScript/issues/7417)) ([4437cd6](https://github.com/NativeScript/NativeScript/commit/4437cd6)) +* **android-transition:** exit transition not executed after app suspend resume ([#7402](https://github.com/NativeScript/NativeScript/issues/7402)) ([f08b491](https://github.com/NativeScript/NativeScript/commit/f08b491)) +* **css-state:** _appliedSelectorsVersion assignment ([#7405](https://github.com/NativeScript/NativeScript/issues/7405)) ([9ecf07f](https://github.com/NativeScript/NativeScript/commit/9ecf07f)) +* **observable-array**: splice to notify correct amount of added items ([#7426](https://github.com/NativeScript/NativeScript/pull/7426)) ([5e14de6](https://github.com/NativeScript/NativeScript/commit/5e14de6)) +* cancel contradictory gesture events ([#7296](https://github.com/NativeScript/NativeScript/issues/7296)) ([b8a82f2](https://github.com/NativeScript/NativeScript/commit/b8a82f2)) +* allow span descendants in FormattedString ([#7369](https://github.com/NativeScript/NativeScript/issues/7369)) ([01c4b8c](https://github.com/NativeScript/NativeScript/commit/01c4b8c)) + + +### Features + +* **bundle:** bundle workflow support ([#7320](https://github.com/NativeScript/NativeScript/issues/7320)) ([ecd9fc3](https://github.com/NativeScript/NativeScript/commit/ecd9fc3)) +* **android:** androidX support ([#7039](https://github.com/NativeScript/NativeScript/issues/7039)) ([c5db112](https://github.com/NativeScript/NativeScript/commit/c5db112)) +* **BETA/EXPERIMENTAL:** bottom navigation and tabs components ([#6967](https://github.com/NativeScript/NativeScript/issues/6967)) ([0c2c1cc](https://github.com/NativeScript/NativeScript/commit/0c2c1cc)) +* add support for :focus pseudo class in TextField / TextView ([#7396](https://github.com/NativeScript/NativeScript/pull/7396)) ([0bfddab](https://github.com/NativeScript/NativeScript/commit/0bfddab)) + + +### BREAKING CHANGES + +* `AndroidApplication.currentContext` in `tns-core-modules/application` module is now removed. + +Use `AndroidApplication.startActivity`, `AndroidApplication.foregroundActivity`, or `AndroidApplication.context` properties instead. + + +* `start(...)` method in `tns-core-modules/application` module is now removed. + +Use `application.run(...)` method instead. + + +* `loadPage(...)` method in `tns-core-modules/ui/builder` module is now removed. + +Use `createViewFromEntry(entry: NavigationEntry)` method in `tns-core-modules/ui/builder` module instead. + + +* `tns-core-modules/ui/core/dependency-observable` module is now removed. + +Use `tns-core-modules/ui/core/properties` module instead. + + +* `ViewBase.showModal()`, `ViewBase.showModal(moduleName: string, context: any, closeCallback: Function, fullscreen?: boolean, animated?: boolean, stretched?: boolean): ViewBase`, and `ViewBase.showModal(view: ViewBase, context: any, closeCallback: Function, fullscreen?: boolean, animated?: boolean, stretched?: boolean): ViewBase` method overloads are now removed. + +Use `ViewBase.showModal(moduleName: string, modalOptions: ShowModalOptions): ViewBase` or `ViewBase.showModal(view: ViewBase, modalOptions: ShowModalOptions): ViewBase` instead. + + +* `Frame.androidOptionSelectedEvent` and `AndroidOptionEventData` interfrace in `tns-core-modules/ui/frame` module are now removed. + +Event not raised by NativeScript core framework anymore. + + +* `AndroidFrame.cachePagesOnNavigate` in `tns-core-modules/ui/frame` module is now removed. + +Not used internally in NativeScript core framework anymore. + + +* `stack()` method in `tns-core-modules/ui/frame` module is now removed. + +Use `getFrameById(...)` method if you want to retrieve a frame different than the topmost one instead. + + +* `AndroidActivityCallbacks.onCreate(activity: any, savedInstanceState: any, superFunc: Function)` method overload in `tns-core-modules/ui/frame` module is now removed. + +Use `AndroidActivityCallbacks.onCreate(activity: any, savedInstanceState: any, intent: any, superFunc: Function)` instead. + + +* `WebView.url` property in `tns-core-modules/ui/web-view` module is now removed. + +Use `WebView.src` property instead. + + +* `ios.getter(...)` function in `tns-core-modules/utils` module is now removed. + +Use the respective native property directly instead. + + +* `View.observe(...)` method in `tns-core-modules/ui/core/view` module is now removed. + +Use `View.on(...)` method instead. + +* The addedCount variable from ObservableArray.splice(...) change event is always the amount of added items. + +Migration steps: +The old addedCount can be obtained by `const addedCount = event.addedCount - event.removed.length` + +* Fix to cancel contradictory gesture events (e.g. tap and double tap) introduces the following behavior breaking change + +Before: +* **iOS / Android**: + * double tap: child tap -> parent tap -> child double tap -> parent double tap + * tap: child tap -> parent tap + +After: +* **iOS**: + * double tap: child double tap + * tap: child tap +* **Android**: + * double tap: child double tap -> parent double tap + * tap: child tap -> parent tap + +Migration steps: +Move event handlers accordingly. + + + ## [5.4.3](https://github.com/NativeScript/NativeScript/compare/5.4.2...5.4.3) (2019-06-21) diff --git a/e2e/file-qualifiers/app/App_Resources/Android/app.gradle b/e2e/file-qualifiers/app/App_Resources/Android/app.gradle index ad050c828..bb4842141 100644 --- a/e2e/file-qualifiers/app/App_Resources/Android/app.gradle +++ b/e2e/file-qualifiers/app/App_Resources/Android/app.gradle @@ -2,15 +2,19 @@ // Uncomment to add recyclerview-v7 dependency //dependencies { -// compile 'com.android.support:recyclerview-v7:+' +// implementation 'com.android.support:recyclerview-v7:+' //} -android { - defaultConfig { +// If you want to add something to be applied before applying plugins' include.gradle files +// e.g. project.ext.googlePlayServicesVersion = "15.0.1" +// create a file named before-plugins.gradle in the current directory and place it there + +android { + defaultConfig { + minSdkVersion 17 generatedDensities = [] - applicationId = "org.nativescript.animation" - } - aaptOptions { - additionalParameters "--no-version-vectors" - } -} + } + aaptOptions { + additionalParameters "--no-version-vectors" + } +} diff --git a/e2e/file-qualifiers/app/App_Resources/Android/AndroidManifest.xml b/e2e/file-qualifiers/app/App_Resources/Android/src/main/AndroidManifest.xml similarity index 89% rename from e2e/file-qualifiers/app/App_Resources/Android/AndroidManifest.xml rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/AndroidManifest.xml index 9db832151..1bd6826c3 100644 --- a/e2e/file-qualifiers/app/App_Resources/Android/AndroidManifest.xml +++ b/e2e/file-qualifiers/app/App_Resources/Android/src/main/AndroidManifest.xml @@ -10,10 +10,6 @@ android:largeScreens="true" android:xlargeScreens="true"/> - - @@ -28,7 +24,7 @@ diff --git a/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-hdpi/add_to_fav.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-hdpi/add_to_fav.png new file mode 100644 index 000000000..d79e38998 Binary files /dev/null and b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-hdpi/add_to_fav.png differ diff --git a/e2e/file-qualifiers/app/App_Resources/Android/drawable-hdpi/background.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png similarity index 100% rename from e2e/file-qualifiers/app/App_Resources/Android/drawable-hdpi/background.png rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png diff --git a/e2e/file-qualifiers/app/App_Resources/Android/drawable-hdpi/icon.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png old mode 100755 new mode 100644 similarity index 100% rename from e2e/file-qualifiers/app/App_Resources/Android/drawable-hdpi/icon.png rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png diff --git a/e2e/file-qualifiers/app/App_Resources/Android/drawable-hdpi/logo.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png similarity index 100% rename from e2e/file-qualifiers/app/App_Resources/Android/drawable-hdpi/logo.png rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png diff --git a/e2e/file-qualifiers/app/App_Resources/Android/drawable-ldpi/background.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png similarity index 100% rename from e2e/file-qualifiers/app/App_Resources/Android/drawable-ldpi/background.png rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png diff --git a/e2e/file-qualifiers/app/App_Resources/Android/drawable-ldpi/icon.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png old mode 100755 new mode 100644 similarity index 100% rename from e2e/file-qualifiers/app/App_Resources/Android/drawable-ldpi/icon.png rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png diff --git a/e2e/file-qualifiers/app/App_Resources/Android/drawable-ldpi/logo.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png similarity index 100% rename from e2e/file-qualifiers/app/App_Resources/Android/drawable-ldpi/logo.png rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png diff --git a/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-mdpi/add_to_fav.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-mdpi/add_to_fav.png new file mode 100644 index 000000000..fafe86a90 Binary files /dev/null and b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-mdpi/add_to_fav.png differ diff --git a/e2e/file-qualifiers/app/App_Resources/Android/drawable-mdpi/background.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png similarity index 100% rename from e2e/file-qualifiers/app/App_Resources/Android/drawable-mdpi/background.png rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png diff --git a/e2e/file-qualifiers/app/App_Resources/Android/drawable-mdpi/icon.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png old mode 100755 new mode 100644 similarity index 100% rename from e2e/file-qualifiers/app/App_Resources/Android/drawable-mdpi/icon.png rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png diff --git a/e2e/file-qualifiers/app/App_Resources/Android/drawable-mdpi/logo.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png similarity index 100% rename from e2e/file-qualifiers/app/App_Resources/Android/drawable-mdpi/logo.png rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png diff --git a/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/i18x32.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/i18x32.png new file mode 100644 index 000000000..a23217419 Binary files /dev/null and b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/i18x32.png differ diff --git a/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/i32x18.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/i32x18.png new file mode 100644 index 000000000..f0ba2f305 Binary files /dev/null and b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/i32x18.png differ diff --git a/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/i32x32.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/i32x32.png new file mode 100644 index 000000000..0f778f86e Binary files /dev/null and b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/i32x32.png differ diff --git a/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/icon.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/icon.png new file mode 100644 index 000000000..1034356e2 Binary files /dev/null and b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/icon.png differ diff --git a/e2e/file-qualifiers/app/App_Resources/Android/drawable-nodpi/splash_screen.xml b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml similarity index 100% rename from e2e/file-qualifiers/app/App_Resources/Android/drawable-nodpi/splash_screen.xml rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml diff --git a/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/splashscreen.9.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/splashscreen.9.png new file mode 100644 index 000000000..bd53be2ec Binary files /dev/null and b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/splashscreen.9.png differ diff --git a/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/testlogo.jpg b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/testlogo.jpg new file mode 100644 index 000000000..102a9b134 Binary files /dev/null and b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/testlogo.jpg differ diff --git a/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/tile.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/tile.png new file mode 100644 index 000000000..7ebde26a0 Binary files /dev/null and b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/tile.png differ diff --git a/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/up.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/up.png new file mode 100644 index 000000000..04dca794a Binary files /dev/null and b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/up.png differ diff --git a/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/upccw.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/upccw.png new file mode 100644 index 000000000..6ad441c51 Binary files /dev/null and b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/upccw.png differ diff --git a/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/upcw.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/upcw.png new file mode 100644 index 000000000..583e71897 Binary files /dev/null and b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/upcw.png differ diff --git a/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/upflip.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/upflip.png new file mode 100644 index 000000000..af39cee60 Binary files /dev/null and b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-nodpi/upflip.png differ diff --git a/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xhdpi/add_to_fav.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xhdpi/add_to_fav.png new file mode 100644 index 000000000..ef05e3ea1 Binary files /dev/null and b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xhdpi/add_to_fav.png differ diff --git a/e2e/file-qualifiers/app/App_Resources/Android/drawable-xhdpi/background.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png similarity index 100% rename from e2e/file-qualifiers/app/App_Resources/Android/drawable-xhdpi/background.png rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png diff --git a/e2e/file-qualifiers/app/App_Resources/Android/drawable-xhdpi/icon.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png similarity index 100% rename from e2e/file-qualifiers/app/App_Resources/Android/drawable-xhdpi/icon.png rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png diff --git a/e2e/file-qualifiers/app/App_Resources/Android/drawable-xhdpi/logo.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png similarity index 100% rename from e2e/file-qualifiers/app/App_Resources/Android/drawable-xhdpi/logo.png rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png diff --git a/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xxhdpi/add_to_fav.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xxhdpi/add_to_fav.png new file mode 100644 index 000000000..67ccc7dc3 Binary files /dev/null and b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xxhdpi/add_to_fav.png differ diff --git a/e2e/file-qualifiers/app/App_Resources/Android/drawable-xxhdpi/background.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png similarity index 100% rename from e2e/file-qualifiers/app/App_Resources/Android/drawable-xxhdpi/background.png rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png diff --git a/e2e/file-qualifiers/app/App_Resources/Android/drawable-xxhdpi/icon.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png similarity index 100% rename from e2e/file-qualifiers/app/App_Resources/Android/drawable-xxhdpi/icon.png rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png diff --git a/e2e/file-qualifiers/app/App_Resources/Android/drawable-xxhdpi/logo.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png similarity index 100% rename from e2e/file-qualifiers/app/App_Resources/Android/drawable-xxhdpi/logo.png rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png diff --git a/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/add_to_fav.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/add_to_fav.png new file mode 100644 index 000000000..a58cf3c38 Binary files /dev/null and b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/add_to_fav.png differ diff --git a/e2e/file-qualifiers/app/App_Resources/Android/drawable-xxxhdpi/background.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png similarity index 100% rename from e2e/file-qualifiers/app/App_Resources/Android/drawable-xxxhdpi/background.png rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png diff --git a/e2e/file-qualifiers/app/App_Resources/Android/drawable-xxxhdpi/icon.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png similarity index 100% rename from e2e/file-qualifiers/app/App_Resources/Android/drawable-xxxhdpi/icon.png rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png diff --git a/e2e/file-qualifiers/app/App_Resources/Android/drawable-xxxhdpi/logo.png b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png similarity index 100% rename from e2e/file-qualifiers/app/App_Resources/Android/drawable-xxxhdpi/logo.png rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png diff --git a/e2e/file-qualifiers/app/App_Resources/Android/values-v21/colors.xml b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/values-v21/colors.xml similarity index 100% rename from e2e/file-qualifiers/app/App_Resources/Android/values-v21/colors.xml rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/res/values-v21/colors.xml diff --git a/e2e/file-qualifiers/app/App_Resources/Android/values-v21/styles.xml b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/values-v21/styles.xml similarity index 100% rename from e2e/file-qualifiers/app/App_Resources/Android/values-v21/styles.xml rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/res/values-v21/styles.xml diff --git a/e2e/file-qualifiers/app/App_Resources/Android/values/colors.xml b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/values/colors.xml similarity index 100% rename from e2e/file-qualifiers/app/App_Resources/Android/values/colors.xml rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/res/values/colors.xml diff --git a/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/values/strings.xml b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/values/strings.xml new file mode 100644 index 000000000..3b60905d1 --- /dev/null +++ b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/values/strings.xml @@ -0,0 +1,5 @@ + + + TestApp + TestApp + \ No newline at end of file diff --git a/e2e/file-qualifiers/app/App_Resources/Android/values/styles.xml b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/values/styles.xml similarity index 100% rename from e2e/file-qualifiers/app/App_Resources/Android/values/styles.xml rename to e2e/file-qualifiers/app/App_Resources/Android/src/main/res/values/styles.xml diff --git a/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/xml/provider_paths.xml b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/xml/provider_paths.xml new file mode 100644 index 000000000..4ff893110 --- /dev/null +++ b/e2e/file-qualifiers/app/App_Resources/Android/src/main/res/xml/provider_paths.xml @@ -0,0 +1,4 @@ + + + + diff --git a/e2e/file-qualifiers/app/app.css b/e2e/file-qualifiers/app/app.css index 923f47830..96036dd59 100644 --- a/e2e/file-qualifiers/app/app.css +++ b/e2e/file-qualifiers/app/app.css @@ -1,5 +1,4 @@ .root-footer { - horizontal-align: middle; color: black; background-color: lightgreen } \ No newline at end of file diff --git a/e2e/file-qualifiers/app/app.land.css b/e2e/file-qualifiers/app/app.land.css index ac82d3c20..327ff04f5 100644 --- a/e2e/file-qualifiers/app/app.land.css +++ b/e2e/file-qualifiers/app/app.land.css @@ -1,5 +1,4 @@ .root-footer { - horizontal-align: middle; color: black; background-color: lightpink; } \ No newline at end of file diff --git a/e2e/file-qualifiers/app/app.ts b/e2e/file-qualifiers/app/app.ts index 0c5afc47e..413e84908 100644 --- a/e2e/file-qualifiers/app/app.ts +++ b/e2e/file-qualifiers/app/app.ts @@ -1,3 +1,7 @@ import * as application from "tns-core-modules/application"; +import { setCategories, categories, enable } from "tns-core-modules/trace"; + +setCategories(categories.Livesync); +enable(); application.run({ moduleName: "app-root" }); diff --git a/e2e/file-qualifiers/app/components/my-component.css b/e2e/file-qualifiers/app/components/my-component.css new file mode 100644 index 000000000..12f654119 --- /dev/null +++ b/e2e/file-qualifiers/app/components/my-component.css @@ -0,0 +1,5 @@ +.custom-component { + color: navy; + font-weight: bold; + font-size: 20; +} \ No newline at end of file diff --git a/e2e/file-qualifiers/app/components/my-component.land.css b/e2e/file-qualifiers/app/components/my-component.land.css new file mode 100644 index 000000000..3789d2330 --- /dev/null +++ b/e2e/file-qualifiers/app/components/my-component.land.css @@ -0,0 +1,5 @@ +.custom-component { + color: darkolivegreen; + font-weight: bold; + font-size: 20; +} \ No newline at end of file diff --git a/e2e/file-qualifiers/app/components/my-component.land.ts b/e2e/file-qualifiers/app/components/my-component.land.ts new file mode 100644 index 000000000..cfe25b6bf --- /dev/null +++ b/e2e/file-qualifiers/app/components/my-component.land.ts @@ -0,0 +1,3 @@ +export function onLoaded() { + console.log("---> Custom component LANDSCAPE loaded"); +} \ No newline at end of file diff --git a/e2e/file-qualifiers/app/components/my-component.land.xml b/e2e/file-qualifiers/app/components/my-component.land.xml new file mode 100644 index 000000000..cb59509a7 --- /dev/null +++ b/e2e/file-qualifiers/app/components/my-component.land.xml @@ -0,0 +1,3 @@ + + \ No newline at end of file diff --git a/e2e/file-qualifiers/app/components/my-component.ts b/e2e/file-qualifiers/app/components/my-component.ts new file mode 100644 index 000000000..fdc7187dd --- /dev/null +++ b/e2e/file-qualifiers/app/components/my-component.ts @@ -0,0 +1,3 @@ +export function onLoaded() { + console.log("---> Custom component DEFAULT loaded"); +} \ No newline at end of file diff --git a/e2e/file-qualifiers/app/components/my-component.xml b/e2e/file-qualifiers/app/components/my-component.xml new file mode 100644 index 000000000..b5b11f13b --- /dev/null +++ b/e2e/file-qualifiers/app/components/my-component.xml @@ -0,0 +1,3 @@ + + \ No newline at end of file diff --git a/e2e/file-qualifiers/app/main/main-page-vm.ts b/e2e/file-qualifiers/app/main/main-page-vm.ts new file mode 100644 index 000000000..aeba6ab0e --- /dev/null +++ b/e2e/file-qualifiers/app/main/main-page-vm.ts @@ -0,0 +1,3 @@ +import { fromObject } from "tns-core-modules/data/observable"; + +export const vm = fromObject({ prop: "property from VM" }); \ No newline at end of file diff --git a/e2e/file-qualifiers/app/main/main-page.land.ts b/e2e/file-qualifiers/app/main/main-page.land.ts index 4edf0d0de..abc6a674f 100644 --- a/e2e/file-qualifiers/app/main/main-page.land.ts +++ b/e2e/file-qualifiers/app/main/main-page.land.ts @@ -1,7 +1,17 @@ -export function onNavigatedTo(args) { - console.log("---> [LANDSCAPE] onNavigatedTo"); +import { topmost } from "tns-core-modules/ui/frame"; +import { vm } from "./main-page-vm"; + +export function onNavigatingTo(args) { + console.log("---> [LANDSCAPE] onNavigatingTo"); + args.object.page.bindingContext = vm; +} + +export function tap(args) { + console.log("---> [LANDSCAPE] tap"); } export function navigate(args) { console.log("---> [LANDSCAPE] navigate"); -} + + topmost().navigate("other/other-page"); +} \ No newline at end of file diff --git a/e2e/file-qualifiers/app/main/main-page.land.xml b/e2e/file-qualifiers/app/main/main-page.land.xml index a9cc65e4c..ccf5350b5 100644 --- a/e2e/file-qualifiers/app/main/main-page.land.xml +++ b/e2e/file-qualifiers/app/main/main-page.land.xml @@ -1,7 +1,13 @@ - +