Commit Graph

62 Commits

Author SHA1 Message Date
Xavier Ducrohet
cc02b85ba6 Add support for 'android update test-project'.
This is only to be used to update the location of the main project.
To update other properties, 'update project' can be used.

Change-Id: I96ff44295460c7e331953263abccea17108d5a70
2009-09-28 16:30:13 -07:00
Xavier Ducrohet
c51d184216 Update the project creation (from the command line):
- Make the distinction between the activity class name, manifest entry,
  fully-qualified name, and tested activity for the template place-holders.
  Test activity names now directly contain the full name (including the
  "Test" prefix) instead of the template adding it.
  This is required by the new 'create test-project'

- New action: create test-project
  This requires a path to the main project. It reads the package, activity
  name and target from the main project.
  The activity is read from the manifest and can be in a more complex form
  than previously expected (for instance .subpackage.MyClass, instead of
  simply MyClass). This is what required the re-work the activity related
  template place holders.
  Options:
   -m --main Location path of the project to test, relative to the new
             project [required]
   -n --name Project name
   -p --path Location path of the new project [required]

   Example: for 2 projects MyProject and MyTests located in the same folder,
            calling from their parent folder.

     android create test-project -p MyTests -m ../MyProject

- build.properties now only gets application.package for older targets
  as the new one get it directly from XPath

- Remove AndroidXPathFactory from the anttasks project as it was already
  in sdklib which is a dependency.

- Removed IntelliJ templates for the SDK. We haven't supported them for
  a while, and now that IntelliJ has built-in support for Android, it's
  not that useful anymore.

While there is the command line parameters for 'update test-project'
it's not yet implemented.

Change-Id: I663d4cb7f439bb2abfe866f893e58f4d13aff975
2009-09-27 18:08:00 -07:00
Xavier Ducrohet
0f61aa6470 Sync DDMS/Traceview/Android version on the repository source.
All apps now read source.properties located in SDK/tools
to know which version they. This is used in about box display
and in ping usage.

Change-Id: I6620c3eb703c32bfcdfd96e6a27bffc7a123b974
2009-09-25 15:18:37 -07:00
Raphael
8151879a7d SDK Updater: fix wrong error when unable to get repository.xml
BUG 2095530

Change-Id: I19622378b8da049f1c3416b8e0951ecc1f7475f0
2009-09-14 15:35:54 -07:00
Raphael
2196fd0317 android tool: support --target symbolic target names
BUG 2056746

Change-Id: I579e58f7c63cf404cd11af394f41ed7f998593ce
2009-09-10 16:06:32 -07:00
Xavier Ducrohet
e17ff22563 Support for hardware.ini per skin in add-ons.
Change-Id: Iab230f09504a7df34faa6a27c121a79ef1ffd603
2009-09-09 16:25:44 -07:00
Raphael
a7bb36d181 SDK Updter: change window title to match ADT
Also change the name displayed by the "android" wrapping scripts.

Change-Id: I663e1dcadfef7caf2e42138e39b1237f08091c77
2009-09-02 15:17:22 -07:00
Raphael
729fc9355d SDK Updater, restart ADB after updating tool/addon package.
There's a new setting for this too.

BUG 1922590
2009-08-17 12:10:30 -07:00
Xavier Ducrohet
48b3b5efc2 Make android.bat copy commons-compress to tmp with the other jar files.
BUG: 2039759
2009-08-06 17:12:09 -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
6baf93c2c0 Fix erroneous assert. 2009-07-22 14:08:07 -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
fa9cd9a694 SDK Updater: fix android.bat for Windows to change dirs to the
temp dir. This removes a locked handle to the SDK/tools and allows
the update to update its own tools folder.
2009-07-02 16:21:48 -07:00
Android (Google) Code Review
24d287822f Merge change 5913 into donut
* changes:
  SDK Updater: Make it possible for tools to update themselves.
2009-07-01 10:45:14 -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
c2446273c6 SDK Updater: Make it possible for tools to update themselves.
In the bat launcher for Windows, copy all the
JARs needed to run the UI in a temp folder and execute
from there.

