How can I hide my js code from the user? #268
Unanswered
chikashimiyama
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Good question, and yes of course! Just as you suggested, once you've built your To do that, you'll want to manage your own std::shared_ptr<reactjuce::EcmascriptEngine> engine = std::make_shared<reactjuce::EcmascriptEngine>();
reactjuce::ReactApplicationRoot appRoot (engine);
addAndMakeVisible(appRoot);
engine->evaluateInline(juce::String(juce::CharPointer_UTF8(juce::BinaryData::main_js))); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the react-juce example, C++ code loads the js code from the file system
This is not ideal for a commercial product because the user can read, delete or modify the code intentionally or accidentally.
Would it be possible to embed the js file completely in the plugin? for example, using juce's binary data?
Beta Was this translation helpful? Give feedback.
All reactions