[Interest] [Qt Android] Any recommended way to modify the package name for different build configuration?

Ben Lau xbenlau at gmail.com
Sat Jul 5 18:54:08 CEST 2014


On 30 June 2014 01:07, Tomasz Siekierda <sierdzio at gmail.com> wrote:

> On 29 June 2014 08:14, Ben Lau <xbenlau at gmail.com> wrote:
> > Hi,
> >
> > I am using TestFairy to deliver beta/testing version of our application
> to
> > others. It is great if we don't have development version and those
> released
> > via TestFairy on a same device. Since TestFairy will re-sign the package
> ,
> > if the APK's package name is same, it will need to remove the previous
> > development version then install the TestFairy version , or vice-versa.
> That
> > will lose saved data.
> >
> > It is better to keep both of the version on a phone. Therefore , I am
> > looking for a method which can change the package name /
> AndroidManifest.xml
> > by passing an option to qmake so that it could be handled by build
> server.
> >
> > Any recommended method?
>
> In your .pro file:
>
> contains(DEFINES, other) {
>   OTHER_FILES += android/AndroidManifestOther.xml
>   TARGET = myAppNameOther
> } else {
>   OTHER_FILES += android/AndroidManifestFairy.xml
>   TARGET = myAppNameFairy
> }
>
> And then run qmake like this:
> qmake DEFINES+=other
>

Hi Tomasz,

Thank for your reply. However, it is not really working. The
'androiddeployqt' still copy the original android/AndroidManifest.xml to
build directory. If I remove the android/AndroidManifest.xml , it will
generate a new manifest file automatically.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140706/10c846e7/attachment.html>


More information about the Interest mailing list