forked from qt-creator/qt-creator
Android: Add option to set the build-tools version in project settings
Allow QC to directly set the build-tools version for the project. Such setting could be in qmake/cmake, however, ideally this value should be the latest available version, and doesn't need to be written to the project file. Thus, it is convenient to have this selectable from QC UI for convience, while developing. Apart from the first reason for avoiding writing this into the project file, there is QC limitation which doesn't allow writing such value to CMake project file. Task-number: QTBUG-97002 Change-Id: I5d54d36f7900f8445359188d6ae7a8ba14bd3a05 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -376,6 +376,20 @@ SdkPlatformList AndroidSdkManager::filteredSdkPlatforms(int minApiLevel,
|
||||
return result;
|
||||
}
|
||||
|
||||
BuildToolsList AndroidSdkManager::filteredBuildTools(int minApiLevel,
|
||||
AndroidSdkPackage::PackageState state)
|
||||
{
|
||||
const AndroidSdkPackageList list = m_d->filteredPackages(state,
|
||||
AndroidSdkPackage::BuildToolsPackage);
|
||||
BuildToolsList result;
|
||||
for (AndroidSdkPackage *p : list) {
|
||||
auto platform = dynamic_cast<BuildTools *>(p);
|
||||
if (platform && platform->revision().majorVersion() >= minApiLevel)
|
||||
result << platform;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
void AndroidSdkManager::reloadPackages(bool forceReload)
|
||||
{
|
||||
m_d->refreshSdkPackages(forceReload);
|
||||
|
||||
Reference in New Issue
Block a user