There is one thing that I’ve been wondering, where do people set their environment variables, and is there anything like best practices.
For example, we run two data environments, a dev and a production one, and it would make our lifeeasier if we could just have an environment file where we set DATA_SOURCE, and we can set it to something like
DATA_SOURCE="https://www.ourdomain.com/api/dev/v1.01"
Then in the code being able to do something like:
xfer.SetURL="$$DATA_SOURCE$$/get_content"
I looked at the manifest file, and there is a function (or option) called
uri_resolution_autosub
Which works this way, but it seems like a reserved word (or something like that).
And I guess I can put it in an screengraph XML, but truth to be told, every time I’ve thought I’ve understood first thing about data scopes in Roku it throws a curveball and I feel rather lost (I’m also relatively new to Roku development). So was hoping there is a simple way of setting constant variables available anywhere just for environment settings.
Thank so very much, and sorry if this isn’t the right place to ask.
