Commit Graph

117 Commits

Author SHA1 Message Date
Raphael
3d4dec9184 BUG 2040986 : SDK Updater, platform dependency on tools 2009-08-12 18:12:33 -07:00
Xavier Ducrohet
4e7bb1b603 Properly update the new path of the AVD during an 'android avd move'
BUG: 2048358
2009-08-11 20:23:10 -07:00
Raphael
609b375a03 BUG 2041701: Release notes content/link in SDK Updater schema 2009-08-11 13:53:16 -07:00
Android (Google) Code Review
ce0155aaea Merge change 20520 into donut
* changes:
  Fix IAndroidTarget#isCompatibleBaseFor() for add-ons
2009-08-10 16:58:58 -07:00
Xavier Ducrohet
5c0fcdca73 Fix IAndroidTarget#isCompatibleBaseFor() for add-ons
BUG: 2042277
2009-08-10 12:45:10 -07:00
Raphael
1cf0c7fe0e BUG 2042088 : SDK Updater: we want to keep getenv(TEMP_SDK_URL)
Renamed the getenv and added one for user sources.
Added a (naive) check to prevent duplicate URLs.

Also fixed the repositoy.xml download error message, it was not displaying the reason of failure correctly.
2009-08-07 16:36:19 -07:00
Raphael
904ef4d8a4 BUG 2041688 : SDK Updater: better description of extra packages 2009-08-07 14:21:18 -07:00
Xavier Ducrohet
5ae5e3da1b Fix some display string that contained an unused %s and an NPE
This makes the android app crash when the XML cannot be validated.
2009-08-06 19:29:21 -07:00
Raphael
26cdbb788a SDK Updater: Fix to allow install from directory URL (i.e. auto-guess the
repository.xml correctly.)

BUG 2039080

Also removed some misc Eclipse 3.5 warnings.
2009-08-06 12:51:22 -07:00
Xavier Ducrohet
2f6bd734c0 Fix comparison of 2 doc packages that have the same codename/revision.
This made the Donut_r1 doc show up as upgrade to the donut_r1 doc.
BUG: 2037448
2009-08-05 19:31:04 -07:00
Xavier Ducrohet
6d673960b0 Fix NPE that prevented any package w/o license to be installed.
java.util.Properties#setProperty() doesn't like it when the value is null
which was the case when a package had no license.

Made sure it won't happen on other properties than the license as well.

Also improved error display when an unexpected Throwable is thrown during
install (Stack Call is now display if the Throwable has no message).

BUG:2037085
2009-08-05 17:13:00 -07:00
Xavier Ducrohet
bd13370117 Fix PlatformTarget#compareTo(IAndroidTarget) again. 2009-08-03 13:46:27 -07:00
Xavier Ducrohet
bc8b16505e Prevent SDK updater dialog from showing offscreen. 2009-07-27 15:26:10 -07:00
Xavier Ducrohet
b59daafde4 Fix the update check for doc packages. 2009-07-24 13:39:04 -07:00
Xavier Ducrohet
fbeb74a610 Add a checkbox to only show packages that are updates or new. 2009-07-23 17:07:01 -07:00
Xavier Ducrohet
ecc85daf7b Fix loading of user repository and add refresh when adding/removing. 2009-07-23 14:43:49 -07:00
Xavier Ducrohet
797654a452 Use Apache Commons Compress instead of java.util.zip
When the SDK installer unarchives the zip files, it is important to keep
the permissions for executable (Linux/MacOS) or the tools required to
build applications (aapt, aidl, ...) won't work.

Since java.util.zip does not provide support for permissions, we now
use the Apache Commons Compress component that allows us to read the
permission from the archive.
2009-07-23 12:59:42 -07:00
Xavier Ducrohet
a399a681d5 Add support for add-on based on preview of platforms. 2009-07-22 18:12:30 -07:00
Xavier Ducrohet
1b9c1e4dd2 Refactored AndroidXPathFactory into sdklib. 2009-07-22 09:42:20 -07:00
Xavier Ducrohet
8c78ba6438 Use the proper URL for the google repository.
Also fix an NPE.
2009-07-21 15:25:32 -07:00
Xavier Ducrohet
ce359b0e8a Generalize usage of AndroidVersion instead of Api level in the SDK packages.
Platform, add-on and doc packages used to use Api Level to figure out
upgrade logic. This is replaced by AndroidVersion to properly handle
codename versions.
2009-07-21 13:48:37 -07:00
Xavier Ducrohet
f2869cf9a9 Add support for preview versions of platforms.
ro.build.version.codename is a new property indicating whether a platform
is in its release form (value = REL) or in development (value = dev branch
name such as Donut). When the codename indicates a development/preview version
then the API level must be ignored and this codename is used as a unique
identifier of the platform.

IAndroidTarget has been changed to return an instance of a new class
AndroidVersion instead of the api level directly. This class helps deals with
the logic of comparing version from targets or devices.

