chromium-src-build/android
Peter Wen ffbb933b99 Android: Use a unified lint target
Lint is no longer implicitly run as part of an apk or bundle target. If
a specific apk or bundle wants to turn on its own lint and have that run
automatically on every build, the enable_lint flag can be used. See:
"boundary_interface_example_apk".

A new target //chrome/android:android_lint (or simply "android_lint")
has been added. This currently runs either monochrome_public_bundle's
lint task or a list of default targets if such a list is defined.

For chrome apk/bundle targets based on chrome_public_apk_tmpl.gni, they
will automatically get a data_dep added on the new unified lint target
so most devs' workflow will not need to change.

APKs in for {remoting,cronet,cast} have enable_lint added explicitly in
this CL to preserve their existing behaviour.

NewApi and VisibleForTests checks have been disabled for test apks, with
a TODO for turning at least NewApi back on.

Bug: 1108791
Fixed: 1108791
Change-Id: I6534fcd6dc7af1d7a12720a98f8d0d09bee8f161
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2318549
Commit-Queue: Peter Wen <wnwen@chromium.org>
Reviewed-by: Paul Jensen <pauljensen@chromium.org>
Reviewed-by: Lambros Lambrou <lambroslambrou@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Auto-Submit: Peter Wen <wnwen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#792728}
GitOrigin-RevId: f40e2d02801df0a75a88a63e76ede485739e2d22
2020-07-29 09:25:06 -07:00
..
bytecode Android: Add host_jar_path vs device_jar_path to build logic 2020-06-15 19:39:16 +00:00
docs AW docs: update references to go/clank-webview 2020-07-21 12:19:31 -07:00
gradle Fix: generate_gradle with vpython 2020-07-27 12:00:20 -07:00
gyp Android: Use a unified lint target 2020-07-29 09:25:06 -07:00
incremental_install Reland: Android: Add desugar runtime in dex() step 2020-05-15 22:11:42 +00:00
java/templates Reland "Android: Make BundleUtils bundle status work with Trichrome." 2020-01-10 17:00:22 +00:00
lint Fix lint issues in tab_ui 2020-07-27 13:59:13 -07:00
play_services Android: Remove build/android/play_services 2019-01-16 15:45:58 +00:00
pylib Update Android SDK and Android System SDK to R. 2020-07-28 07:00:41 -07:00
stacktrace Add missing data_dep on JDK from java_deobfuscate.py 2020-04-28 19:52:46 +00:00
test_wrapper [bundles] Add install script and its dependencies to runtime deps 2019-04-30 15:36:28 +00:00
tests/symbolize [ndk] Change ndk deps in src and relocate to third_party/android_ndk 2018-01-11 00:25:57 +00:00
update_deps Replace all uses of find_depot_tools in //build/android. 2019-04-13 02:04:57 +00:00
AndroidManifest.xml [build] Remove <uses-sdk> and specify [min|target|max]SdkVersion in GN 2019-06-17 20:32:02 +00:00
BUILD.gn Output final_android_sdk to build_vars.txt 2020-06-10 18:30:02 +00:00
CheckInstallApk-debug.apk Stop build on failed device status check, apk install and add CheckInstall step. 2013-05-14 17:15:30 +00:00
OWNERS Update TEAM in OWNERS for build-related directories. 2020-05-20 17:39:31 +00:00
PRESUBMIT.py Add "list_java_targets.py" to make it easy to build all java targets 2020-07-13 18:32:49 -07:00
adb_chrome_public_command_line [build/android] Update adb_command_line.py to use flag_changer 2017-01-20 07:42:28 +00:00
adb_command_line.py DevX: use devil_chromium.Initialize in CLI script 2019-07-09 22:03:46 +00:00
adb_gdb Change adb_gdb to look for ld rather than gcc 2020-05-20 22:06:24 +00:00
adb_install_apk.py [build/android] Fix error messages in adb_install_apk 2017-07-03 12:42:21 +00:00
adb_logcat_monitor.py //build: Convert print statements to Python 3 style 2019-05-12 06:11:07 +00:00
adb_logcat_printer.py Create output dir in logcat printer if it doesn't exist. 2016-03-25 19:31:34 +00:00
adb_profile_chrome Remove //tools/profile_chrome from Chromium repo 2016-02-26 00:48:40 +00:00
adb_profile_chrome_startup Remove //tools/profile_chrome from Chromium repo 2016-02-26 00:48:40 +00:00
adb_reverse_forwarder.py [Android] Switch adb_reverse_forwarder to argparse. 2016-09-23 02:43:03 +00:00
adb_system_webview_command_line [build/android] Update adb_command_line.py to use flag_changer 2017-01-20 07:42:28 +00:00
android_only_explicit_jni_exports.lst Reland of Android: Use linker script to hide all non-JNI symbols 2017-02-15 17:20:56 +00:00
android_only_jni_exports.lst Reland of Android: Use linker script to hide all non-JNI symbols 2017-02-15 17:20:56 +00:00
apk_operations.py [Bundles] Make bundle wrapper test scripts install '-m dev_ui' by default. 2020-05-14 17:10:52 +00:00
apply_shared_preference_file.py Restore modified shared pref settings after tests 2018-09-21 16:35:57 +00:00
asan_symbolize.py android: Fix the asan_symbolize to work with library name like libc++.so 2020-05-12 21:06:23 +00:00
chromium-debug.keystore Reland: Android: Remove last remnants of ANT (part 1) 2017-10-19 20:31:40 +00:00
convert_dex_profile.py [Android] Dexlayout with obfuscated profiles 2018-12-12 12:31:58 +00:00
convert_dex_profile_tests.py [Android] Dexlayout with obfuscated profiles 2018-12-12 12:31:58 +00:00
dcheck_is_off.flags Reland "Android: Add @CheckDiscard to proxy native wrappers." 2019-11-06 21:33:26 +00:00
devil_chromium.json Switch //build/android to vpython pymock 2020-06-16 23:55:55 +00:00
devil_chromium.py Switch //build/android to vpython pymock 2020-06-16 23:55:55 +00:00
devil_chromium.pydeps Reland: "Add stacktrace scripts to telemetry isolate" 2019-03-14 14:45:22 +00:00
diff_resource_sizes.py //build: Convert print statements to Python 3 style 2019-05-12 06:11:07 +00:00
download_doclava.py Use script relative paths in download_doclava.py 2019-11-19 12:03:14 +00:00
dump_apk_resource_strings.py //build: Convert print statements to Python 3 style 2019-05-12 06:11:07 +00:00
emma_coverage_stats.py Set Python shebang in build to /usr/bin/env python 2017-07-05 14:42:43 +00:00
emma_coverage_stats_test.py Switch //build/android to vpython pymock 2020-06-16 23:55:55 +00:00
envsetup.sh Android development tools paths are pre-pended to system PATH 2020-04-28 22:37:50 +00:00
generate_jacoco_report.py Run host and device code coverage separately. 2020-07-28 11:38:08 -07:00
host_heartbeat.py [Android] Prepare build/android/ for catapult+devil. 2016-01-11 16:23:48 +00:00
lighttpd_server.py //build: Convert print statements to Python 3 style 2019-05-12 06:11:07 +00:00
list_class_verification_failures.py Fixing easy to fix verification errors 2019-09-18 19:54:10 +00:00
list_class_verification_failures_test.py Switch //build/android to vpython pymock 2020-06-16 23:55:55 +00:00
list_java_targets.py Fix: generate_gradle with vpython 2020-07-27 12:00:20 -07:00
main_dex_classes.flags Removed Webview keeps from main dex rules 2019-05-07 15:43:59 +00:00
method_count.py resource_sizes.py: Add a metric for unique method counts. 2019-06-28 22:00:51 +00:00
multidex.flags Android: Fix multidex proguard config messing up obfuscation 2018-09-21 19:30:30 +00:00
provision_devices.py [devil refactor] Prepare clients for DeviceUnreachableError 2017-04-13 12:19:51 +00:00
pylintrc build/android: Fixes to make pylint happy. 2018-07-24 13:42:59 +00:00
resource_sizes.gni Add trichrome support to resource_sizes.gni 2020-03-20 15:48:17 +00:00
resource_sizes.py resource_sizes.py: Relax assertion for padding fraction. 2020-05-25 16:50:59 +00:00
resource_sizes.pydeps Remove third_party/apk-patch-size-estimator 2020-03-17 20:12:17 +00:00
screenshot.py [Android] Prepare build/android/ for catapult+devil. 2016-01-11 16:23:48 +00:00
test_runner.py Create a WPR supported infra to run WPR Record/Replay test. 2020-05-15 19:54:28 +00:00
test_runner.pydeps Finish converting all scripts from depfile -> .pydeps 2020-06-25 13:01:03 -07:00
tombstones.py Android: Delete relocation_packer (obsolete with lld) 2018-07-11 03:05:03 +00:00
update_verification.py Android: switch to device.IsApplicationInstalled 2019-09-17 16:42:09 +00:00
video_recorder.py [Android] Prepare build/android/ for catapult+devil. 2016-01-11 16:23:48 +00:00