Commit Graph

1898 Commits

Author SHA1 Message Date
Daniel Teske
115b91a746 Android: Autodetect a value for OpenJDK path
First look into the current PATH, secondly into the registry.

Change-Id: I3b1d1ebccb1a85c03979ac3d48740c3de5a6df40
Reviewed-by: BogDan Vatra <bogdan@kde.org>
Reviewed-by: Ray Donnelly <mingw.android@gmail.com>
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-06-14 13:13:25 +02:00
Daniel Teske
cb6eaa3c24 Android: Set JAVA_HOME in environment and use that environment
Change-Id: Ia0f3abad74b7ac423fab621ca22e0f698747c477
Reviewed-by: BogDan Vatra <bogdan@kde.org>
Reviewed-by: Ray Donnelly <mingw.android@gmail.com>
2013-06-14 13:13:12 +02:00
Robert Loehning
5ee8650eb4 Fixed missing white space
Change-Id: I6d584fc24bbce4ff9eec2dd8f7d23b0124b1a1f3
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
2013-06-12 18:55:37 +02:00
Robert Loehning
5bb09d23db String fix
Change-Id: I7052e3d5125e79c50a94e0ef602aa528f949851e
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
2013-06-12 17:35:48 +02:00
Daniel Teske
8127ebe244 Android: Show complete output of ant run
Change-Id: I4964e5bf22a715375a7fa080604d16692c956fc2
Reviewed-by: BogDan Vatra <bogdan@kde.org>
2013-06-11 16:13:14 +02:00
Daniel Teske
883d6537c2 Android: Rename OpenJDK setting to JDK.
Change-Id: Ifc1ea9ccea831270a83a114eb46ade2c68995bc3
Reviewed-by: BogDan Vatra <bogdan@kde.org>
2013-06-11 15:36:08 +02:00
Daniel Teske
8011d0c32b Android: Use '/' in INSTALL_ROOT if sh.exe is in PATH
Task-number: QTBUG-31147

Change-Id: Ifdeef2fa96668fdb482fd613eb8766c1ff5e3afd
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
2013-06-10 11:43:44 +02:00
Eike Ziller
4acece6d9e Merge remote-tracking branch 'origin/2.7' into 2.8
Conflicts:
	src/plugins/qmljstools/qmlconsoleitemdelegate.cpp
	src/plugins/qmlprofiler/qmlprofilerengine.cpp

Change-Id: I95c2c4116e28683fafcc0a557a7913d67361dcd4
2013-06-05 11:14:48 +02:00
Yoann Lopes
bab3b010af Android: fixed updating Java files on Windows.
When looking for lines in Java files that are not supported by the
selected API level, it didn't take into account that line endings are
"\r\n" on Windows. toInt() was failing, trying to convert for example
"10\r" to an integer.

Change-Id: I35478abd40d5ce4621d2320b3a5f5a3514cf9591
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-06-04 13:11:45 +02:00
Tobias Hunger
d97a7f4067 Android: Save MakeExtraSearchDirectory in settings
This will keep the setting from vanishing after the first time
creator is run.

Change-Id: Ie3f99cfbe37fc5c242e5388a87edf3f0bdc08a30
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-06-04 12:01:45 +02:00
Eike Ziller
10d7d61e26 Merge remote-tracking branch 'origin/2.7' into 2.8 2013-05-30 13:48:02 +02:00
Daniel Teske
d7f96e3201 Android Deploy Options: Clean up ui
Task-number: QTCREATORBUG-9208

Change-Id: I1b1864908a24af3cd7c576831656267a6390b583
Reviewed-by: BogDan Vatra <bogdan@kde.org>
2013-05-29 15:15:56 +02:00
BogDan Vatra
0f51591ce5 Fix getBundleInformation call.
getBundleInformation must be called synchronously

Change-Id: Iebe00295e1ef0679fdd6f9b849672d72f5ea998a
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-05-29 15:15:32 +02:00
Daniel Teske
60cd9882f0 Android Permission update
Task-number: QTCREATORBUG-9277

