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…

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

Thanks for the response. i will have a look into Component library

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