Results 1 to 2 of 2

Thread: Cordova closure compile

  1. #1
    Sencha Premium Member jasonsti's Avatar
    Join Date
    Dec 2010
    Posts
    54

    Default Cordova closure compile

    Hi all

    got a question regarding to code protection with sencha touch, i notice when i publish a cordova project and compile into ios/android, when i unzip the final output, i can see all my codes, has anyone have a good solution to protect this?

    any help would be great

    thank you advance

    Jason

  2. #2
    Sencha - Engineering israelroldan's Avatar
    Join Date
    Nov 2011
    Location
    The Netherlands
    Posts
    395

    Default

    Currently there's no out-of-the-box way to work around this. Cordova needs to include the built js files into the package as that's how they are served to the WebView.

    You could look into plugging an obfuscator into the build process (by adding an after-build task, for example). But do bear in mind that no matter what the obfuscator's method is, it does not make your app sources 100% secret or invulnerable to reverse engineering.
    Israel Roldán | Senior Software Engineer (Framework tools)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •