Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8750] Android: Production builds are breaking app events

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2014-11-05T18:27:47.000+0000
Affected Version/sRelease 1.8.0.1, Release 1.8.2
Fix Version/sn/a
ComponentsAndroid
LabelsSupportTeam, core, exalture
ReporterMauro Parra-Miranda
AssigneeIngo Muschenetz
Created2012-04-16T17:43:48.000+0000
Updated2017-03-13T18:10:20.000+0000

Description

Problem Description

When creating a distribution build for the Google market, it will break the app.

Actual Results

The app is broken when built for distribution.

Expected results

The app working just fine (as the build to test/ build to device does).

Test Case

1. Grab the code ( Included app source code in the internal comments) 2. Import it as project. 3. Build it to a device/emulator (open the app, Go to kalendar, then medecine, press +) - It will work fine. 4. Remove it from device/emulator. 5. Build the project for distribution. (open the app, go to kalendar, then medicine, press +) - it will crash.

HD discussion

http://support-admin.appcelerator.com/display/APP-412855

Comments

  1. Henrik Hoff 2012-04-17

    We found a solution for this in the js code today: The "undefined" reference was caused by trying to register an eventListener with a function that was defined later in the scope. In the JS interpreter on Android, this is apparently fine, but in the JS to bytecode compiler, this is forbidden. But perhaps this should be handled by the compiler in some way, so that the user (we) get warned about this?
  2. Ingo Muschenetz 2014-11-05

    Resolving as directed.
  3. Lee Morris 2017-03-13

    Closing ticket as invalid.

JSON Source