[Android-development] What's the recommended way to update Android Templates

BogDan bog_dan_ro at yahoo.com
Tue Nov 6 10:41:40 CET 2018


 
Hi,
There is no magic way to update them!
Usually I'm using "Create Template" button from QtCreator.QtCreator will ask you which files you want to override, here you can pick only gradle files.Again, personally I'm overriding all of them and then I'm using git to see what's missing from the new files.
Cheers,BogDan.    On Tuesday, November 6, 2018, 11:37:29 AM GMT+2, Stanislas RENAN <qt-project at renan.org> wrote:  
 
 Hi,

It's a very good question. I'm also interested in a best pratice step by step description.
And it's not only about gradle and Manifest files, as QtActivity.java is also in the Qt directory, and that can lead to wrong things if you rely on the IDE to be smart for you.
I've been trying to look for a very partial answer about the latter, to configure correctly Android Studio : http://www.idees2l.renan.org/en/2018/05/04/organizing-your-java-files-in-a-c-qt-project/

I handle the template update problem manually the lazy way, with the "fix it when it breaks" method. Basically, it is not handled. It is nonetheless sufficient for now.

Best regards,
Stanislas RENAN 



Le 5 novembre 2018 21:13:11 GMT+01:00, ekke <ekke at ekkes-corner.org> a écrit :
Creating Android Templatesit seems, they depend from QtC Version:

per ex QtC 4.7.2 uses Gradle 3.2.0,

QtC 4.7.1 uses Gradle 2.2.3 and some older projects I have are using
Gradle 1.1.0

I created Templates in Qt 5.12 with Creator 4.7.2 and they are also
working in Qt.5.11.2 and Creator 4.7.1
so it seems you can use the newest one on older Qt/QtC versions ?

But HowTo deal with Template-Updates ?

always using the newest one ?

and what about the Android Manifest ? Create Templates and overwrite (to
see what Qt has changed) and re-enter your changes ?

didn’t found any documentation on this


thx for any hints

ekkeAndroid-development mailing list
Android-development at qt-project.org
http://lists.qt-project.org/mailman/listinfo/android-development


-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté._______________________________________________
Android-development mailing list
Android-development at qt-project.org
http://lists.qt-project.org/mailman/listinfo/android-development
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/android-development/attachments/20181106/1c6fc62c/attachment.html>


More information about the Android-development mailing list