Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Level 7

How to read application's manifest using bright script?

Is there a way for the app to figure out its name, version etc which is available in the application manifest file?

Thanks.
0 Kudos
2 Replies
Highlighted
Roku Employee
Roku Employee

Re: How to read application's manifest using bright script?

function NWM_Manifest()
result = {}

raw = ReadASCIIFile("pkg:/manifest")
lines = raw.Tokenize(Chr(10))
for each line in lines
bits = line.Tokenize("=")
if bits.Count() > 1
result.AddReplace(bits[0], bits[1])
end if
next

return result
end function
0 Kudos
Highlighted
Level 7

Re: How to read application's manifest using bright script?

Thank you Chris. Your code works very well.
0 Kudos