This allows the updater to update the tools folder
without locking itself.
2009-07-01 02:16:48 -07:00
Xavier Ducrohet
e78015c12d Plug the Android SDK window as the AVD manager.
- the "manager" button on the AVD selector (when not in manager
  will open the Android SDK window

- the AVD manager in the eclipse toolsbar open the Android SDK
  window as well.

Still left to do:
- remove the now obsolete AVD wizard
- figure out what to do with the other pages.
2009-06-30 06:38:30 -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
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
Raphael
b399193542 SDK Updater: Revamp ITaskMonitor to be able to create sub monitors.
This allows us to nest tasks that share the same
progress task dialog..
2009-06-10 18:33:45 -07:00
Android (Google) Code Review
64638a165f Merge change 3743 into donut
* changes:
  ADT #1856119: 'android update project' can now update sub-projects.
2009-06-10 15:30:15 -07:00
Raphael
5eebba469b SDK Updater: Fix the build.
Seems like the server doesn't have Properties.load(Reader)!??!
2009-06-10 13:51:45 -07:00
Raphael
8e8886e363 SDK Updater: handle HTTP proxy settings, load & save. 2009-06-10 11:39:25 -07:00
Raphael
61df13dec4 ADT #1856119: 'android update project' can now update sub-projects. 2009-06-10 11:34:08 -07:00
Xavier Ducrohet
66c2833c5d Add menu + bigger icons for MacOS. Also added name to shell (macos also) 2009-06-08 18:35:29 -07:00
Xavier Ducrohet
9d5a88398e Add revision to Android targets.
The add-on use the "revision" property of the manifest (if it does not
exists, it looks for the old deprecated "version" property).
The platform uses the ro.build.version.incremental which is only an integer
for builds from the build servers.
Local builds contain <buildtype>.<username>.<date>.<time>. For those will
use the date.
2009-06-05 16:59:53 -07:00
Raphael
0dbf4c8bcf Change scripts to support x86_64 for DDMS. 2009-06-04 16:58:55 -07:00
Xavier Ducrohet
c5a89e256c Change the SDK, DDMS and Traceview to work with the new SWT libraries.
The SDK now contains 32 and 64 bit version of SWT. DDMS and Traceview
use the archquery java app to check the architecture of the VM to decide
which version of SWT should be used to run the apps.
2009-06-04 14:50:43 -07:00
Raphael
df399393ba Fix build: Add SWT dependency to SdkManager. 2009-06-02 14:08:46 -07:00
Raphael
36e11cb354 SDK Updater: Placeholder pages for about and settings.
These pages are now in the SdkManager project
with a mechanism to instantiate them from the UI on demand.
2009-06-02 11:40:29 -07:00
Xavier Ducrohet
0064943f50 Moved updateAdb into SdkManager and updated with new adb_usb.ini format.
New format is: 1 number per line. First number is vendor ID count, followed
by  the vendor IDs themselves. Comment lines starting with # accepted.
2009-05-21 18:11:36 -07:00
Xavier Ducrohet
4817a2b5b3 Add support for USB Vendor ID in the add-ons.
The add-on manifest can now declare a USB vendor ID with the line
   usb-vendor=<id>
The ID must be a 16 hexadecimal value in the format 0xABCD.

The 'android' tool now has a new command 'android upate abd' that will create
a file called 'adb_usb.ini' in ~/.android/
This file will be read by adb to add support to those new vendor IDs.
2009-05-20 18:06:15 -07:00
Raphael
08226b31f8 SDK Updater: Fetch source XML, display them in tree.
There's a notion of an asynchronous task with a progress bar & status UI.
That's still just experimental. Will need some refactoring, etc.
2009-05-20 11:58:16 -07:00
Raphael
49060501cc Skeleton App Windows for Sdk Updater built using SWT Designer.
The window is shown when the "android" tool is invoked with no parameter.
2009-05-15 17:36:26 -07:00
Raphael
0837619559 ADT #1844909: Move sdk-repository XSD and tests from SdkManager to SdkLib. 2009-05-14 19:48:53 -07:00
Android (Google) Code Review
f89a4d3524 Merge change 1501 into donut
* changes:
  ADT #1844909: SDK manager, define XML schemas & sample XMLs
2009-05-14 12:56:35 -07:00
Raphael
9cf3c16d5d ADT #1844909: SDK manager, define XML schemas & sample XMLs
For reference, there's an XSD primer here:
- http://www.w3.org/TR/xmlschema-0/#NS
- http://www.w3schools.com/Schema/
2009-05-14 12:43:08 -07:00
Xavier Ducrohet
68d017af64 Move some classes that have non ready APIs to internal packages
- com.android.sdklib.avd -> com.android.sdklib.internal.avd
- com.android.sdklib.project -> com.android.sdklib.internal.project
2009-05-13 15:00:01 -07:00
Raphael
b7327498cb ADT #1820114: Provide a quick UI to edit AVD.
This is temporary and will be replaced once we get the standalone AVD UI.
2009-04-29 11:29:55 -07:00
Raphael
5a3361ddb5 Fix ADT#1807821: -f option ignored when avd dir already existed.
Also fixed an NPE when parsing some invalid AVDs.
2009-04-28 12:54:47 -07:00
Raphael Moll
c23e021f02 AI 147176: am: CL 147174 ADT #1801919: Make default options output a bit more friendly.
Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 147176
2009-04-21 13:04:49 -07:00
Raphael Moll
a2c6807bd6 AI 147027: am: CL 147025 ADT #1795718: disable --mode in "android create project".
The alias build rules do not work and the flag wasn't even used
  by ProjectCreator anyway. Will reintroduce later.
  Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 147027
2009-04-20 16:15:15 -07:00
Xavier Ducrohet
08ceafea54 AI 146740: am: CL 146692 Clean up the output of "android list targets" and fix the image.sysdir.# to only be present if the image folders really contain *.img files.
Original author: xav
  Merged from: //branches/cupcake/...

Automated import of CL 146740
2009-04-17 11:21:13 -07:00
Xavier Ducrohet
62ca2ce538 AI 146739: am: CL 146689 Broken AVDs are now loaded by default, and we provide a way to fix one (new) type of error (wrong paths to the system image)
Original author: xav
  Merged from: //branches/cupcake/...

Automated import of CL 146739
2009-04-17 11:18:24 -07:00
Xavier Ducrohet
ca7264c7b7 AI 145844: am: CL 145394 Fix 'android create project': it was swapping activity and package names (bug #1781137)
Original author: xav
  Merged from: //branches/cupcake/...

Automated import of CL 145844
2009-04-13 08:25:32 -07:00
Raphael Moll
1edcab4738 AI 143883: am: CL 143881 AVD #1703143: delete AVDs not loaded correctly.
This covers the case where an AVD has an invalid target
  or is missing its AVD folder or the config.ini in it.
  Made some cosmetic cleanup too.
  Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 143883
2009-03-31 17:23:46 -07:00
Raphael Moll
361030c1d8 AI 143808: am: CL 143754 SdkManager: list unknown AVDs and why they didn't load.
Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 143808
2009-03-31 15:10:16 -07:00