Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9343] Ti API: Animation curves are not platform-specific

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-09-12T04:38:36.000+0000
Affected Version/sRelease 2.0.1
Fix Version/sRelease 2.1.0, Sprint 2012-12 API
ComponentsTiAPI
Labelsapi, module_animation, qe-review, qe-testadded
ReporterArthur Evans
AssigneeVishal Duggal
Created2012-06-01T17:37:30.000+0000
Updated2013-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.

Comments

  1. Vishal Duggal 2012-06-15

    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();
       
  2. Vishal Duggal 2012-06-15

    Pull pending https://github.com/appcelerator/titanium_mobile/pull/2405
  3. Satyam Sekhri 2012-08-31

    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)
  4. Anshu Mittal 2012-09-12

    Reopening to update labels
  5. jithinpv 2013-11-27

    Anvil test case added. PR link: https://github.com/appcelerator/titanium_mobile/pull/5037

JSON Source