Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-10685

Android: distribute apps to the Play Store fails if the code contains "const"

    Details

      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

        Attachments

          Activity

            People

            • Assignee:
              opiecyrus Opie Cyrus
              Reporter:
              dcassenti Davide Cassenti
            • Watchers:
              0 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-14092
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code