Commit Graph

66 Commits

Author SHA1 Message Date
Xavier Ducrohet
af49663340 Add save/load for the user-made Layout Devices. (do not merge)
Also added support for mcc/mnc in the schema.
2009-10-16 17:49:45 -07:00
Raphael
62437b9984 Windows SDK: copy SDK Setup.exe at root of SDK.
Also add a source.properties (we'll install it on the vendor/google
script part of the script).

SDK BUG 2173135

Change-Id: Icb0f22a65ffd819bf7b0f48adbec51cbc1243f71
2009-10-14 07:21:26 -07:00
Raphael
26a2166934 Set SDK Platform/Doc to API 5. 2009-10-10 14:16:20 -07:00
Brett Chabot
1a363965c5 Fix ant install when -Dadb.device.arg not provided.
And also add the adb.device.arg support to ant uninstall.

BUG 2172690
2009-10-09 11:42:14 -07:00
Raphael
3334a5874e Fix "android create project" to properly set name in strings.xml
Layout was wrong too.

SDK BUG 2176634

Change-Id: Ibbec1c47037d4a6dd875953c1875daaac4f11106
2009-10-08 15:16:22 -07:00
Raphael
8eff7f5779 Support adb device-targeting arguments in ant scripts.
Example of usage:
  $ ant install -Dadb.device.arg=-d

SDK BUG 2172690

Change-Id: I196441f9aab888b1356b4fc0255842570be5140f
2009-10-08 15:05:09 -07:00
Xavier Ducrohet
227b8768fa Load default GLE device profiles from the SDK.
Change-Id: Ife64397692912f892ec81af8237ac31914830be9
2009-09-30 23:01:19 -07:00
Xavier Ducrohet
8677a1704e Replace icon template with new style and multiple densities.
The icon in the templates of ADT was medium density only.
I added new densities (high and low), as well as updated to
the new Eclair style. Also added a version for Ant project.

Updated ADT and sdklib to deal with creating new projects
with all 3 icons.

In case of Ant project, this is done only if the icons
are present in the target platforms.

For ADT, this is done only if the project target donut
or later. Older project still have only one icon located
in drawable/

Change-Id: I77069a1e4902ef395d490526aabc40a26e33d4ca
2009-09-30 20:46:00 -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
Piotr Gurgul
dd38dd51a6 Add info about location of the coverage report
Target 'coverage' outputs now path to the generated coverage report.

Change-Id: I442c0ff002c5d269cf1f573674105691df9caec5
2009-09-24 21:37:00 -07:00
Piotr Gurgul
bca3ef5c25 Add tested.project.dir to classpath for install and debug
Now buildfile recognizes whether targets 'debug' or 'install' are being run for
an ordinary or test project and for the test projects classpath is extended
to enclose the tested project. Tested project is being compiled if necessary.
2009-09-24 18:17:22 -07:00
Piotr Gurgul
5b6f3cbe4b Add --no-locals to dx when dexing instrumented classes
Emma instrumentation modifies .class files in that way they cannot be processed
by dx without --no-locals option.
2009-09-23 18:20:25 -07:00
Android (Google) Code Review
c733a52949 Merge change 26521 into eclair
* changes:
  Force update to the next plugin.
2009-09-22 23:06:48 -04:00
Xavier Ducrohet
a96c9885d7 Force update to the next plugin.
Change-Id: I2f1042a087ca6227396a41d23eed26525fbbbbf6
2009-09-22 18:45:44 -07:00
Piotr Gurgul
fa0062da90 Add legacy support for application.package property
application.package in android_rules.xml and android_test_rules.xml has been
replaced by manifest.package which value is taken from AndroidManifest.xml.
This is because old versions of build.properties contain already
application.package property which has precedence over the extracted one
and overrides it.

