Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10685] Android: distribute apps to the Play Store fails if the code contains "const"

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-09-20T12:08:55.000+0000
Affected Version/sRelease 2.1.1
Fix Version/sRelease 3.0.0, Sprint 2012-19 Core, 2012 Sprint 19
ComponentsAndroid
LabelsSupportTeam, core, module_package, qe-testadded
ReporterDavide Cassenti
AssigneeOpie Cyrus
Created2012-08-28T05:33:30.000+0000
Updated2013-06-24T05:02:09.000+0000

Description

Problem description

When creating an app containing constansts declared with const, the app works untill you try to distribute to the store. In that case, the following error is shown: ~~~ ERROR - Parse error. Unsupported syntax: CONST ~~~

Steps to reproduce

1. Create a simple app with a constant: ~~~ const test = "Hello World!"; var win = Ti.UI.createWindow({ backgroundColor: 'black' }); alert(test); win.open(); ~~~ 2. Test the app on the device or simulator: everything works. 3. Distribute the app: the app fails with the error above

Comments

  1. Tamila Smolich 2012-12-04

    Closing as fixed. Able to distribute an app to the Android App Store with no errors. Tested on: Titanium Studio, build: 3.0.0.201211301903 Titanium SDK, build: 3.0.0.v20121130200208

JSON Source