Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9682] Android: Packaging:No warning displayed for default system value of 'ti.ui.defaultunit'.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2013-10-19T01:20:09.000+0000
Affected Version/sRelease 2.1.0
Fix Version/s2013 Sprint 21, 2013 Sprint 21 Core, Release 3.2.0
ComponentsAndroid, Tooling
Labelsandroidbuild, cb-verified, core, qe-and060112
ReporterShyam Bhadauria
AssigneeChris Barber
Created2012-06-20T22:59:20.000+0000
Updated2013-11-12T11:58:42.000+0000

Description

It is not a regression.It exists as far as 1.8.2 While packaging the app,when the value of ti.ui.defaultunit is 'abc' - Expected - Display warning during packaging, use default system value Actual - No warnings are displayed while packaging. Logs generated while packaging are attached with the bug.

Attachments

FileDateSize
PackagingLogs.rtf2012-06-20T22:59:20.000+000032266

Comments

  1. Shyam Bhadauria 2012-10-15

    Adding the steps to reproduce: 1. Use the app below in app.js file
       var win = Ti.UI.createWindow({
       	backgroundColor:'black'
       });
       
       var view = Ti.UI.createView({
       	backgroundColor:'white',
       	width:40,
       	height:40
       });
       
       win.add(view);
       win.open();
       
    2. Add the line below in tiapp.xml file of project abc 3. Run the app Expected result: Display warning during packaging, use default system value Actual result No warning is displayed.
  2. Chris Barber 2013-08-01

    Valid default units include: * system * px * dp * dip * mm * cm * in The following are unsupported: * sp * sip * pt * % Here's the full list of Android's units: http://developer.android.com/guide/topics/resources/more-resources.html#Dimension.
  3. Allen Yeung 2013-10-19

    PR: https://github.com/appcelerator/titanium_mobile/pull/4781
  4. Paras Mishra 2013-11-12

    Warning is displayed for default system value of 'ti.ui.defaultunit' as " [ERROR] : Invalid "ti.ui.defaultunit" property value "abc" Valid units: system px dp dip mm cm in " Works as expected hence closing the issue. Verified fixed on: Appcelerator Studio, build: 3.2.0.201311112306 SDK:3.2.0.v20131111174605 alloy: 1.3.0 CLI : 3.2.0 Xcode:5.0.1 OS: Mac OSX 10.9

JSON Source