diff options
author | BogDan Vatra <[email protected]> | 2014-06-25 15:42:11 +0200 |
---|---|---|
committer | Daniel Teske <[email protected]> | 2014-07-21 12:41:28 +0200 |
commit | 64e5a543a845d8d800504206a42c58d4e28ac89c (patch) | |
tree | 205faff83b9fb890c65309fe4c7cc7878826f515 /src/plugins/android/androidplugin.cpp | |
parent | 4657ac7452662d19823412e82d599bf4079a3c4d (diff) |
Move qmake specific part to qmake plugin, generalize android support
- Split up androiddeployqt into two steps: One building the apk,
and one deploying it to the device.
- The build apk step base class AndroidBuildApkStep is ihneritaged by
the qmake specific class QmakeAndroidBuildApkStep.
- The deployment step is still called androiddeployqt
- Move all qmake specific code to the qmakeprojectmanager plguin
- Flip the depencency between the android and qmake plugin, now
the qmake plugin depends on the android plugin, implementing
a interface the android plugin provides.
- Note: This removes the debug deployment for now.
Change-Id: I1c386640159ed14b637668abde8eb3b9009ab803
Reviewed-by: BogDan Vatra <[email protected]>
Diffstat (limited to 'src/plugins/android/androidplugin.cpp')
-rw-r--r-- | src/plugins/android/androidplugin.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/plugins/android/androidplugin.cpp b/src/plugins/android/androidplugin.cpp index cf90b061349..ff0592fd315 100644 --- a/src/plugins/android/androidplugin.cpp +++ b/src/plugins/android/androidplugin.cpp @@ -35,7 +35,6 @@ #include "androiddevice.h" #include "androiddevicefactory.h" #include "androidmanager.h" -#include "androidpackageinstallationfactory.h" #include "androidrunfactories.h" #include "androidsettingspage.h" #include "androidtoolchain.h" @@ -47,8 +46,6 @@ #include "javaeditorfactory.h" #include "javacompletionassistprovider.h" #include "javafilewizard.h" -#include "qmakeandroidsupport.h" -#include "qmakeandroidrunfactories.h" #ifdef HAVE_QBS # include "androidqbspropertyprovider.h" #endif @@ -72,11 +69,9 @@ bool AndroidPlugin::initialize(const QStringList &arguments, QString *errorMessa Q_UNUSED(arguments); Q_UNUSED(errorMessage); - new Internal::AndroidConfigurations(this); + new AndroidConfigurations(this); addAutoReleasedObject(new Internal::AndroidRunControlFactory); - addAutoReleasedObject(new Internal::QmakeAndroidRunConfigurationFactory); - addAutoReleasedObject(new Internal::AndroidPackageInstallationFactory); addAutoReleasedObject(new Internal::AndroidDeployQtStepFactory); addAutoReleasedObject(new Internal::AndroidSettingsPage); addAutoReleasedObject(new Internal::AndroidQtVersionFactory); @@ -87,7 +82,6 @@ bool AndroidPlugin::initialize(const QStringList &arguments, QString *errorMessa addAutoReleasedObject(new Internal::JavaEditorFactory); addAutoReleasedObject(new Internal::JavaCompletionAssistProvider); addAutoReleasedObject(new Internal::JavaFileWizard); - addAutoReleasedObject(new Internal::QmakeAndroidSupport); ProjectExplorer::KitManager::registerKitInformation(new Internal::AndroidGdbServerKitInformation); // AndroidManifest.xml editor @@ -117,16 +111,16 @@ bool AndroidPlugin::initialize(const QStringList &arguments, QString *errorMessa void AndroidPlugin::kitsRestored() { - Internal::AndroidConfigurations::updateAutomaticKitList(); + AndroidConfigurations::updateAutomaticKitList(); connect(QtSupport::QtVersionManager::instance(), SIGNAL(qtVersionsChanged(QList<int>,QList<int>,QList<int>)), - Internal::AndroidConfigurations::instance(), SLOT(updateAutomaticKitList())); + AndroidConfigurations::instance(), SLOT(updateAutomaticKitList())); disconnect(ProjectExplorer::KitManager::instance(), SIGNAL(kitsChanged()), this, SLOT(kitsRestored())); } void AndroidPlugin::updateDevice() { - Internal::AndroidConfigurations::updateAndroidDevice(); + AndroidConfigurations::updateAndroidDevice(); } } // namespace Android |