Change-Id: I909e145926169922ec6ec0e179ad88c413aa85b2
2009-09-22 17:31:14 -07:00
Piotr Gurgul
3cbe2b7943 Add automatic application package extraction from manifest
Automatic extraction of the application.package property has been added
leveradging xpath ant task. This reduces redundancy, removes hardcoded
application.package and solves bug with uninstalling test application
package. In order to function properly needs removing application.package
from build.properties file.
2009-09-21 21:44:00 -07:00
Piotr Gurgul
9a73cd9add Increase reusability of zipalign macrodef
debug-helper macro has been renamed to zipalign-helper to reflect better its
function. Two parameters for input and output packages have been introduced.
Macro has been additionally leveradged in 'release' target where zipalign
was previously called directly, duplicating the code.
2009-09-21 17:22:34 -07:00
Piotr Gurgul
fddd720cf2 Add global verbosity control for SDK ant targets
The user-configurable property 'verbose' has been introduced. It is set by
default to 'false' and switching in on enables verbose mode for all the
intermediate steps for a given target.
2009-09-21 16:33:30 -07:00
Piotr Gurgul
089585b7c6 Specify emma dump file location on the device explicitly
This is to avoid using default location for the emma dump file (coverage.ec)
which is generated on the device. Pointing out the custom location (which
for now is the same as the default one) is more straightforward and
will be important if the default location changes in the future.
2009-09-16 16:32:57 -07:00
Piotr Gurgul
aead155ef2 Clean up temporary files after generating coverage report
After generating coverage report instrumentation.dir and files coverage.ec
and coverage.em are being deleted. As Emma treats both files incrementally,
running 'ant coverage' in the project with these files already existing
may produce unexpected results.
2009-09-16 10:43:19 -07:00
Piotr Gurgul
519e10746d Replace -no-sign and -debug-sign with macrodef attribute
Instead of setting property indicating if package should be signed
with debug key in separate targets, this information is being passed
as a package-helper macrodef parameter.
2009-09-15 16:46:21 -07:00
Piotr Gurgul
05bf40edec Reorganize android_rules and android_test_rules
Instrumentation-related targets have been moved from android_test_rules to
android_rules for better consistency. Chain of target dependencies has
been modified in order to make it more natural.
2009-09-15 14:55:32 -07:00
Android (Google) Code Review
f4c4102ca9 Merge change 23594 into eclair
* changes:
  Add ant-based code coverage support to Android SDK
2009-09-09 22:00:52 -04:00
Piotr Gurgul
6edb5a108e Add ant-based code coverage support to Android SDK
Target 'run-tests' launches all the unit tests against the tested project.
Target 'coverage' emma-instruments the tested project's classes,
runs the tests against instrumented classes, collects code coverage data
and extracts it to human-readable form as report.html.
android_test_rules.xml contain additional rules for test projects.
Test projects are auto-recognized by presence of the tested.project.dir
property, which will be auto-generated for tests projects. Temporarily,
please add this property manually to the build.properties file.
Current version is mainly tested with default, android generated test projects.
This version includes also fixing relative to absolute paths for
properties which are most likely to be changed by user in external
property file.
2009-09-09 18:32:03 -07:00
Xavier Ducrohet
76140555b0 Update revision of the tools source.properties file.
Change-Id: I02d257baf1e28ee02db262ba4772645002ea0020
2009-09-04 15:26:39 -07:00
Xavier Ducrohet
0614664583 Make ApkBuilder create filenames supported by older rules.
'ant install' must know the debug apk filename so newer naming scheme breaks
on older rule files (1.5 and earlier).
The fix is to check for the presence of the property naming the debug,
signed, unaligned package. If the property is present, then we use
the new naming scheme ({base}[-{config}]-debug-unaligned.apk), else we use
the old one ({base}-[-{config}]-debug.apk).

Also merge the install/reinstall targets, since 'adb install -r <file>'
works even if the apk was not yet installed.

Change-Id: Id0670610a6539a3f48c955756955f950039c3cd0
2009-08-26 14:58:56 -07:00
Xavier Ducrohet
2328b4f3f5 am 3a92963b: Merge change 22652 into donut
Merge commit '3a92963bf3865330e89b3e7a66b66dd9cfc8792b' into eclair

* commit '3a92963bf3865330e89b3e7a66b66dd9cfc8792b':
  Cleanup SDK packaging: remove alias build files.
2009-08-26 11:41:53 -07:00
Android (Google) Code Review
3a92963bf3 Merge change 22652 into donut
* changes:
  Cleanup SDK packaging: remove alias build files.
2009-08-26 11:26:06 -07:00
Xavier Ducrohet
b908430652 Cleanup SDK packaging: remove alias build files. 2009-08-26 11:23:20 -07:00
Xavier Ducrohet
aa1abe879a Make ApkBuilder create filenames supported by older rules.
'ant install' must know the debug apk filename so newer naming scheme breaks
on older rule files (1.5 and earlier).
The fix is to check for the presence of the property naming the debug,
signed, unaligned package. If the property is present, then we use
the new naming scheme ({base}[-{config}]-debug-unaligned.apk), else we use
the old one ({base}-[-{config}]-debug.apk).

