aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/android
Commit message (Collapse)AuthorAge
...
* Java 8 support for Android builds, initially with incremental dexing only.Gravatar Googler2016-09-19
| | | | | -- MOS_MIGRATED_REVID=133436157
* Adds a jar filter to the IntelliJ IDE aspect.Gravatar Googler2016-09-06
| | | | | | | | | | | | | | | | Any java rule that mixes generated and non-generated sources will produce a filtered jar containing only the generated output. For a java rule with only "normal" sources or only generated source files, no filtered jar is produced. This will allow the IDE to resolve those generated sources. RELNOTES:None -- MOS_MIGRATED_REVID=132113568
* Add BUILD target for bazel apksigner and BUILD.tools so that it can be used inGravatar Adam Michael2016-09-02
| | | | | | | | | | the embedded_tools repo. Do not submit until https://bazel-review.googlesource.com/#/c/5630/6 is merged. Also do not submit until unknown commit goes in. -- MOS_MIGRATED_REVID=131950953
* Add a resource validator action for android_libraryGravatar Googler2016-08-30
| | | | | | | | | | | | | | | | | | Part 3 of the 3 new proposed android_library res processing actions. Pulls a zip file from the merging action, unpacks it, and then validates the results with aapt. Get an R.txt and srcjar w/ javadocs from aapt. In order to the get the R.txt, I think you need to ask for the R.java sources anyway. Split the processResources() into a runAapt() function that can be reused. Hookup in bazel coming separately. -- MOS_MIGRATED_REVID=131618410
* Add a lightweight resource merge action.Gravatar Googler2016-08-30
| | | | | | | | | | | | | | | | | | | | | | | | | | Part 2 of the 3 new proposed android_library res processing actions. The primary and deps are all assumed to be parsed+summarized in a protobuf. Represent that with a new class (similar to DependencyAndroidData but w/out R.txt). Avoid having "manifest" artifacts as deps input, and instead use "label", since that is only used in a warning. DepAD still uses the manifest for #asSymbolFileProvider, so we keep it there. Move loading the primary out of the merge function so that we can share the merge function with this style of primary data, and the existing style of of primary data (UnvalidatedAndroidData). This produces an R class.jar and a zip file to pass along to a future validation action. Images are stubbed out since they are irrelevant to the validation action. -- MOS_MIGRATED_REVID=131604421
* Merge xmlns decls in old manifest merger to help transitionGravatar Googler2016-08-26
| | | | | | | | | | | | | | | The old manifest merger doesn't merge xmlns decls. That could be a problem if a library has xmlns:tools but the binary doesn't (and we don't strip tools:). Library manifests may end up with more xmlns:tools annotations while transitioning from the old manifest merger to the new. It would be a problem if the same manifest is used by both the old and new merger. An alternative may be to strip the tools annotations after merging w/ this old merger... other options? -- MOS_MIGRATED_REVID=131332171
* Add external reference for android customtabsGravatar Simon Horlick2016-08-25
| | | | | | | -- Change-Id: If9b46439d0c0df36737030c9d78c201a87f1a4e9 Reviewed-on: https://bazel-review.googlesource.com/c/5590/ MOS_MIGRATED_REVID=131317750
* Delete unused empty file.Gravatar Adam Michael2016-08-18
| | | | | | | The filegroup using this file was deleted in commit c9d4fae25137cf480e83566d992bef813fcad7ee -- MOS_MIGRATED_REVID=130553843
* Replaces sh_binary redirects with aliases in Bazel.Gravatar Adam Michael2016-08-18
| | | | | -- MOS_MIGRATED_REVID=130549870
* Add a resource parsing action.Gravatar Googler2016-07-28
| | | | | | | | | | | | | | | | | | | | | | Part of 3 proposed new actions: - parsing action - merging action - validating action Dependencies (directData and transitiveData) expect the symbol files. If the merge action produces the symbol files, then each merge action depends on each other. Instead, produce it in an action with just source resources as prereqs to allow more parallelism. Technically, we don't need a manifest as part of the parameters. I debated about whether to introduce a basic version of UnvalidatedAndroidData or not. -- MOS_MIGRATED_REVID=128599714
* More pieces of RClassGeneratorActionGravatar Googler2016-07-08
| | | | | | | | | | | | Add the rclass_generator.sh, and fill in the boiler-plate for mock tools, etc. Mostly cargo- culting references to resources_processor.sh. Rename earlier pieces to use RClassGenerator prefix instead of AndroidResourceCompilation. -- MOS_MIGRATED_REVID=126831848
* Adds the Android manifest merger as an option for android_binary rules. The ↵Gravatar Andrew Pellegrini2016-06-23
| | | | | | | | | merger that is used (legacy or android) is controlled by the manifest_merger attribute on android_binary and the default is controlled by the --android_manifest_merger flag. RELNOTES: The Android manifest merger is now available as an option for android_binary rules. The merger will honor tools annotations in AndroidManifest.xml and will perform placeholder substitutions using the values specified in android_binary.manifest_values. The merger may be selected by setting the manifest_merger attribute on android_binary. -- MOS_MIGRATED_REVID=125603954
* Roll forward of commit 2ba818ca7d2c77f517f1c0e6540c9af0501b7fb2: Ensure ↵Gravatar Andrew Pellegrini2016-06-22
| | | | | | | | | | | manifest merger places the application element as the last child of the manifest element. This is required for Android N. NEW: fixed index out of range exception RELNOTES: Merged manifests are guaranteed to have the application element as the last child of the manifest element as required by Android N. -- MOS_MIGRATED_REVID=125493743
* Replace #!/bin/bash -eu with #!/bin/bash and "set -eu". Otherwise, the "-eu" ↵Gravatar Philipp Wollermann2016-06-21
| | | | | | | | | is not picked up when you run the scripts manually using "bash script.sh". This is also in our shell style guide: "Executables must start with #!/bin/bash and a minimum number of flags. Use set to set shell options so that calling your script as bash <script_name> does not break its functionality." -- MOS_MIGRATED_REVID=125450962
* Rollback of commit df39a8a06e32aa864d2504df1ea2c7ed162c8c1d.Gravatar Googler2016-06-16
| | | | | | | | | | | | | | | *** Reason for rollback *** Broke a few projects, including many targets in AGSA: [] *** Original change description *** Ensure manifest merger places the application element as the last child of the manifest element. This is required for Android N. RELNOTES: Merged manifests are guaranteed to have the application element as the last child of the manifest element as required by Android N. -- MOS_MIGRATED_REVID=124960831
* Ensure manifest merger places the application element as the last child of ↵Gravatar Andrew Pellegrini2016-06-16
| | | | | | | | | the manifest element. This is required for Android N. RELNOTES: Merged manifests are guaranteed to have the application element as the last child of the manifest element as required by Android N. -- MOS_MIGRATED_REVID=124954782
* Adds a step before creating the resource apk (ap_) to swap out the applicationGravatar Alex Humesky2016-06-13
| | | | | | | tag's name attribute to the Instant Run application class. -- MOS_MIGRATED_REVID=124606107
* Rollback of commit bda8ae9212621da50d6b18f185f99450fb6d6da9.Gravatar Lukacs Berki2016-06-06
| | | | | | | | | | | | | | | *** Reason for rollback *** Cannot be built with currently released Bazel. *** Original change description *** Remove redirect chasing from AndroidConfiguration.Loader. With aliases, it's not necessary anymore. -- MOS_MIGRATED_REVID=124123904
* Migrate to alias-based redirection for android_sdk.Gravatar Lukacs Berki2016-06-06
| | | | | -- MOS_MIGRATED_REVID=123971774
* Make Android rules/tests refer to the correct runfiles pathsGravatar Kristina Chodorow2016-05-31
| | | | | | | Fixes the android part of #1316. -- MOS_MIGRATED_REVID=123644129
* Global cleanup change.Gravatar Michael Staib2016-05-11
| | | | | -- MOS_MIGRATED_REVID=121953905
* Distinguish between the build tools version and the build tools directory in ↵Gravatar Alex Humesky2016-05-09
| | | | | | | | | android_sdk_repository so that preview sdks can be correctly handled. For example, the name in the build-tools directory might be "24.0.0-preview", but its version is actually "24 rc3" from build-tools/24.0.0-preview/source.properties. Fixes https://github.com/bazelbuild/bazel/issues/1240 -- MOS_MIGRATED_REVID=121719519
* Fix paths in Android scripts to always look under bazel_toolsGravatar Kristina Chodorow2016-05-03
| | | | | | | Fixes #1214. -- MOS_MIGRATED_REVID=121416417
* Set --android_sdk=@bazel_tools//tools/android:sdk by default and delete ↵Gravatar Luis Fernando Pino Duque2016-04-27
| | | | | | | | | Constants.ANDROID_DEFAULT_SDK. This CL also updates the test infrastructure to include a mock of @bazel_tools//tools/android:sdk. -- MOS_MIGRATED_REVID=120815577
* Add the workspace name to the SDK pathGravatar Kristina Chodorow2016-04-25
| | | | | | | | | | | | This makes the android rules work if the workspace name is set. See https://github.com/bazelbuild/bazel/wiki/Updating-the-runfiles-tree-structure for more details. This is required for rolling forward https://github.com/bazelbuild/bazel/issues/848. -- MOS_MIGRATED_REVID=120705755
* Allow for non-ascii values for android:versionNameGravatar Googler2016-04-18
| | | | | -- MOS_MIGRATED_REVID=119986133
* Adds the 64 bit library directory for aapt, aidl, and zipalign, which was addedGravatar Alex Humesky2016-04-08
| | | | | | | in Android SDK build tools version 24.0.0. -- MOS_MIGRATED_REVID=119305998
* Correct Bazel's google_play_services built-in custom_package definition, as ↵Gravatar Todd Jeffreys2016-03-25
| | | | | | | | | it is incorrect. Currently when you build an app using the built-in rule, the resources compile to google.bazel.R, but the GMS libs need com.google.android.gms.R, so InflateExceptions occur - AdView for one. -- MOS_MIGRATED_REVID=118204766
* Change android_sdk_repository to use a Skylark-based template.Gravatar Michael Staib2016-03-25
| | | | | | | | | | | This moves logic out of the Java repository function and closer to where it's actually used, while also downplaying the basic templating a bit and allowing the logic to interact better with the build file. The existing logic regarding Apache's HTTP client is migrated as part of this. -- MOS_MIGRATED_REVID=118084016
* Incremental dexing for sharded android_binary targetsGravatar Googler2016-03-15
| | | | | -- MOS_MIGRATED_REVID=117186609
* Adds the ResourceShrinkerAction. Uses the results of resource processing and ↵Gravatar Andrew Pellegrini2016-02-23
| | | | | | | a dead code removal Proguard pass to create an ap_ without unused resources to be used when building android_binary targets. -- MOS_MIGRATED_REVID=115227385
* Tweak error detection in incremental_install.py .Gravatar Lukacs Berki2015-12-16
| | | | | | | The old one failed to work with Android N. -- MOS_MIGRATED_REVID=110335879
* ASwB aspect: parse java packages during executionGravatar Googler2015-12-03
| | | | | -- MOS_MIGRATED_REVID=109305952
* Remove android:hasCode from AndroidManifest.xml in stubify_manifest.py.Gravatar Lukacs Berki2015-11-13
| | | | | | | | | Stubifying an app always injects the stub application, so the incremental APK will have code in it even if the original app didn't. This came about from #595 (it wouldn't have been reported if we did this) -- MOS_MIGRATED_REVID=107781748
* The <use-permission-sdk-23> tag is not merged into final manifestGravatar Googler2015-10-12
| | | | | | | | Now in the android_manifest_merge rule, the newly introduced <use-permission-sdk-23> tag is not merged. -- MOS_MIGRATED_REVID=105104945
* Allow Java libraries to export and propagate proguard_specs.Gravatar Michael Staib2015-10-06
| | | | | | | | | | | | | | | It may be the case that a library used by Java clients is also used by Android clients, but when used for the latter, it requires a particular Proguard configuration. This change modifies Java library rules to accept Proguard specs and pass them up to Android rules. Note that this does not cause Proguard to be used on normal Java binaries. RELNOTES[NEW]: java_library now supports the proguard_specs attribute for passing Proguard configuration up to Android (not Java) binaries. -- MOS_MIGRATED_REVID=104661799
* Replace 'Google Inc' by the 'Bazel Authors'Gravatar Damien Martin-Guillerez2015-09-30
| | | | | | | | | | This is the new conventions for Copyrights line and some were missed in the previous change. Generated by: find -type f -exec sed -i -E 's/Copyright 201([54]) Google Inc/Copyright 201\1 The Bazel Authors/' '{}' ';' -- MOS_MIGRATED_REVID=104189975
* Refactors proguard_whitelister.Gravatar Alex Humesky2015-09-30
| | | | | -- MOS_MIGRATED_REVID=104150148
* Add Android IDL jar outputs.Gravatar Googler2015-09-28
| | | | | | | | | | These outputs are a jar and source jar for the results of aidl processing. This is used to add aidl output to IDEs separate from the source code, similar to annotation output (gen jars). -- MOS_MIGRATED_REVID=104024453
* Rationalize copyright headersGravatar Damien Martin-Guillerez2015-09-25
| | | | | | | | | | | The headers were modified with `find . -type f -exec 'sed' '-Ei' 's|Copyright 201([45]) Google|Copyright 201\1 The Bazel Authors|' '{}' ';'` And manual edit for not Google owned copyright. Because of the nature of ijar, I did not modified the header of file owned by Alan Donovan. The list of authors were extracted from the git log. It is missing older Google contributors that can be added on-demand. -- MOS_MIGRATED_REVID=103938715
* Improve error message for INSTALL_FAILED_OLDER_SDK from adb.Gravatar Alex Humesky2015-09-22
| | | | | | | Clean up some tests. -- MOS_MIGRATED_REVID=103600539
* Make --split_apk mobile-install work with a pristine device.Gravatar Lukacs Berki2015-09-15
| | | | | -- MOS_MIGRATED_REVID=103068396
* Make android_binary use a constant, hard-coded, checked-in debug key. Gravatar Lukacs Berki2015-09-04
| | | | | | | This is because apkbuilder uses $HOME/.android/debug.keystore by default, which does not exist when running within the sandbox, thus, it always generates a new debug key, and thus, "adb install -r" doesn't work. -- MOS_MIGRATED_REVID=102331570
* Fix the name of the android tools dependenciesGravatar Damien Martin-Guillerez2015-09-03
| | | | | | | Fixes #419. -- MOS_MIGRATED_REVID=102248331
* Require an android_local_tools_repository stanza in the WORKSPACE file so ↵Gravatar Lukacs Berki2015-08-26
| | | | | | | | | | | | | | | that Bazel finds Android tools and update the tools themselves to handle their new location. This paves the way for eventually referencing every tool this way. We have to figure out if android_http_tools_repository is the right way to distribute the Android tools, but now that we don't have a binary distribution yet, it's not an immediate problem. This will break existing users of Android support in Bazel, whom I'll inform over bazel-discuss. Fixes #384. -- MOS_MIGRATED_REVID=101456190
* Make the installer script support incremental installation with split .apks ↵Gravatar Lukacs Berki2015-08-20
| | | | | | | | | (only for devices with Android M). Until now, we always reinstalled every split .apk. It was simple, but also not very fast. -- MOS_MIGRATED_REVID=101120400
* Upload libraries for an alternative ABI if the native ABI of the device is ↵Gravatar Lukacs Berki2015-08-20
| | | | | | | not supported in the app to be installed. -- MOS_MIGRATED_REVID=101004548
* Clean up some code in incremental_install.py .Gravatar Lukacs Berki2015-08-14
| | | | | -- MOS_MIGRATED_REVID=100655790
* Add glue logic to make the dex_shards attribute of android_binary work in Bazel.Gravatar Lukacs Berki2015-08-04
| | | | | -- MOS_MIGRATED_REVID=99567637
* Add "warm" starting to mobile-install.Gravatar Googler2015-08-04
| | | | | | | | | | | | | | | | | | This introduces a new way to stop applications when deploying incremental changes that saves the current app state for the next run. This allows things like the back stack, and View/Fragment/Activity saved state to be restored when the app next launches, making it easier to quickly iterate on code changes. It adds a "--start" flag to mobile-install that replaces "--start_app". --start accepts an argument describing the mode: no, cold, or warm. "no" is now the equivalent of "--nostart_app", "cold" is the equivalent of "--start_app", and "warm" is the new start mode. Note that this is only useful with incremental installs, as Android clears out any previously saved state when an APK is replaced. -- MOS_MIGRATED_REVID=99508790