Titanium JIRA Archive
Alloy (ALOY)

[ALOY-807] Alloy: Style properties are not showing with runtime values on package distribution

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2013-08-28T17:47:14.000+0000
Affected Version/sAlloy 1.2.1
Fix Version/s2013 Sprint 18
ComponentsWidgets
Labelsn/a
ReporterDhirendra Jha
AssigneeTony Lukasavage
Created2013-08-26T12:32:40.000+0000
Updated2014-06-22T13:21:18.000+0000

Description

This issue is also reproducible using 3.1.2.GA build. Steps - 1) Used the same test code (https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-612) 2) Packaged the app as "Distribute Ad Hoc/Enterprise from Studio. 3) Install the .ipa file on device. 4) Launch the app. 5) Click on button1, button2 and button3. Check the console log. Actual Result - Style properties are not showing with runtime values in console. Expected Result - Style properties should show with runtime values. Additional Info - If the same app directly execute on device from Studio then clicking on buttons (button1, button2 and button3) are showing the Style properties information in console log. For this the issue ALOY-612 is already verified and closed.

Comments

  1. Federico Casali 2013-08-27

    Marked as invalid. Ti.API.info messages are not meant to be shown in the logs for projects being built for distribution. Showing JSON.stringify output in an alert screen, shows the style properties are behaving as expected. controller/index.js
       $.index.open();
       
       var style = require('alloy/styles/index');
       var i, len;	
       for (i = 0, len = $.index.children.length; i < len; i++) {
       	var child = $.index.children[i];
       	child.addEventListener('click', function(e) {
       		var id = e.source.id;
       		_.each(style, function(o) {
       			if (o.key === id && o.isId) {
       				// print each style that applies by ID to the source
       				Ti.API.info(JSON.stringify(o));
       				alert(JSON.stringify(o));
       			}
       		});
       	});
       }
       

JSON Source