Have you spent months working on the perfect application? Are you now worried someone will just copy your source code right from your NativeScript application? (This is not a unique issue to NativeScript; ReactNative, Titanium*,Cordova/PhoneGap and any other platforms that are not compiling Java code have this exact same issue. )
Well, I have a solution for you. After a lot of hard work; I am proud to introduce my first commercial component into the NativeScript eco-system; NativeScript-Protect. The NativeScript-Protect plugin is a (very) simple install and then it will automatically encrypt and/or minimize your source code while you are building your release version of the project.
It automatically ties itself into the NativeScript (tns) command so that you do not have to do anything. When you run anything that does a build; it will automatically encrypt and/or minimize your build copies of the code.
This does NOT touch your original source code; only the BUILD copies that the NativeScript (tns) command copies into the build system. So it makes itself a seamless part of your standard build process that you can just totally forget it even exists.
The initial release is only for Android; but I expect to have the iOS runtimes done early next year.
If you would like to see it in action; I have a 4 minute video showing it from start to end.