Change-Id: I2c52b4ad66e2c04f427c2bfdc0bde4df55cefd96
Reviewed-by: BogDan Vatra <bogdan@kde.org>
2013-05-28 15:26:05 +02:00
Eike Ziller
5b648d8b6e Revert "Android: Disable QML Debugging"
Was temporarily disabled for 2.7 and not supposed to be merged into 2.8
This reverts commit d3e69915da.

Conflicts:
	src/plugins/android/androiddebugsupport.cpp

Change-Id: I669d587535545846b5fcbdadd0d066f1758a3644
2013-05-27 17:19:21 +02:00
Eike Ziller
45f8e241ba Merge remote-tracking branch 'origin/2.7' into 2.8
Conflicts:
	src/plugins/android/androiddebugsupport.cpp
	src/plugins/qtsupport/qtsupport.qbs

Change-Id: I0953ca21a9db05084a79b8a6019189ea982df0b1
2013-05-27 17:17:40 +02:00
hjk
daad8e238e Editors: Provide a base implementation for duplicate{,Supported}
Helps avoiding trivial re-implementations.

Change-Id: Iaa2e6b92503a2b9553432568c2047c28899c7ea6
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2013-05-27 14:27:16 +02:00
Aurindam Jana
d3e69915da Android: Disable QML Debugging
Quick fix. Do not merge into 2.8 or master

Task-number: QTCREATORBUG-9342

Change-Id: Ic63d5d858321e381caf9ede7615075e4923a7b35
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
2013-05-27 10:20:24 +02:00
Daniel Teske
8b61a5da2e Android: Fix prebundled libraries use case
Task-number: QTCREATORBUG-9319
Change-Id: Iadf4baee10d51c9cb83ef1fffd2bffd8dc3eae56
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Reviewed-by: BogDan Vatra <bogdan@kde.org>
2013-05-24 15:11:22 +02:00
Daniel Teske
86110d7038 Android: Clen libs on device: Fix memory leak
One QProcess per run of clean libs

Change-Id: Idcf6155e71ca5cec7cb4be1509191ba49c69cefd
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
2013-05-23 16:26:54 +02:00
Eike Ziller
ef5d3796d5 Merge remote-tracking branch 'origin/2.7' into 2.8 2013-05-23 07:25:34 +02:00
Christian Strømme
35b96f2fc1 Android: Detect conditional dependencies.
To solve the problem with libQt5MultimediaQuick_p we need a way to detect
if an application is using both QtMultimedia and QtQuick.
This change adds logic to parse the -dependencies.xml file and look for
lib elements that have the extra attribute "extends". Libs with the
extends attribute will only be added to the list of dependencies, if the
library it extends is available.

Task-number: QTCREATORBUG-9300
Change-Id: I6f3e0a6d9158a91824e1e113f6aab7ec1112dd56
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-05-22 18:24:40 +02:00
Tobias Hunger
24ee641543 Fix dependency information according to output of dependency checker
Change-Id: Ic1259f04f4120b6e495ebb3672f7f360c71cba7f
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2013-05-22 16:41:39 +02:00
Daniel Teske
6622aa91ce AndroidManifestEditor: Use indent 4 for formatting source
Change-Id: Iece75754acafda7c3bcaa8fe043a2aae98ef7e32
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
2013-05-22 15:08:16 +02:00
Daniel Teske
942e415866 AndroidManifestEditor: Disable text actions if the editor is hidden
Change-Id: Iac60829f9db5d425c70f7ff7a1124ec33f2d5173
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
2013-05-22 15:08:11 +02:00
Daniel Teske
c58c33764e AndroidManifestEditor: Readd some tweaks from the .ui file
Fx the version code spinbox being too big and readd some tooltips.k

Change-Id: I6e2e10d64d9616809f3b97c8c9a5d1e668c025ea
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
2013-05-22 15:08:03 +02:00
Daniel Teske
bf1afce579 Andoid Manifest Editor: Adjust look to be more in line with a editor
Use the same styling as e.g. the submit editor.

