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
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?
Resolving as directed.
Closing ticket as invalid.