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

How to obfuscate brightscript code

HI 

We want to deliver customer with a library . combination of brightscript files  and tasks.  What is best way to do without letting customer access to our source code. 
Do we have any concept similar to java JAR file where in we add jar and can import files and use them?  Something like sub project(a package is delivered to customer )

Or Do we have any tools that can obfuscate brightscript code and make it minified...
0 Kudos
3 Replies
Highlighted
Level 8

Re: How to obfuscate brightscript code

the short answer is no, there is no way to obfuscate code you deliver as a library.
SceneGraph supports a library component, downloadable at runtime, but I have never tried it: https://sdkdocs.roku.com/display/sdkdoc/ComponentLibrary
0 Kudos
Highlighted

Re: How to obfuscate brightscript code

Thanks for the response. i will have a look into Component library
0 Kudos
Highlighted
Level 7

Re: How to obfuscate brightscript code

Hi,

I am using Component Library but somehow I am not getting Keyevents in my library.

I have tried add just "onKeyEvent" function in sample application available at  "https://sdkdocs.roku.com/display/sdkdoc/ComponentLibrary"

Can some one please help how to use "Function onKeyEvent(key as String, press as Boolean) as Boolean" in library.

Appreciate if someone can help quickly as due this I am stuck.

Thanks,
Hardik
0 Kudos