[TIMOB-17166] Move constants definition out of ifdef block

Test is in [JIRA](https://jira.appcelerator.org/browse/TIMOB-17166)