Support for extra libraries in APK in Android QT Creator -- Merge request

Robert Schuster r.schuster at tarent.de
Sat Jun 18 08:43:48 CEST 2011


Hi,
if additional libraries are to bundled with the main APK I'd vote for
calling them likes this: bundled libraries

'Extra' just sounds so super generic that it could mean anything. I'd
like to point out that at the QCS people asked about out-of-the-box
support for certain KDE libraries. Although we do not intend to work on
it now, it should be noted that for Ministro it does not matter what
kind of libraries it loads. So if we consider the Qt stuff the core then
everything else (like KDE libs) is 'extra'. As such using that term for
custom bundled libraries does not seem wise to me.

Regards,
Robert

Am 16.06.2011 09:03, schrieb Frameworks:
> Dear Bogdan,
> 
> I just send a merge request for the changes in creator that add support 
> for extra libraries in the APK. Here are the details:
> 
> Add in support for extra libraries.
> 
> This merge request mainly focuses on the modification to Android QT 
> Creator to include support for extra deploy libraries in the APK. As 
> described in the modified UI, “Extra libraries are other libraries that 
> are required by this application but not part of this project.”
> 
> The changes in Creator does not automatically affect current Necessitas 
> projects. If the user want to include an extra library Creator will ask 
> to upgrade it project to support it. The process of upgrading will:
> 
> 1. Check if its possible. Users will be able to upgrade if their version 
> of Android LightHouse supports extra libraries i.e., if the version of 
> libs.xml in LightHouse has the array name extra_libs.
> 2. Upgrade the project's ibs.xml to add the array name extra_libs.
> 3. Upgrade the projects manifest to include the resource of extra_libs.
> 4. Copy the class files from LightHouse to the project (Industrius and 
> mobile). This because the version in LightHouse has the modifications to 
> load the extra libraries. All files are copied to be sure that previous 
> class files in the project does not conflict with current class files.
> 5. Leave a backup of libs.xml, class files and the manifest in the 
> project directory. Those files will include “._old” in their extension
> 
> This set of changes also fixes two bugs in Creator:
> 
> 1- Checked bundled libraries get unchecked just before the APK is build. 
> (Line 133 in androidpackage creationstep.cpp)
> 2- Bundled libraries have the format libMyLib.so when it should be the 
> undecorated version of them e.g., Mylib (Line 904 in qt4androidtarget.cpp)
> 
> This merge request also comes with a merge of few changes in 
> qlands-AndroidLighthouse to support extra libraries in the apk.
> 
> 
> Regards,
> Carlos Quiros
> 
> PD
> I am also working on assets support in Creator and the necessary changes 
> in QT using JNI. I could send you something very soon if you fancy.
> _______________________________________________
> Necessitas-devel mailing list
> Necessitas-devel at kde.org
> https://mail.kde.org/mailman/listinfo/necessitas-devel


-- 
tarent solutions GmbH
Thiemannstr. 36 a, D-12059 Berlin • http://www.tarent.de/
Tel: +49 30 5682943-30 • Fax: fax +49 228 52675-25

Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 52675-0 • Fax: +49 228 52675-25
HRB AG Bonn 5168 • USt-ID (VAT): DE122264941
Geschäftsführer: Boris Esser, Elmar Geese


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 729 bytes
Desc: OpenPGP digital signature
Url : http://mail.kde.org/pipermail/necessitas-devel/attachments/20110618/20e15caa/attachment.sig 


More information about the Necessitas-devel mailing list