jeffbonnes / installr-updater

A Titanium module to see if a tester is running the latest beta build uploaded to installrapp.com
12 stars 2 forks source link

Would not work in adhoc #1

Open FokkeZB opened 10 years ago

FokkeZB commented 10 years ago

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.

jeffbonnes commented 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.

FokkeZB commented 10 years ago

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.

FokkeZB commented 10 years ago

Here is the ticket: https://jira.appcelerator.org/browse/TC-4148