[TIMOB-9343] Ti API: Animation curves are not platform-specific
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-09-12T04:38:36.000+0000 |
| Affected Version/s | Release 2.0.1 |
| Fix Version/s | Release 2.1.0, Sprint 2012-12 API |
| Components | TiAPI |
| Labels | api, module_animation, qe-review, qe-testadded |
| Reporter | Arthur Evans |
| Assignee | Vishal Duggal |
| Created | 2012-06-01T17:37:30.000+0000 |
| Updated | 2013-11-27T12:16:46.000+0000 |
Description
Animation curves are supported in iOS and Mobile Web, so the Ti.UI. animation curve constants should be undeprecated, and the platform-specific versions in Ti.UI.iOS should be deprecated instead.
Test Code
var win = Ti.UI.createWindow({backgroundColor:'white'}) var label = Ti.UI.createLabel({ text:'See logs' }) win.add(label); //These statements should print out warnings. Ti.API.info('PRINTING IOS PROXY CONSTANTS WILL SHOW WARNING'); Ti.API.info(Ti.UI.iOS.ANIMATION_CURVE_EASE_IN_OUT); Ti.API.info(Ti.UI.iOS.ANIMATION_CURVE_EASE_IN); Ti.API.info(Ti.UI.iOS.ANIMATION_CURVE_EASE_OUT); Ti.API.info(Ti.UI.iOS.ANIMATION_CURVE_LINEAR); //These should no longer print out warnings Ti.API.info('PRINTING UI PROXY CONSTANTS WILL NOT SHOW WARNING'); Ti.API.info(Ti.UI.ANIMATION_CURVE_EASE_IN_OUT); Ti.API.info(Ti.UI.ANIMATION_CURVE_EASE_IN); Ti.API.info(Ti.UI.ANIMATION_CURVE_EASE_OUT); Ti.API.info(Ti.UI.ANIMATION_CURVE_LINEAR); win.open();Pull pending https://github.com/appcelerator/titanium_mobile/pull/2405
Warning shown when iOS specific animation curve constants used. Verified on: Titanium Studio: 2.1.2.201208301612 Titanium SDK: 2.1.0 GA, 2.2.0.v20120830182512 iOS Simulator (v5.1)
Reopening to update labels
Anvil test case added. PR link: https://github.com/appcelerator/titanium_mobile/pull/5037