Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › Some question about build APK for android !!!

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #16871

    Waeil

    BUILD SUCCESSFUL

    Total time: 15.04 secs

    Android package built successfully in 29.244 ms.

    — File: C:/QML-Training/build-MyLessen-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_0_for_Android_armv7-Release/android-build//build/outputs/apk/android-build-debug.apk

     

    I open this file APK with WINRAR, I note that it content all my source code  QML + Js + picture. I upload it to my mobile … SAMSUNG.J1..  it take more then 20s to open the app. So >>

    HOW PROTECT MY CODE SOURCE APK ?

    HOW MAKE STARTUP TIME MORE FAST ( LESS THEN 3S)

    #16876

    Christian
    Felgo Team

    Hi Waeil,

    you can find the documentation how to protect your source code here.

    To improve the startup time, you can add a Loader item and use a custom splash screen image that is shown right after app start, and only then load the remaining files. You can have a look at the demo games we provide (like One Card or Squaby) for best practices.

    Cheers, Chris

    #24442

    Ali

    Hi,
    I had the same question.

    compiling qml sources does the job.

    but when I comment ‘DEPLOYMENTFOLDERS += qmlFolder’ line in .pro file config.json is ignored and the compiled release build is in test mode(stage:’test’)

    it seems anything written in config.json esp stage(“stage”: “publish”) is ignored. Am I right?

    if yes, how can we set config.json in .pro file without uncommenting ‘DEPLOYMENTFOLDERS += qmlFolder’?

    if no, why commenting specified line will cause a development build?

    Thanks

    #24447

    Alex
    Felgo Team

    Hi,

    if you comment the deployment folders, make sure to add the resources file in your pro file. The resource file must reference every qml/js file and also the config.json file.

    Best,
    Alex

     

    #24448

    Ali

    Thanks after I added “config.json” to “resources.qrc” the problem solved 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded