Android: Add extension to the package name in SdkManager

- Add "Extension 4" if the name contain "-ext4"
- Fix issue with two Tiramisu packages, now one of them
conatin "Extension 4" in the end.

Change-Id: Ib84807e9401acdef53c3dc1195dc3dc6ef34a57d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Artem Sokolovskii
2023-01-17 16:03:23 +01:00
parent 7c6a00b4e7
commit 020320ab78
6 changed files with 27 additions and 2 deletions

View File

@@ -149,7 +149,9 @@ QVariant AndroidSdkModel::data(const QModelIndex &index, int role) const
const SdkPlatform *platform = m_sdkPlatforms.at(index.row() - 1);
if (role == Qt::DisplayRole) {
if (index.column() == packageNameColumn) {
QString androidName = AndroidManager::androidNameForApiLevel(platform->apiLevel());
const QString androidName = AndroidManager::androidNameForApiLevel(
platform->apiLevel())
+ platform->extension();
if (androidName.startsWith("Android"))
return androidName;
else