Change-Id: Idb396b6971f75d9f4a876edf992c917ee81820df
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
2013-05-22 15:07:58 +02:00
Christian Kandeler
d10fe8d2b6 Android: Fix qbs build.
Change-Id: I8183168e19a2ecf55f53f4699e02a86752dd076f
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-05-21 12:22:28 +02:00
Daniel Teske
270e0e8d84 Android: Use mingw32-make if ma-make is not found
Task-number: QTCREATORBUG-9297

Change-Id: I06345bd53fe5672ce7606745e6b19f89379a18db
Reviewed-by: Ray Donnelly <mingw.android@gmail.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
2013-05-21 11:41:05 +02:00
Daniel Teske
889740a90f Android: Extra search directory to find make on windows
The sdk should set that extra directory, via the sdktool.

E. g. something like
sdktool addKeys android MakeExtraSearchDirectory QString:%DIRECTORY%

where %DIRECTORY% is the bin directory of the bundled mingw.
That is Tools\MinGW\bin for the qt sdk.

Also see:
Task-number: QTCREATORBUG-9297

Change-Id: I487c67b7fb704dd00cf5c6f4f647c8c4fbe8cd3d
Reviewed-by: Ray Donnelly <mingw.android@gmail.com>
Reviewed-by: Iikka Eklund <iikka.eklund@digia.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
2013-05-21 11:40:36 +02:00
Orgad Shaneh
b1d7d806c0 Fix some compiler warnings
* Unused variables in release build
* Comparison of bool to int

Change-Id: I1ac9b1051b26ae0655d4ff6b92d216926a4785da
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-05-17 08:13:18 +02:00
Eskil Abrahamsen Blomfeldt
688740cf80 Remove managed subdirectories in assets when deploying to Android
We need to make sure there aren't left-over subdirectories in the
assets/ folder when you have used the bundling mechanism for
deployment.

To make this easier, we fix a bug where a missing slash
would cause multiple libraryPrefix() directories with different
suffixes under assets/ instead of just a single one containing
everything managed by creator. When the slash is added we can
simply remove the whole "assets/" + libraryPrefix() directory
recursively.

Task-number: QTCREATORBUG-9294
Change-Id: Ie24b55680d247df458bc70bbc15abdce51605627
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-05-16 14:54:38 +02:00
Eskil Abrahamsen Blomfeldt
342d65f7a2 Make it possible for a module to specify bundling single files
To make sure libQt5QuickParticles.so is loaded for Qt Quick
applications, we need to be able to specify bundling
specific files, not just subdirectories.

Task-number: QTCREATORBUG-9299
Change-Id: I743ee5ea714355ba6398378f4f54b6ede64d4c85
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-05-16 14:54:28 +02:00
Friedemann Kleint
b2c80665e8 Android compile fixes for Qt 4.
Change-Id: I4620a0b8ff29dbb8a0d93f2fc90cc7984f49ed92
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-05-15 16:27:48 +02:00
Daniel Teske
60b1aaeae4 Android: Implement a "editor" for android manifest files
Change-Id: I18c00ab452db21e5aa1ae3ad2eff465cfeff54b6
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
2013-05-15 16:16:55 +02:00
Daniel Teske
c5c2407297 Android: Keep the permissions sorted
The order does not matter but this makes it easier for the user to find
his permission.

Change-Id: Iecb1082c3a67e002df6b0d384a3e02d45673d717
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-05-15 16:15:15 +02:00
Oswald Buddenhagen
6fb94a7b10 Merge branch '2.7'
Conflicts:
	doc/src/qtquick/qtquick-components.qdoc
	doc/src/qtquick/qtquick-designer.qdoc
	qtcreator.pri
	qtcreator.qbs
	src/plugins/cppeditor/cppinsertdecldef.cpp
	src/plugins/qnx/qnxruncontrolfactory.cpp

Change-Id: I0a37a07c42719bc0d9ef5b3ac4641d01a63c0d88
2013-05-15 10:21:47 +02:00
Eskil Abrahamsen Blomfeldt
5624232c61 Bundle libgnustl_shared.so directly from Android NDK
We need the logic from 78aa64e06b
in the bundle deployment as well. This will ignore
libgnustl_shared.so if the Qt installation contains it (for
compatibility mostly) and it will copy it from the NDK
into the bundle.

