Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
vaxace
Binge Watcher

Retrieve application version

Is there any way to retrieve the application version (major, minor, build) from within BrightScript?
I haven't been able to find anything.
The roAppManager component seems like a logical place to find this, but it's not there.

D.
0 Kudos
2 REPLIES 2
kbenson
Visitor

Re: Retrieve application version


manifest = ReadAsciiFile("pkg:/manifest")
' code or regex to parse manifest here...


Not exactly as easy as it could be if it was exported usefully, but definitely not impossible or really that hard.
-- GandK Labs
Check out Reversi! in the channel store!
0 Kudos
vaxace
Binge Watcher

Re: Retrieve application version

As you say, not as clean as it could be, but certainly doable.
I need to remember that all of the files are available from the app.

Thanks for the useful answer. :mrgreen:

D.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.