fix(ios): translate transform breaks sequential animation set (#5961)
* fix(ios): translate transform breaks sequential animation set * chore: add e2e test app for animations
1
e2e/animation/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.vscode/settings.json
|
100
e2e/animation/.vscode/launch.json
vendored
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Launch Tests on Android",
|
||||||
|
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
|
||||||
|
"args": [
|
||||||
|
"-u",
|
||||||
|
"tdd",
|
||||||
|
"--timeout",
|
||||||
|
"999999",
|
||||||
|
"--colors",
|
||||||
|
// "${workspaceFolder}/test",
|
||||||
|
"--opts",
|
||||||
|
"./e2e/config/mocha.opts",
|
||||||
|
"--runType",
|
||||||
|
"android23",
|
||||||
|
"--reuseDevice",
|
||||||
|
"--verbose"
|
||||||
|
],
|
||||||
|
"internalConsoleOptions": "openOnSessionStart"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Launch Tests on iOS",
|
||||||
|
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
|
||||||
|
"args": [
|
||||||
|
"-u",
|
||||||
|
"tdd",
|
||||||
|
"--timeout",
|
||||||
|
"999999",
|
||||||
|
"--colors",
|
||||||
|
// "${workspaceFolder}/test",
|
||||||
|
"--opts",
|
||||||
|
"./e2e/config/mocha.opts",
|
||||||
|
"--runType",
|
||||||
|
"sim.iPhoneX.iOS112",
|
||||||
|
"--reuseDevice",
|
||||||
|
"--verbose"
|
||||||
|
],
|
||||||
|
"internalConsoleOptions": "openOnSessionStart"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Launch on iOS",
|
||||||
|
"type": "nativescript",
|
||||||
|
"request": "launch",
|
||||||
|
"platform": "ios",
|
||||||
|
"appRoot": "${workspaceRoot}",
|
||||||
|
"sourceMaps": true,
|
||||||
|
"stopOnEntry": false,
|
||||||
|
"tnsArgs": [
|
||||||
|
"--syncAllFiles"
|
||||||
|
],
|
||||||
|
"watch": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Attach on iOS",
|
||||||
|
"type": "nativescript",
|
||||||
|
"request": "attach",
|
||||||
|
"platform": "ios",
|
||||||
|
"appRoot": "${workspaceRoot}",
|
||||||
|
"sourceMaps": true,
|
||||||
|
"tnsArgs": [
|
||||||
|
"--syncAllFiles"
|
||||||
|
],
|
||||||
|
"watch": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Launch on Android",
|
||||||
|
"type": "nativescript",
|
||||||
|
"request": "launch",
|
||||||
|
"platform": "android",
|
||||||
|
"appRoot": "${workspaceRoot}",
|
||||||
|
"sourceMaps": true,
|
||||||
|
"stopOnEntry": false,
|
||||||
|
"tnsArgs": [
|
||||||
|
"--syncAllFiles"
|
||||||
|
],
|
||||||
|
"watch": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Attach on Android",
|
||||||
|
"type": "nativescript",
|
||||||
|
"request": "attach",
|
||||||
|
"platform": "android",
|
||||||
|
"appRoot": "${workspaceRoot}",
|
||||||
|
"sourceMaps": true,
|
||||||
|
"tnsArgs": [
|
||||||
|
"--syncAllFiles"
|
||||||
|
],
|
||||||
|
"watch": false
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
14
e2e/animation/README.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
Execute Tests
|
||||||
|
=============
|
||||||
|
|
||||||
|
Android:
|
||||||
|
|
||||||
|
```
|
||||||
|
npm run e2e -- --runType android23 # --devMode
|
||||||
|
```
|
||||||
|
|
||||||
|
iOS:
|
||||||
|
|
||||||
|
```
|
||||||
|
npm run e2e -- --runType sim.iPhoneX.iOS112 # --devMode
|
||||||
|
```
|
43
e2e/animation/app/App_Resources/Android/AndroidManifest.xml
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
package="__PACKAGE__"
|
||||||
|
android:versionCode="1"
|
||||||
|
android:versionName="1.0">
|
||||||
|
|
||||||
|
<supports-screens
|
||||||
|
android:smallScreens="true"
|
||||||
|
android:normalScreens="true"
|
||||||
|
android:largeScreens="true"
|
||||||
|
android:xlargeScreens="true"/>
|
||||||
|
|
||||||
|
<uses-sdk
|
||||||
|
android:minSdkVersion="17"
|
||||||
|
android:targetSdkVersion="__APILEVEL__"/>
|
||||||
|
|
||||||
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
||||||
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
||||||
|
<uses-permission android:name="android.permission.INTERNET"/>
|
||||||
|
|
||||||
|
<application
|
||||||
|
android:name="com.tns.NativeScriptApplication"
|
||||||
|
android:allowBackup="true"
|
||||||
|
android:icon="@drawable/icon"
|
||||||
|
android:label="@string/app_name"
|
||||||
|
android:theme="@style/AppTheme">
|
||||||
|
|
||||||
|
<activity
|
||||||
|
android:name="com.tns.NativeScriptActivity"
|
||||||
|
android:label="@string/title_activity_kimera"
|
||||||
|
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||||
|
android:theme="@style/LaunchScreenTheme">
|
||||||
|
|
||||||
|
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />
|
||||||
|
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
|
</intent-filter>
|
||||||
|
</activity>
|
||||||
|
<activity android:name="com.tns.ErrorReportActivity"/>
|
||||||
|
</application>
|
||||||
|
</manifest>
|
16
e2e/animation/app/App_Resources/Android/app.gradle
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
// Add your native dependencies here:
|
||||||
|
|
||||||
|
// Uncomment to add recyclerview-v7 dependency
|
||||||
|
//dependencies {
|
||||||
|
// compile 'com.android.support:recyclerview-v7:+'
|
||||||
|
//}
|
||||||
|
|
||||||
|
android {
|
||||||
|
defaultConfig {
|
||||||
|
generatedDensities = []
|
||||||
|
applicationId = "org.nativescript.modalnavigation"
|
||||||
|
}
|
||||||
|
aaptOptions {
|
||||||
|
additionalParameters "--no-version-vectors"
|
||||||
|
}
|
||||||
|
}
|
After Width: | Height: | Size: 3.4 KiB |
BIN
e2e/animation/app/App_Resources/Android/drawable-hdpi/icon.png
Executable file
After Width: | Height: | Size: 6.8 KiB |
BIN
e2e/animation/app/App_Resources/Android/drawable-hdpi/logo.png
Normal file
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 1.3 KiB |
BIN
e2e/animation/app/App_Resources/Android/drawable-ldpi/icon.png
Executable file
After Width: | Height: | Size: 3.2 KiB |
BIN
e2e/animation/app/App_Resources/Android/drawable-ldpi/logo.png
Normal file
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 1.9 KiB |
BIN
e2e/animation/app/App_Resources/Android/drawable-mdpi/icon.png
Executable file
After Width: | Height: | Size: 3.4 KiB |
BIN
e2e/animation/app/App_Resources/Android/drawable-mdpi/logo.png
Normal file
After Width: | Height: | Size: 16 KiB |
@ -0,0 +1,8 @@
|
|||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:gravity="fill">
|
||||||
|
<item>
|
||||||
|
<bitmap android:gravity="fill" android:src="@drawable/background" />
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<bitmap android:gravity="center" android:src="@drawable/logo" />
|
||||||
|
</item>
|
||||||
|
</layer-list>
|
After Width: | Height: | Size: 5.3 KiB |
BIN
e2e/animation/app/App_Resources/Android/drawable-xhdpi/icon.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
e2e/animation/app/App_Resources/Android/drawable-xhdpi/logo.png
Normal file
After Width: | Height: | Size: 54 KiB |
After Width: | Height: | Size: 10 KiB |
BIN
e2e/animation/app/App_Resources/Android/drawable-xxhdpi/icon.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
e2e/animation/app/App_Resources/Android/drawable-xxhdpi/logo.png
Normal file
After Width: | Height: | Size: 116 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 74 KiB |
After Width: | Height: | Size: 193 KiB |
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<color name="ns_accent">#3d5afe</color>
|
||||||
|
</resources>
|
@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<!-- Application theme -->
|
||||||
|
<style name="AppTheme" parent="AppThemeBase">
|
||||||
|
<item name="android:datePickerStyle">@style/SpinnerDatePicker</item>
|
||||||
|
<item name="android:timePickerStyle">@style/SpinnerTimePicker</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<!-- Default style for DatePicker - in spinner mode -->
|
||||||
|
<style name="SpinnerDatePicker" parent="android:Widget.Material.Light.DatePicker">
|
||||||
|
<item name="android:datePickerMode">spinner</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<!-- Default style for TimePicker - in spinner mode -->
|
||||||
|
<style name="SpinnerTimePicker" parent="android:Widget.Material.Light.TimePicker">
|
||||||
|
<item name="android:timePickerMode">spinner</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase">
|
||||||
|
<item name="android:elevation">4dp</item>
|
||||||
|
</style>
|
||||||
|
</resources>
|
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<color name="ns_primary">#F5F5F5</color>
|
||||||
|
<color name="ns_primaryDark">#757575</color>
|
||||||
|
<color name="ns_accent">#33B5E5</color>
|
||||||
|
<color name="ns_blue">#272734</color>
|
||||||
|
</resources>
|
45
e2e/animation/app/App_Resources/Android/values/styles.xml
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
|
<!-- theme to use FOR launch screen-->
|
||||||
|
<style name="LaunchScreenThemeBase" parent="Theme.AppCompat.Light.NoActionBar">
|
||||||
|
<item name="toolbarStyle">@style/NativeScriptToolbarStyle</item>
|
||||||
|
|
||||||
|
<item name="colorPrimary">@color/ns_primary</item>
|
||||||
|
<item name="colorPrimaryDark">@color/ns_primaryDark</item>
|
||||||
|
<item name="colorAccent">@color/ns_accent</item>
|
||||||
|
|
||||||
|
<item name="android:windowBackground">@drawable/splash_screen</item>
|
||||||
|
|
||||||
|
<item name="android:windowActionBarOverlay">true</item>
|
||||||
|
<item name="android:windowTranslucentStatus">true</item>
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="LaunchScreenTheme" parent="LaunchScreenThemeBase">
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<!-- theme to use AFTER launch screen is loaded-->
|
||||||
|
<style name="AppThemeBase" parent="Theme.AppCompat.Light.NoActionBar">
|
||||||
|
<item name="toolbarStyle">@style/NativeScriptToolbarStyle</item>
|
||||||
|
|
||||||
|
<item name="colorPrimary">@color/ns_primary</item>
|
||||||
|
<item name="colorPrimaryDark">@color/ns_primaryDark</item>
|
||||||
|
<item name="colorAccent">@color/ns_accent</item>
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="AppTheme" parent="AppThemeBase">
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<!-- theme for action-bar -->
|
||||||
|
<style name="NativeScriptToolbarStyleBase" parent="Widget.AppCompat.Toolbar">
|
||||||
|
<item name="android:background">@color/ns_primary</item>
|
||||||
|
<item name="theme">@style/ThemeOverlay.AppCompat.ActionBar</item>
|
||||||
|
<item name="popupTheme">@style/ThemeOverlay.AppCompat</item>
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase">
|
||||||
|
</style>
|
||||||
|
</resources>
|
@ -0,0 +1,98 @@
|
|||||||
|
{
|
||||||
|
"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"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "1024x1024",
|
||||||
|
"idiom" : "ios-marketing",
|
||||||
|
"filename" : "icon-1024.png",
|
||||||
|
"scale" : "1x"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"version" : 1,
|
||||||
|
"author" : "xcode"
|
||||||
|
}
|
||||||
|
}
|
After Width: | Height: | Size: 99 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 9.2 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 7.6 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 7.2 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 28 KiB |
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"info" : {
|
||||||
|
"version" : 1,
|
||||||
|
"author" : "xcode"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,176 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"extent" : "full-screen",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"subtype" : "2436h",
|
||||||
|
"filename" : "Default-1125h.png",
|
||||||
|
"minimum-system-version" : "11.0",
|
||||||
|
"orientation" : "portrait",
|
||||||
|
"scale" : "3x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"orientation" : "landscape",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"extent" : "full-screen",
|
||||||
|
"filename" : "Default-Landscape-X.png",
|
||||||
|
"minimum-system-version" : "11.0",
|
||||||
|
"subtype" : "2436h",
|
||||||
|
"scale" : "3x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
}
|
After Width: | Height: | Size: 160 KiB |
After Width: | Height: | Size: 62 KiB |
After Width: | Height: | Size: 112 KiB |
After Width: | Height: | Size: 180 KiB |
After Width: | Height: | Size: 165 KiB |
After Width: | Height: | Size: 61 KiB |
After Width: | Height: | Size: 187 KiB |
After Width: | Height: | Size: 198 KiB |
After Width: | Height: | Size: 60 KiB |
After Width: | Height: | Size: 182 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 61 KiB |
@ -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"
|
||||||
|
}
|
||||||
|
}
|
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 3.9 KiB |
22
e2e/animation/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json
vendored
Normal file
@ -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"
|
||||||
|
}
|
||||||
|
}
|
After Width: | Height: | Size: 65 KiB |
After Width: | Height: | Size: 202 KiB |
47
e2e/animation/app/App_Resources/iOS/Info.plist
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
|
<string>en</string>
|
||||||
|
<key>CFBundleDisplayName</key>
|
||||||
|
<string>${PRODUCT_NAME}</string>
|
||||||
|
<key>CFBundleExecutable</key>
|
||||||
|
<string>${EXECUTABLE_NAME}</string>
|
||||||
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
|
<string>6.0</string>
|
||||||
|
<key>CFBundleName</key>
|
||||||
|
<string>${PRODUCT_NAME}</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>APPL</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>1.0</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>????</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>1.0</string>
|
||||||
|
<key>LSRequiresIPhoneOS</key>
|
||||||
|
<true/>
|
||||||
|
<key>UILaunchStoryboardName</key>
|
||||||
|
<string>LaunchScreen</string>
|
||||||
|
<key>UIRequiresFullScreen</key>
|
||||||
|
<true/>
|
||||||
|
<key>UIRequiredDeviceCapabilities</key>
|
||||||
|
<array>
|
||||||
|
<string>armv7</string>
|
||||||
|
</array>
|
||||||
|
<key>UISupportedInterfaceOrientations</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
|
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
53
e2e/animation/app/App_Resources/iOS/LaunchScreen.storyboard
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
||||||
|
<device id="retina5_9" orientation="portrait">
|
||||||
|
<adaptation id="fullscreen"/>
|
||||||
|
</device>
|
||||||
|
<dependencies>
|
||||||
|
<deployment identifier="iOS"/>
|
||||||
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
|
||||||
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
|
</dependencies>
|
||||||
|
<scenes>
|
||||||
|
<!--View Controller-->
|
||||||
|
<scene sceneID="EHf-IW-A2E">
|
||||||
|
<objects>
|
||||||
|
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
|
||||||
|
<layoutGuides>
|
||||||
|
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
|
||||||
|
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
|
||||||
|
</layoutGuides>
|
||||||
|
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
|
<subviews>
|
||||||
|
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="LaunchScreen.AspectFill" translatesAutoresizingMaskIntoConstraints="NO" id="wtH-rr-YfP">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
|
||||||
|
</imageView>
|
||||||
|
<imageView userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="LaunchScreen.Center" translatesAutoresizingMaskIntoConstraints="NO" id="s1z-aa-wYv">
|
||||||
|
<rect key="frame" x="0.0" y="150" width="375" height="512"/>
|
||||||
|
</imageView>
|
||||||
|
</subviews>
|
||||||
|
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstAttribute="trailing" secondItem="s1z-aa-wYv" secondAttribute="trailing" id="4Rf-kf-vql"/>
|
||||||
|
<constraint firstAttribute="bottom" secondItem="wtH-rr-YfP" secondAttribute="bottom" id="5CS-At-4ka"/>
|
||||||
|
<constraint firstItem="wtH-rr-YfP" firstAttribute="top" secondItem="Ze5-6b-2t3" secondAttribute="top" id="Awn-b8-xf1"/>
|
||||||
|
<constraint firstItem="s1z-aa-wYv" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" id="BpJ-vb-eKA"/>
|
||||||
|
<constraint firstItem="s1z-aa-wYv" firstAttribute="trailing" secondItem="wtH-rr-YfP" secondAttribute="trailing" id="QIM-7J-OZz"/>
|
||||||
|
<constraint firstAttribute="trailing" secondItem="wtH-rr-YfP" secondAttribute="trailing" id="RXg-rW-UK8"/>
|
||||||
|
<constraint firstItem="s1z-aa-wYv" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="Rcp-LG-48z"/>
|
||||||
|
<constraint firstItem="wtH-rr-YfP" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" id="cch-8E-tYu"/>
|
||||||
|
</constraints>
|
||||||
|
</view>
|
||||||
|
</viewController>
|
||||||
|
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||||
|
</objects>
|
||||||
|
<point key="canvasLocation" x="509.60000000000002" y="237.93103448275863"/>
|
||||||
|
</scene>
|
||||||
|
</scenes>
|
||||||
|
<resources>
|
||||||
|
<image name="LaunchScreen.AspectFill" width="768" height="1024"/>
|
||||||
|
<image name="LaunchScreen.Center" width="384" height="512"/>
|
||||||
|
</resources>
|
||||||
|
</document>
|
7
e2e/animation/app/App_Resources/iOS/build.xcconfig
Normal file
@ -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;
|
1
e2e/animation/app/app-root.xml
Normal file
@ -0,0 +1 @@
|
|||||||
|
<Frame defaultPage="home/home-page" />
|
13
e2e/animation/app/app.css
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
/*
|
||||||
|
In NativeScript, the app.css file is where you place CSS rules that
|
||||||
|
you would like to apply to your entire application. Check out
|
||||||
|
http://docs.nativescript.org/ui/styling for a full list of the CSS
|
||||||
|
selectors and properties you can use to style UI components.
|
||||||
|
|
||||||
|
/*
|
||||||
|
For example, the following CSS rule changes the font size of all UI
|
||||||
|
components that have the btn class name.
|
||||||
|
*/
|
||||||
|
.btn {
|
||||||
|
font-size: 18;
|
||||||
|
}
|
3
e2e/animation/app/app.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
import * as application from "tns-core-modules/application";
|
||||||
|
|
||||||
|
application.run({ moduleName: "app-root" });
|
36
e2e/animation/app/home/home-page.ts
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
import { EventData, NavigatedData } from "tns-core-modules/ui/page";
|
||||||
|
import { AnimationDefinition, Animation } from "tns-core-modules/ui/animation";
|
||||||
|
|
||||||
|
let page;
|
||||||
|
let label1;
|
||||||
|
let label2;
|
||||||
|
|
||||||
|
export function onNavigatedTo(args: NavigatedData) {
|
||||||
|
page = args.object;
|
||||||
|
label1 = page.getViewById("Label1");
|
||||||
|
label2 = page.getViewById("Label2");
|
||||||
|
}
|
||||||
|
|
||||||
|
export function onPlaySequentially(args: EventData) {
|
||||||
|
const definitions = new Array<AnimationDefinition>();
|
||||||
|
definitions.push({ target: label1, translate: { x: 100, y: 0 }, duration: 500 });
|
||||||
|
definitions.push({ target: label1, opacity: 0.1, duration: 500 });
|
||||||
|
|
||||||
|
const animationSet = new Animation(definitions, true);
|
||||||
|
animationSet.play()
|
||||||
|
.then(() => {
|
||||||
|
label1.text = "Label1 animated sequentially!";
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export function onPlaySimultaneously(args: EventData) {
|
||||||
|
const definitions = new Array<AnimationDefinition>();
|
||||||
|
definitions.push({ target: label2, translate: { x: 0, y: 100 }, duration: 500 });
|
||||||
|
definitions.push({ target: label2, opacity: 0.1, duration: 500 });
|
||||||
|
|
||||||
|
const animationSet = new Animation(definitions, true);
|
||||||
|
animationSet.play()
|
||||||
|
.then(() => {
|
||||||
|
label2.text = "Label2 animated simultaneously!";
|
||||||
|
});
|
||||||
|
}
|
16
e2e/animation/app/home/home-page.xml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<Page class="page"
|
||||||
|
navigatedTo="onNavigatedTo"
|
||||||
|
xmlns="http://schemas.nativescript.org/tns.xsd">
|
||||||
|
|
||||||
|
<ActionBar class="action-bar">
|
||||||
|
<Label class="action-bar-title" text="Home"></Label>
|
||||||
|
</ActionBar>
|
||||||
|
|
||||||
|
<StackLayout>
|
||||||
|
<Label text="Home loaded!" />
|
||||||
|
<Button text="Play Sequential Animation With Translate" tap="onPlaySequentially" />
|
||||||
|
<Button text="Play Simultaneous Animation With Translate" tap="onPlaySimultaneously" />
|
||||||
|
<Label id="Label1" text="Label1" backgroundColor="hotpink" horizontalAlignment="left" />
|
||||||
|
<Label id="Label2" text="Label2" backgroundColor="beige" horizontalAlignment="left" />
|
||||||
|
</StackLayout>
|
||||||
|
</Page>
|
8
e2e/animation/app/package.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"android": {
|
||||||
|
"v8Flags": "--expose_gc"
|
||||||
|
},
|
||||||
|
"main": "app.js",
|
||||||
|
"name": "tns-template-hello-world-ts",
|
||||||
|
"version": "3.4.0"
|
||||||
|
}
|
48
e2e/animation/e2e/animation.e2e-spec.ts
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
import { AppiumDriver, createDriver, SearchOptions } from "nativescript-dev-appium";
|
||||||
|
import { Screen } from "./screen";
|
||||||
|
import { assert } from "chai";
|
||||||
|
|
||||||
|
describe("animation:", () => {
|
||||||
|
|
||||||
|
let driver: AppiumDriver;
|
||||||
|
let screen: Screen;
|
||||||
|
|
||||||
|
before(async () => {
|
||||||
|
driver = await createDriver();
|
||||||
|
screen = new Screen(driver);
|
||||||
|
|
||||||
|
await driver.resetApp();
|
||||||
|
});
|
||||||
|
|
||||||
|
after(async () => {
|
||||||
|
await driver.quit();
|
||||||
|
console.log("Quit driver!");
|
||||||
|
});
|
||||||
|
|
||||||
|
afterEach(async function () {
|
||||||
|
if (this.currentTest.state === "failed") {
|
||||||
|
await driver.logPageSource(this.currentTest.title);
|
||||||
|
await driver.logScreenshot(this.currentTest.title);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
it("should play sequentially", async () => {
|
||||||
|
await screen.loadedHome();
|
||||||
|
|
||||||
|
const button = await driver.findElementByText("Play Sequential Animation With Translate", SearchOptions.exact);
|
||||||
|
await button.click();
|
||||||
|
|
||||||
|
const label = await driver.findElementByText("Label1 animated sequentially!", SearchOptions.exact);
|
||||||
|
assert.isTrue(await label.isDisplayed());
|
||||||
|
});
|
||||||
|
|
||||||
|
it("should play simultaneously", async () => {
|
||||||
|
await screen.loadedHome();
|
||||||
|
|
||||||
|
const button = await driver.findElementByText("Play Simultaneous Animation With Translate", SearchOptions.exact);
|
||||||
|
await button.click();
|
||||||
|
|
||||||
|
const label = await driver.findElementByText("Label2 animated simultaneously!", SearchOptions.exact);
|
||||||
|
assert.isTrue(await label.isDisplayed());
|
||||||
|
});
|
||||||
|
});
|
19
e2e/animation/e2e/screen.ts
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { AppiumDriver } from "nativescript-dev-appium";
|
||||||
|
import { assert } from "chai";
|
||||||
|
|
||||||
|
const home = "Home"
|
||||||
|
|
||||||
|
export class Screen {
|
||||||
|
|
||||||
|
private _driver: AppiumDriver
|
||||||
|
|
||||||
|
constructor(driver: AppiumDriver) {
|
||||||
|
this._driver = driver;
|
||||||
|
}
|
||||||
|
|
||||||
|
loadedHome = async () => {
|
||||||
|
const lblHome = await this._driver.findElementByText(home);
|
||||||
|
assert.isTrue(await lblHome.isDisplayed());
|
||||||
|
console.log(home + " loaded!");
|
||||||
|
}
|
||||||
|
}
|
15
e2e/animation/e2e/setup.ts
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { AppiumDriver, createDriver, startServer, stopServer } from "nativescript-dev-appium";
|
||||||
|
|
||||||
|
let driver: AppiumDriver;
|
||||||
|
|
||||||
|
before("start server", async () => {
|
||||||
|
await startServer();
|
||||||
|
driver = await createDriver();
|
||||||
|
await driver.setDontKeepActivities(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
after("stop server", async () => {
|
||||||
|
await driver.setDontKeepActivities(false);
|
||||||
|
await driver.quit();
|
||||||
|
await stopServer();
|
||||||
|
});
|
19
e2e/animation/e2e/tsconfig.json
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"module": "commonjs",
|
||||||
|
"target": "es6",
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"emitDecoratorMetadata": true,
|
||||||
|
"importHelpers": false,
|
||||||
|
"sourceMap": true,
|
||||||
|
"types": [
|
||||||
|
"node",
|
||||||
|
"mocha",
|
||||||
|
"chai"
|
||||||
|
],
|
||||||
|
"lib": [
|
||||||
|
"es2015",
|
||||||
|
"dom"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
28
e2e/animation/package.json
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"description": "NativeScript Application",
|
||||||
|
"license": "SEE LICENSE IN <your-license-filename>",
|
||||||
|
"readme": "NativeScript Application",
|
||||||
|
"repository": "<fill-your-repository-here>",
|
||||||
|
"nativescript": {
|
||||||
|
"id": "org.nativescript.animation",
|
||||||
|
"tns-ios": {
|
||||||
|
"version": "next"
|
||||||
|
},
|
||||||
|
"tns-android": {
|
||||||
|
"version": "next"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"nativescript-theme-core": "~1.0.4",
|
||||||
|
"tns-core-modules": "next"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"nativescript-dev-appium": "next",
|
||||||
|
"nativescript-dev-typescript": "next",
|
||||||
|
"nativescript-dev-webpack": "next"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"e2e": "tsc -p e2e && mocha --opts ../config/mocha.opts --recursive e2e --appiumCapsLocation ../config/appium.capabilities.json",
|
||||||
|
"e2e-watch": "tsc -p e2e --watch"
|
||||||
|
}
|
||||||
|
}
|
29
e2e/animation/tsconfig.json
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"module": "commonjs",
|
||||||
|
"target": "es5",
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"emitDecoratorMetadata": true,
|
||||||
|
"noEmitHelpers": true,
|
||||||
|
"noEmitOnError": true,
|
||||||
|
"lib": [
|
||||||
|
"es6",
|
||||||
|
"dom"
|
||||||
|
],
|
||||||
|
"baseUrl": ".",
|
||||||
|
"paths": {
|
||||||
|
"*": [
|
||||||
|
"./node_modules/tns-core-modules/*",
|
||||||
|
"./node_modules/*"
|
||||||
|
],
|
||||||
|
"~/*": [
|
||||||
|
"app/*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"exclude": [
|
||||||
|
"node_modules",
|
||||||
|
"platforms",
|
||||||
|
"e2e"
|
||||||
|
]
|
||||||
|
}
|
@ -22,7 +22,7 @@
|
|||||||
"nativescript-dev-webpack": "next"
|
"nativescript-dev-webpack": "next"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"e2e": "tsc -p e2e && mocha --opts ./e2e/config/mocha.opts",
|
"e2e": "tsc -p e2e && mocha --opts ../config/mocha.opts --recursive e2e --appiumCapsLocation ../config/appium.capabilities.json",
|
||||||
"e2e-watch": "tsc -p e2e --watch"
|
"e2e-watch": "tsc -p e2e --watch"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -79,8 +79,8 @@ class AnimationDelegateImpl extends NSObject implements CAAnimationDelegate {
|
|||||||
targetStyle[setLocal ? rotateProperty.name : rotateProperty.keyframe] = value;
|
targetStyle[setLocal ? rotateProperty.name : rotateProperty.keyframe] = value;
|
||||||
break;
|
break;
|
||||||
case Properties.translate:
|
case Properties.translate:
|
||||||
targetStyle[setLocal ? translateXProperty.name : translateXProperty.keyframe] = value;
|
targetStyle[setLocal ? translateXProperty.name : translateXProperty.keyframe] = value.x;
|
||||||
targetStyle[setLocal ? translateYProperty.name : translateYProperty.keyframe] = value;
|
targetStyle[setLocal ? translateYProperty.name : translateYProperty.keyframe] = value.y;
|
||||||
break;
|
break;
|
||||||
case Properties.scale:
|
case Properties.scale:
|
||||||
targetStyle[setLocal ? scaleXProperty.name : scaleXProperty.keyframe] = value.x === 0 ? 0.001 : value.x;
|
targetStyle[setLocal ? scaleXProperty.name : scaleXProperty.keyframe] = value.x === 0 ? 0.001 : value.x;
|
||||||
|