Task-number: QTCREATORBUG-9291
Change-Id: I5ab59602a3dc64d728a58dd1ee70153c09deac72
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-05-13 13:45:05 +02:00
Tobias Hunger
1ca9bab242 Kit: Only make SDK-set KitInformation read-only
Leave the rest user-editable.

Task-number: QTCREATORBUG-9030
Change-Id: I77c9ff980dd9a497bff53ee04dae7e771e4e7e82
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-05-07 16:39:29 +02:00
Aurindam Jana
694f465afb AndroidRunSupport: Connect Signals to correct slots
Change-Id: Ib14ace6b66b78c5f74984a929a6a02c292e35127
Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
2013-05-07 10:00:38 +02:00
Aurindam Jana
e9544344d5 AndroidAnalyzeSupport: Add punctutation to message
Change-Id: I99d8748cafb7d7537dc3c8f0caa0a2965d1df6f6
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
2013-05-07 09:24:23 +02:00
Aurindam Jana
e88ec44e71 QmlProfiler: Remove RemoteLinux dependency
Change-Id: I3ff14691b4f9c80793a491b61444f8ceeb05a4fb
Reviewed-by: Christiaan Janssen <christiaan.janssen@digia.com>
2013-05-07 09:01:29 +02:00
Joerg Bornemann
7a2d93dea2 fix qbs build
Change-Id: I4b6236d2ddfa8e3baad463fcdf2ee66fe16f63e7
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
2013-05-06 17:15:39 +02:00
Aurindam Jana
7ac0cb6247 AndroidRunSupport: Fix signals and slots
Change-Id: I59bfbd4669141aa1f215d8f6c6c498a520aed4fb
Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
2013-05-06 14:18:12 +02:00
Aurindam Jana
24af63ec4b Android: Add QML profiling
Change-Id: Ie06c0b49707f8ec549f180f41c565fd223240186
Reviewed-by: Christiaan Janssen <christiaan.janssen@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-05-06 13:27:50 +02:00
Daniel Teske
c842d83f91 Android: Check target architecture before deploying to device
Change-Id: I2d05f98cb6c390fb84186929fdf4152cc07d8965
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
2013-05-06 11:11:55 +02:00
Eskil Abrahamsen Blomfeldt
91d48fe727 Enable mechanism to bundle Qt in APK
If the Qt version built against is Qt 5, and the deployment
method is "Use libs on device" + "Use local Qt libs", Creator
will copy the required files into the app bundle and set
the necessary meta-data to make the Java code in the app
actually load them from the app bundle.

We also make this deployment method the default on Qt 5.

Change-Id: Ib7a33e7d1fbd22f76c85c31e1dbc68912a38eda8
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2013-05-03 13:13:03 +02:00
Eike Ziller
a2171c2d82 Merge remote-tracking branch 'origin/2.7'
Conflicts:
	share/qtcreator/qml/qmlpuppet/qml2puppet/instances/objectnodeinstance.cpp

Change-Id: I7f319154d5865c47ccfd5f525f0fd7983733dd0e
2013-05-03 09:49:28 +02:00
Daniel Teske
111392f6c5 Android: Make cleanPackageName automatically correct more errors
Disallow keywords, and parts that start with a digit.

Task-number: QTCREATORBUG-9200

Change-Id: Ia8b42c3015393f3e76126e311eebb728425726b7
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
2013-05-02 12:19:18 +02:00
Daniel Teske
4e37f1cd7f Android: Speed up project opening by caching the sdk version
The slowness is due to AndroidToolChain::addToEnvironment() being called
a lot on project opening. Thus we need to avoid any file opening or
process on loading.

This patch does 2 things:
a) It removes the call to sdkTargets() which is unneeded. That actually
checks which avds are available.

b) It caches the target sdk inside a named target setting. That means,
we assume that the file does not change behind our backs.

Task-number: QTCREATORBUG-9164

Change-Id: I9287934a0624db0b3e8318b8cf76e605418850c2
Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2013-04-30 12:55:37 +02:00