Discussion:
[Qt-creator] Multiple Android APK support?
Nikos Chantziaras
2018-04-12 21:24:28 UTC
Permalink
I want to upload two APKs to the Google Play Store. One for ARM, one for
x86. Google's instructions:

https://developer.android.com/studio/build/configure-apk-splits.html

are for Android Studio. Are there instructions for Qt Creator? Has
anyone done this yet?
Ivan Donchevskii
2018-04-13 05:48:28 UTC
Permalink
Good question!


I also did not find a way to do that. I assume that it's not possible currently because several kits are involved at the same time to support such feature.

Prove me wrong or let's think how to solve that.


As a temporary solution you can build only arm - it is still supported by x86 devices through some android emulation.


Regards,

Ivan

________________________________
From: Qt-creator <qt-creator-bounces+ivan.donchevskii=***@qt-project.org> on behalf of Nikos Chantziaras <***@gmail.com>
Sent: Thursday, April 12, 2018 11:24:28 PM
To: qt-***@qt-project.org
Subject: [Qt-creator] Multiple Android APK support?

I want to upload two APKs to the Google Play Store. One for ARM, one for
x86. Google's instructions:

https://developer.android.com/studio/build/configure-apk-splits.html

are for Android Studio. Are there instructions for Qt Creator? Has
anyone done this yet?
Bogdan Vatra
2018-04-13 05:52:49 UTC
Permalink
Hi,

It's quite straight forward:
- install Qt for Android for arm & x86
- add Android arm & x86 kits to your project
- select arm kit and build first apk for arm
- bump version (yes, this step is a must !)
- select x86 kit and build the second apk for x86
- upload the apk to Google Play.

Cheers,
BogDan.

În ziua de vineri, 13 aprilie 2018, la 00:24:28 EEST, Nikos Chantziaras a
Post by Nikos Chantziaras
I want to upload two APKs to the Google Play Store. One for ARM, one for
https://developer.android.com/studio/build/configure-apk-splits.html
are for Android Studio. Are there instructions for Qt Creator? Has
anyone done this yet?
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
Ivan Donchevskii
2018-04-13 06:06:16 UTC
Permalink
As far as I know store expects both in the same apk.
So as I understand you suggest having two different versions in store for different platforms?
That may work. Thanks for one more workaround :)

Regards,
Ivan
________________________________
From: Qt-creator <qt-creator-bounces+ivan.donchevskii=***@qt-project.org> on behalf of Bogdan Vatra <***@kdab.com>
Sent: Friday, April 13, 2018 7:52:49 AM
To: qt-***@qt-project.org
Cc: Nikos Chantziaras
Subject: Re: [Qt-creator] Multiple Android APK support?

Hi,

It's quite straight forward:
- install Qt for Android for arm & x86
- add Android arm & x86 kits to your project
- select arm kit and build first apk for arm
- bump version (yes, this step is a must !)
- select x86 kit and build the second apk for x86
- upload the apk to Google Play.

Cheers,
BogDan.

În ziua de vineri, 13 aprilie 2018, la 00:24:28 EEST, Nikos Chantziaras a
Post by Nikos Chantziaras
I want to upload two APKs to the Google Play Store. One for ARM, one for
https://developer.android.com/studio/build/configure-apk-splits.html
are for Android Studio. Are there instructions for Qt Creator? Has
anyone done this yet?
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
Nikos Chantziaras
2018-04-13 12:04:40 UTC
Permalink
When uploading the x86 build, the site replaces the previous build
unless you select "Retain" for it. Once you do that, it does seem to
work and both APKs seem to be active. You get a warning though about
"Differentiating APK details", but it's not a hard-error.

But it seems the site considers the highest version number as the "real"
version. Pre-launch data for example isn't available for the ARM build,
unless you reverse the version numbers, in which case you get data for
the ARM build, but not the x86 one.

So it seems to work, but seems to be kinda glitchy. I assume the
"correct" way would be to add architecture information to the manifest
and gradle files, but Creator doesn't seem to offer a way to generate these.
Post by Bogdan Vatra
- install Qt for Android for arm & x86
- add Android arm & x86 kits to your project
- select arm kit and build first apk for arm
- bump version (yes, this step is a must !)
- select x86 kit and build the second apk for x86
- upload the apk to Google Play.
În ziua de vineri, 13 aprilie 2018, la 00:24:28 EEST, Nikos Chantziaras a
Post by Nikos Chantziaras
I want to upload two APKs to the Google Play Store. One for ARM, one for
https://developer.android.com/studio/build/configure-apk-splits.html
are for Android Studio. Are there instructions for Qt Creator? Has
anyone done this yet?
Nikos Chantziaras
2018-04-15 04:53:55 UTC
Permalink
Post by Nikos Chantziaras
But it seems the site considers the highest version number as the "real"
version. Pre-launch data for example isn't available for the ARM build,
unless you reverse the version numbers, in which case you get data for
the ARM build, but not the x86 one.
I take that back. It works correctly.

So if anyone else wants to do this, just make sure to click "retain" for
your ARM APK when you upload the x86 APK, and also make sure the x86 APK
has a higher version code, otherwise x86 devices will still receive the
ARM version and the x86 APK will not be used.

Loading...