#1 2015-10-29 16:41:12

svanneste
Member
From: Paris, France
Registered: 2015-05-27
Posts: 155

[SOLVED] How to test the Code Minimizer ?

Hello,
I wanted to test the Code Minimizer's option because I am still worrying (or trying to find) about the proper way to protect my scripts when used on the web.

If I well understand it, I was expecting : "Javascript and CSS code become non human friendly readable"

What I have done is to create a sample app, saved it, started the code minimizer and built the app. After that, I was gone inside the compiled app's folder and especially the builder & app "scripts" folders.

Inside the builder folder, the builder.js seems to be minimized. But inside the app folder, the app.js is readable

exec1.png

In the same time, the views inside the app's views folder seem to be minimized but not the ones inside the builder's view folder.

Please, do you see what I am missing ? Many thanks smile

Last edited by svanneste (2015-10-29 16:50:45)

Offline

#2 2015-10-29 16:48:25

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,657
Website

Re: [SOLVED] How to test the Code Minimizer ?

Hello Samuel,

I think you are inverted the steps, that is, first we need to build the app, and then use the minimizer tool. Think that everytime we build the app the code come again without minimize. On the other hand, you can create a Batch file to build your app. As you can see in the Batch file tool, we can check an option to minimize the code. Then, when we execute the Batch file, App Builder build your app and automatically after minimize their code.

Hope this can help you Samuel. Tell me if you have further questions.

Offline

#3 2015-10-29 16:50:26

svanneste
Member
From: Paris, France
Registered: 2015-05-27
Posts: 155

Re: [SOLVED] How to test the Code Minimizer ?

Hello David,
You are right, I did inverted the steps. Many thanks for having put me in the right direction smile

Offline

#4 2015-10-29 16:58:57

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,657
Website

Re: [SOLVED] How to test the Code Minimizer ?

No problem Samuel!

About possible ways to protect our apps, think that, on the client side, anybody can take a look at the source, just like in every web site, for example. However, certain things may can be doing in a server: in general terms nobody have access to the server, so our server code is more or less protected.

Offline

#5 2015-10-29 17:15:30

svanneste
Member
From: Paris, France
Registered: 2015-05-27
Posts: 155

Re: [SOLVED] How to test the Code Minimizer ?

Hello David,
I do agree about the server side of course. That's the way I usually work with my mobile apps.
That's probably a lack of knowledge and I will have to learn a little more but, if I create a GUI with App Builder, I will expose the parameters names and the web services scripts url too.
Even more, when using the developers tools included in modern web browsers, all the variables become readable. I am not used to that.
But I will find a solution.

Offline

#6 2015-10-29 17:20:58

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,657
Website

Re: [SOLVED] How to test the Code Minimizer ?

Hello Samuel,

Yes; we can expose certain server URLs, but that does not mean the server response are the same for every request. For example, supose we want to get certain user information from a server database. In an HTTP call (using an HTTP client control) we can include certain user name and password, then, the server only give us the user information if the name and password are correct and not in other case.

We expose the URL for our login script in the server, but, never expose the user name and password.

Offline

Board footer

Powered by FluxBB


Copyright ©2018 DecSoft. All rights reserved.