09-17-2013 11:53 AM
09-17-2013 12:01 PM - edited 09-17-2013 12:03 PM
If you "compile" your QML, as described here:
It can't be browsed as easily. It may not be browsable at all, but I haven't checked (I'm just doing it for apparent speed gains). Basically, if you unzip the .bar as a zip file (as you regularly would to browse all the assets including the QML), you will see all the project assets, but the QML won't be shown there.
I could look into it further, later, if you're interested.
09-17-2013 12:22 PM
I've taken a look at my .bar, unzipped it, filtered through it, and I can say that it does not appear possible to lift any QML from files compiled using the method described here:
This appears to be a valid method of obfuscation, as far as I can tell. I would scrutinize it yourself, if it is mission critical, for you, but from what I can tell, it's impossible to grab any QML from the .bar if the QML resources are compiled.
09-18-2013 06:37 AM
I read about it but I didn't think to.
The only issue I have now is that with qrc, the app cannot recognize some Types anymore.
In fact, when i use this qml code:
where HP is a reference to HP.qml I receive the following message: "HP is not a type".
Is there a way to solve?
09-18-2013 07:08 AM
This method comes at too high a penalty for exactly the problem it is trying to solve.
I have a huge amount of QML files in my app, having to replace all the C++ links is fairly trivial but the only work around to supporting different devices and screen dimensions is to have a separate project for each.
With currently three different screen sizes therefore producing three bundles this alone triples the testing time to get the app out the door.
Until I hear that it's possible to view QML files from a downloaded BAR file this is a non-runner for me.
09-19-2013 03:27 PM
You can get a bar file of a free application, because there is no connection encryption. Just set up http proxy server, install an application on the phone, find in the proxy server logs an url and then download bar file using a desktop brouser.
But, paid applications are downloaded via encrypted channel, so your code in bar file is safe.
09-19-2013 03:48 PM - edited 09-19-2013 04:19 PM
That's bad news, especially for developers who develop using moslty qml because the qml files are visible when the .bar is changed to a .zip
*following the qrc method described above does appear to solve the visiblity of qml files
Can this be applied to images as well?
09-19-2013 05:34 PM
09-19-2013 05:49 PM - edited 09-19-2013 05:57 PM
QRC doesn't offer any protection AFAIK, the files are stored "as is" inside of binary file. An experienced developer should be able to extract them easily.