Also merge the install/reinstall targets, since 'adb install -r <file>'
works even if the apk was not yet installed.

DO NOT MERGE
2009-08-26 11:17:04 -07:00
Piotr Gurgul
e2c37d4f44 Ant clean target added
Removes output files created by other targets.
2009-08-25 17:19:00 -07:00
Piotr Gurgul
9fccdf5b88 Alias rules properties names update
android-tools change to android.tools.dir
sdk-folder to sdk.dir
resource-dir to resource.dir
out-package to out.package
Some minor style changes introduced.
2009-08-25 10:59:55 -07:00
Piotr Gurgul
2968aa3020 Ant properties names changed
application-package to application.package
sdk-location to sdk.dir
android-jar to android.jar
android-aidl to android.aidl
in order to make their names compliant with the ant standards and rest
of the property names.
Properties names in alias rules deliberately ommited in this CL.
Some minor style changes introduced.
2009-08-24 23:06:56 -07:00
Piotr Gurgul
424b833edf Updated build.xml template
build.template file has been updated to make it up-to-date with new
android_rules.xml file. Besides, some minor style changes have been introduced.
2009-08-22 14:45:00 -07:00
Piotr Gurgul
832c859693 Refactoring of android_rules.xml file
This is a new CL because of merge conflict in the old one.
Naming changed to 'property.name' style for property names.
Property 'value' attributes changed to 'location' for props containing location.
Suffix '.dir' added to properties' names indicating directories.
'-description' prefix added to intermediate/internal targets.
'*.location' properties removed, as 'location' attribute should take care of
full paths, adding $basedir implicitly, so hopefully there is no need to
define them explicitly.
External property names (taken from other files or hardcoded somewhere)
stayed untouched in this CL.
Some minor improvements to comments in order to make them more consistent.
2009-08-22 13:15:26 -07:00
Xavier Ducrohet
53b3190a47 am e95a86cf: Merge change 22346 into donut
Merge commit 'e95a86cfec18836ddbff149690a13766bfc9ada3' into eclair

* commit 'e95a86cfec18836ddbff149690a13766bfc9ada3':
  Fix target for ApiDemos (API is now 4)
2009-08-22 07:44:12 -07:00
Xavier Ducrohet
c86903288c Fix target for ApiDemos (API is now 4)
Also add some progress output to the ant rules.
2009-08-21 15:59:02 -07:00
Xavier Ducrohet
a4876df288 Update some version number for Eclair SDK. 2009-08-18 17:34:01 -07:00
Android (Google) Code Review
afd9ae8e9b Merge change 21211 into donut
* changes:
  Make the Ant script sign and zipalign release builds.
2009-08-13 21:14:51 -07:00
Xavier Ducrohet
954e80e5ca Make the Ant script sign and zipalign release builds.
It will also align debug builds.
BUG: 2052744
2009-08-13 21:13:53 -07:00
Xavier Ducrohet
a1adc4903e Update the version of the tools/docs/platforms 2009-08-13 18:13:33 -07:00
Xavier Ducrohet
5b13066ef1 On project creation, put the app package in build.properties
This enabled 'ant uninstall' to work.
Also, add an error message to the uninstall rules in case the property
is not defined.

BUG: 2050451
2009-08-13 11:18:28 -07:00
Android (Google) Code Review
e277877541 Merge change 20426 into donut
* changes:
  Improve the comments in build.xml to help people customize their build.
2009-08-07 16:54:34 -07:00
Xavier Ducrohet
3c1404268a Fix template for java test file to not use deprecated class.
bug: http://code.google.com/p/android/issues/detail?id=3350
2009-08-07 12:05:09 -07:00
Xavier Ducrohet
74dca0efdc Improve the comments in build.xml to help people customize their build. 2009-08-07 10:43:47 -07:00
Xavier Ducrohet
b519db4eed Add notice file to platform folder. 2009-07-28 16:19:23 -07:00
Xavier Ducrohet
f74c1d2fb7 Add default version files into the SDK for docs/tools/platforms. 2009-07-23 18:25:41 -07:00
Xavier Ducrohet
a8721e7040 Move ADT/DDMS plug-ins to 0.9.2 2009-07-22 18:37:33 -07:00
Xavier Ducrohet
a399a681d5 Add support for add-on based on preview of platforms. 2009-07-22 18:12:30 -07:00
Dan Bornstein
8fe57fa186 Remove an old backup file. 2009-06-10 16:08:38 -07:00