forked from qt-creator/qt-creator
Android: allow non-integer platform sdk versions
Some of the more recent SDK platform versions don't follow the form android-xx (x being integer) and can contain non-integer characters or other sections such as android-33-ext4, which were not showing on the list of SDK platform versions in the project's settings. Task-number: QTBUG-112465 Change-Id: I3de14c4f1b15a64dcced48c6e8817efbda6677bc Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -432,8 +432,12 @@ QStringList AndroidConfig::apiLevelNamesFor(const SdkPlatformList &platforms)
|
||||
|
||||
QString AndroidConfig::apiLevelNameFor(const SdkPlatform *platform)
|
||||
{
|
||||
return platform && platform->apiLevel() > 0 ?
|
||||
QString("android-%1").arg(platform->apiLevel()) : "";
|
||||
if (platform && platform->apiLevel() > 0) {
|
||||
QString sdkStylePath = platform->sdkStylePath();
|
||||
return sdkStylePath.remove("platforms;");
|
||||
}
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
FilePath AndroidConfig::adbToolPath() const
|
||||
|
Reference in New Issue
Block a user