Open FokkeZB opened 10 years ago
You are probably correct Fokke - I only tested it with Development builds. I'll need to figure out a way to tell if this is an AdHoc build or a Store build.
There currently is no way on runtime, but as I said Alloy 1.4 introduces a compile directive. I will request to have something similar in Titanium as well. Hyperloop at least WILL have the same ones as Alloy out of the box.
Here is the ticket: https://jira.appcelerator.org/browse/TC-4148
I haven't checked this, but looking at https://github.com/jeffbonnes/installr-updater/blob/master/installrUpdater.js#L61 this won't work in adhoc apps since these are identified as production by Titanium as well.
Alloy 1.4.0 will introduce a new
ENV_STORE
directive you could use.