| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: Ife64397692912f892ec81af8237ac31914830be9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
| |
Target 'coverage' outputs now path to the generated coverage report.
Change-Id: I442c0ff002c5d269cf1f573674105691df9caec5
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Emma instrumentation modifies .class files in that way they cannot be processed
by dx without --no-locals option.
|
|\
| |
| |
| |
| | |
* changes:
Force update to the next plugin.
|
| |
| |
| |
| | |
Change-Id: I2f1042a087ca6227396a41d23eed26525fbbbbf6
|
|/
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|\
| |
| |
| |
| | |
* changes:
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.
|
|/
|
|
| |
Change-Id: I02d257baf1e28ee02db262ba4772645002ea0020
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
'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
|
|\
| |
| |
| |
| |
| |
| | |
Merge commit '3a92963bf3865330e89b3e7a66b66dd9cfc8792b' into eclair
* commit '3a92963bf3865330e89b3e7a66b66dd9cfc8792b':
Cleanup SDK packaging: remove alias build files.
|
| |\
| | |
| | |
| | |
| | | |
* changes:
Cleanup SDK packaging: remove alias build files.
|
| | | |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
'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
|
| |
| |
| |
| | |
Removes output files created by other targets.
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| |/
| |
| |
| |
| |
| | |
Merge commit 'e95a86cfec18836ddbff149690a13766bfc9ada3' into eclair
* commit 'e95a86cfec18836ddbff149690a13766bfc9ada3':
Fix target for ApiDemos (API is now 4)
|
| |
| |
| |
| | |
Also add some progress output to the ant rules.
|
|/ |
|
|\
| |
| |
| |
| | |
* changes:
Make the Ant script sign and zipalign release builds.
|
| |
| |
| |
| |
| | |
It will also align debug builds.
BUG: 2052744
|
|/ |
|
|
|
|
|
|
|
|
| |
This enabled 'ant uninstall' to work.
Also, add an error message to the uninstall rules in case the property
is not defined.
BUG: 2050451
|
|\
| |
| |
| |
| | |
* changes:
Improve the comments in build.xml to help people customize their build.
|
| | |
|
|/
|
|
| |
bug: http://code.google.com/p/android/issues/detail?id=3350
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
the uninstall parameter is a value (the application package), but the Ant
task was incorrectly using "path" for the argument.
|
|
|
|
|
|
|
|
|
| |
android_rules.xml
Original author: raphael
Merged from: //branches/cupcake/...
Automated import of CL 147177
|
| |
|
| |
|
| |
|
| |
|