This change impacts all of the sdk manager to deal with targets identified by
codename instead of api level. This in turn impacts everything that relies
on the sdkmanager: ADT (build, launch, project creation), the AVD manager,
the SDK updater.
2009-07-20 18:11:21 -07:00
Raphael
de21e3ab24 Update comments in AvdManager 2009-07-01 11:26:26 -07:00
Xavier Ducrohet
59fc8c9d06 All actions in AdvManager now receives their own ISdkLog.
Also added 'update' action to AvdSelector.
2009-07-01 03:14:06 -07:00
Raphael
329c13cbe3 SDK Updater: refine error handling when fetching sources. 2009-06-30 20:32:40 -07:00
Raphael
9cf8f819fa SDK Updater: Add repository.xml if not specified in URLs 2009-06-30 11:36:44 -07:00
Raphael
ee763d1307 SDK Updater: Better handling of fetch errors.
The remote page now shows fetch errors in the tree.
Using refresh tries to reload error sources.
2009-06-30 11:29:51 -07:00
Xavier Ducrohet
f0ac8e8a09 AVD creation dialog. 2009-06-30 05:17:00 -07:00
Xavier Ducrohet
c851d71fa2 Misc cleanup from a previous commit. 2009-06-30 00:44:18 -07:00
Xavier Ducrohet
955e08b520 Skins can now provide their own hardware support (via AVDs) 2009-06-29 08:01:02 -07:00
Raphael
1a2584be47 SDK Updater: Store local source properties when installing.
When installing an archive, a "source.properties" file is saved
in the directory that contains all the information from the
source (Source URL, package attributes, archive attributes.)

When loading local packages, these properties are used to
recreate the local package attributes if present. This is
also used to indentify local extra packages.
2009-06-26 14:37:01 -07:00
Raphael
6183584988 SDK Updater: Cleanup a bunch of todos 2009-06-25 20:00:05 -07:00
Raphael
426ecc9efd SDK Updater: logic to load/save user sources and to delete them. 2009-06-25 18:06:00 -07:00
Raphael
0d9a6278b4 Fix api change following a rebase. 2009-06-18 21:42:36 -07:00
Android (Google) Code Review
3962412784 Merge change 4685 into donut
* changes:
  SDK Updater: use separate license node in XML. Support extra packages.
2009-06-18 21:24:38 -07:00
Raphael
48c6578bb6 SDK Updater: use separate license node in XML. Support extra packages. 2009-06-18 16:40:12 -07:00
Xavier Ducrohet
ef2f55d0b7 Add support to delete AVD in the new AvdSelector.
Also: change button order in the update chooser dialog.
2009-06-18 16:01:05 -07:00
Android (Google) Code Review
630f7df118 Merge change 4575 into donut
* changes:
  SDK Updater: Better guess for the addon folder name.
2009-06-18 12:01:58 -07:00
Raphael
691beb35a1 SDK Updater: Better guess for the addon folder name.
- Always unzip the archives first and get their root zip dir.
- Try to reusing an existing addon folder first.
- Or the root zip dir.
- Or come up with a better name for the addon folder.
2009-06-17 21:28:51 -07:00
Xavier Ducrohet
fa0286d4d3 Force UTF-8 encoding for SDK files.
- project .properties files
- AVD ini files (<name>.ini and config.ini)
- add-on manifest
2009-06-17 17:51:22 -07:00
Raphael
340a79b590 SDK Updater: fix repository.xml to read as binary, not text
to let the XML decoder handle the charset decoding.
2009-06-17 13:35:39 -07:00
Raphael
624222750d SDK Updater: addon id is name+vendor, lower case 2009-06-15 16:35:41 -07:00
Raphael
e073146af3 SDK Updater: update all existing local archives, license click through. 2009-06-15 13:48:50 -07:00
Raphael
18a6ab32be SDK Updater: provide a "force http" setting.
Note that the setting operates on every source by converting
the https:// links into http:// before fetching the sources
or the archives.

This also reorganize some things: the RepoSourceAdapter now
takes the UpdaterData as parameter (so both Adapters work the
same) and the label/contentProviders are nested classes instead
of static classes. Cleanup some stuff that was no longer useful
such as the RepoSources.TaskFactory (it's in UpdaterData already).

With this change I can install from the dl site over http at home!
2009-06-11 21:45:07 -07:00
Raphael
f3eed7385c SDK Updater: SettingsController that handles the settings.
There is not any longer any logic in the SettingsPage,
it is handled now by a "SettingsControllers" which is
available via UpdaterData. The page only takes care of
notifying the controller via a callback when settings
have changed in the UI.
2009-06-11 18:14:11 -07:00
Android (Google) Code Review
c390708d03 Merge change 3868 into donut
* changes:
  ADT #1909458: fix 'android update project': "build.xml is too old"
2009-06-11 11:55:36 -07:00
Android (Google) Code Review
134c84ab62 Merge change 3856 into donut
* changes:
  SDK Updater: fix install in new directory.
2009-06-11 10:24:54 -07:00
Raphael
bd13b6ce02 ADT #1909458: fix 'android update project': "build.xml is too old" 2009-06-10 21:33:38 -07:00
Android (Google) Code Review
3aa7f5d637 Merge change 3848 into donut
* changes:
  SDK Updater: Revamp ITaskMonitor to be able to create sub monitors.
2009-06-10 19:49:47 -07:00
Raphael
9888f2038e SDK Updater: fix install in new directory.
Also change the getenv hack so that multiple sources
can be specified, separated by ;
2009-06-10 19:35:50 -07:00