aboutsummaryrefslogtreecommitdiffstats
path: root/anttasks/src/com/android/ant/MultiApkExportTask.java
Commit message (Collapse)AuthorAgeFilesLines
* Remove obsolete code.Xavier Ducrohet2011-08-171-385/+0
| | | | Change-Id: I2881d7b5f01229b9da81c6134fc5dfdfb4aacff8
* New library project mechanism.Xavier Ducrohet2011-08-171-7/+11
| | | | | | | | | | | | | | | | Libraries now generate a jar file that is used by the projects referencing them, instead of having the main projects compile the library source code themselves. This means we can remove the link mechanism that created linked folder in ADT and instead use a container that is lazily initalized to be all the jar files of the libraries. Also merged all 3 Ant build files (main_rules, lib_rules, test_rules) into a single build.xml that can build any kind of projects. Lot's of improvement in there too. Much cleaner. Change-Id: I98307e25cd76722e8595938528e6ef57a7e226ad
* Use proguard for release builds through Ant.Xavier Ducrohet2010-09-241-5/+7
| | | | | | | | | | | | | | | This is only activated if default.properties contains a property "proguard.config" with the name of a proguard config file. Some clean-up in the Ant tasks and in the name of the properties used by the rules and the custom tasks to make them clearer. Added a new test app with a project using a jar file as well as a library using a jar file. Change-Id: Ia8f4d873025993d454c0a484e61d47ae679ea79c
* ADT: Multi-apk export action.Xavier Ducrohet2010-06-151-2/+1
| | | | | | | | | | | This is a first step with no UI. Still needed: - handling signing - add control to how ApkBuilderHelper handles errors to prevent output to the console during export. Change-Id: Id44d708c2b0f5bb52508c33a241bbe921b4297e1
* Export project creation.Xavier Ducrohet2010-06-081-10/+11
| | | | Change-Id: I22b5a1c7225425b387e1fd5b6769b5e9249b7c88
* Rework the multi-apk log file(s).Xavier Ducrohet2010-06-041-163/+193
| | | | | | | | | | | | | Move away from a single log file used for: - tell the dev what file was created with that properties - used to increment minor versionCode for specific apks - used to detect config change from what export to another. There are now three files for each case, with the last two using a never changing filename. Only a new build log file is created at each export. Change-Id: Ia9b464e6ffefe24463a537ee48d0a20a7a004af7
* Add support for locale filters in multi-apk export.Xavier Ducrohet2010-06-021-1/+2
| | | | Change-Id: Ia3faf7a6818de0e579cf491b139a41f4d379935e
* Add support for soft properties in multi-apk export.Xavier Ducrohet2010-06-011-99/+157
| | | | | | First property is split by density. Change-Id: If68bc520ba4014bbd4b144e71d54bc1161a56e2d
* Implement mechanics for supports-screens in the multi-apk export.Xavier Ducrohet2010-06-011-1/+1
| | | | | | | | - detect overlap (apk1 is small, large; apk2 is normal) - detect non-strictly different supports-screens - compareTo orders based on support for higher size. Change-Id: I76251e10c83f1508c9a5b83b638a47b1c0922693
* New log format for multi-apk export.Xavier Ducrohet2010-05-281-16/+2
| | | | | | | Also added support for supports-screens in the log, and fixed supports-screens parsing. Change-Id: I702fb511eb4da0094917d7c0d9fe792f582adeb2
* Add Manifest checks for multi-apk export.Xavier Ducrohet2010-05-271-1/+4
| | | | Change-Id: Ifd0bb892582888b7b6ef6ceb634871c1fb24d6e5
* Refactored most of the multi-apk export out of the ant task into sdklib.Xavier Ducrohet2010-05-271-480/+145
| | | | | | | | This common code will be used by ADT when processing multi-apk export. I also had to improve the API for IAbstractFile/Folder. Change-Id: Ied76f0a9f068223ceaba36124e841f804febfaf8
* Move ApkData into sdklib.Xavier Ducrohet2010-05-261-190/+26
| | | | | | | This is the first step of refactoring common code from MultiApkExportTask into sdklib. Change-Id: Ie82eafa961a80fac7c24d3a65e75648da8af525c
* Fix missing @override.Raphael Moll2010-05-181-7/+13
| | | | | | Also fixes some javadocs. Change-Id: Ic2bc0ae1c822f184bde63b29fdc15d897661c623
* Refactored the Android Manifest into sdklib.Xavier Ducrohet2010-05-121-1/+7
| | | | | | | | | | | | | | | API change to make it use IFileWrapper instead of IFile. Old AndroidManifestParser changed to AndroidManifestHelper which is now mostly wrapper methods to add Eclipse specific parameters. Also moved ADT...AndroidConstants.CLASS_* to sdklib...SdkConstants (needed by the parser) and removed AndroidConstants.FN_ANDROID_MANIFEST since SdkConstants.FN_ANDROID_MANIFEST_XML existed too. Moved the Eclipse implementation of IAbstractFile/Folder Change-Id: I59bdbe90ba9a4c0b5bb2c4c68945b8877d4eed3d
* Add multi-apk export log.Xavier Ducrohet2010-05-111-43/+325
| | | | | | | | The log is used to confirm that new export do not conflict with previous build. The build file can also be used to set per-apk minor version code. Change-Id: Ic5ad98758aa327f6a5bc1d00e66cf5437ac098e4
* Override local keystore/alias info when using export project to export.Xavier Ducrohet2010-05-071-0/+6
| | | | Change-Id: If4f188591b8c5154be894fdd1872a182d1b6eadc
* Add support for signing in the multi-apk ant build.Xavier Ducrohet2010-05-051-2/+38
| | | | Change-Id: I0b0223b7fa5275995563a1a21192941bd72811cc
* New If/Then/Else custom Ant rules to simplify some Ant rules logic.Xavier Ducrohet2010-05-041-1/+11
| | | | | | | Also cleaned up some attribute of our other custom tasks to conform to the standard convention (all lower case, all those were new in r3) Change-Id: If328a8eb2448d95bee1f1b70928d72fde5014eeb
* First step of multiple apk support.Xavier Ducrohet2010-05-031-0/+454
- New export type project to handle exporting a single app represented by multiple projects (for different minSdkVersion for instance). - Cleaned-up the current Ant tasks and Eclipse builder to not deal with ApkSettings anymore. It's not possible to generate more than one APK in a single pass. The export project will handle this and call out the normal build system to export each variant. Make older (deprecated) attribute actually output a warning. - Ant rules r3 now with support for multi apk export. Lots of clean up, add new properties to be overriden by the multi-apk export task, make older one overrideable too. - Better handling of older rules, older tasks, etc... in the SetupTask used by the normal build. - Add split by ABI to ApkSettings and use it in the new multi apk export. - New custom task for multi-apk export. Replaces SetupTask for export-type projects. Calls out to the project's build.xml after setting/overriding properties. This also override the project's versionCode with a new composite one made of different values. Also uses a different build.xml, so added a new template: build.export.template. Very much a work in progress. Still to do: Add other types of APK split, create/update export projects, export the build log, ... Also, we need to refactor the normal build rules to avoid so much duplication! Change-Id: I57a565c60d097a5eabb40108ae1fa8cb209f2380