platform_build_soong/java
Mårten Kongstad 802ae0fdd3 Pass --sdk-extensions-{root,info} to metalava
Teach soong to pass metalava the two new command line arguments
--sdk-extensions-root <dir> and --sdk-extensions-info <file> when
generating the API levels file (--generate-api-levels api-versions.xml).

The directory hierarcy in a droiddoc_exported_dir module has special
meaning, e.g. extensions/1/public/*-stubs.jar are the mainline module
stubs containing the public API for SdkExt version 1. Update the logic
where the directories are scanned for android.jar files to locate the
SDK extension jars (extensions/<int>/public/*-stubs.jar).

Also introduce a new field on droidstubs properties
(Extensions_info_file) to set the value of --sdk-extensions-info.

Note: if Extensions_info_file is not set, neither
--sdk-extensions-root or --sdk-extensions-info will be passed to
metalava.

Bug: 228828986
Test: go test -run TestDroidstubsWithSdkExtensions ./java
Test: m sdk dist && grep -e from= -e module= out/dist/data/api-versions.xml # needs APIs to be listed in the info file
Change-Id: I682e34d328fc93d3eded8565ffee40961307901a
2022-09-07 16:13:49 +02:00
..
config Increase R8 max heap size to 4GB. 2022-08-08 11:40:15 +02:00
core-libraries Strip annotations from copy of core-current-stubs-for-system-modules 2022-08-22 08:10:16 +01:00
aapt2.go
aar.go Bp2Build converter for android_library_import and android_library. 2022-08-08 11:23:02 -04:00
aar_test.go copy JNI from AAR files to android_app APK 2022-08-02 16:12:06 -04:00
Android.bp copy JNI from AAR files to android_app APK 2022-08-02 16:12:06 -04:00
android_manifest.go Set targetSdkVersion to 10000 for MTS tests targeting current 2022-08-04 21:23:14 +00:00
android_resources.go Initial bp2build converter for android_app. 2021-12-07 09:41:49 -05:00
androidmk.go Merge "Move common test_options properties into the android package" 2022-08-17 15:22:18 +00:00
androidmk_test.go Make "overrides" attribute of Android_app overridable 2022-05-16 18:26:52 -07:00
app.go Merge "Add lint test property" 2022-08-16 21:23:12 +00:00
app_builder.go Merge "copy JNI from AAR files to android_app APK" am: fb845984df 2022-08-03 13:31:01 +00:00
app_import.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
app_import_test.go Merge "Export provenance metadata for prebuilt APKs and APEXes." am: c055d88c16 am: c41308e05e am: d58ecd96a8 2022-04-06 05:32:38 +00:00
app_set.go Install android_app_set modules in Soong 2021-11-17 19:55:33 -08:00
app_set_test.go Extract primary apk from apk set zip 2021-11-17 19:55:33 -08:00
app_test.go Merge "Set targetSdkVersion to 10000 for MTS tests targeting current" am: 0264058aea 2022-08-06 01:50:06 +00:00
base.go Merge changes from topic "aidl_interface_bp2build" 2022-08-26 20:07:58 +00:00
boot_jars.go
bootclasspath.go Ensure that *bootclasspath* module types depend on device variants 2022-05-11 15:20:37 +00:00
bootclasspath_fragment.go Add hidden API properties to java_sdk_library modules 2022-08-19 16:45:38 +00:00
bootclasspath_fragment_test.go Add hidden API properties to java_sdk_library modules 2022-08-19 16:45:38 +00:00
builder.go Revert "Use kapt stubs for kotlin header jar for javac" 2022-04-06 07:04:09 +00:00
classpath_element.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
classpath_fragment.go build/soong - support the REL platform version in classpath 2022-05-06 16:09:52 +00:00
device_host_converter.go Add android_sdk_repo_host to build platform-tools&build-tools 2021-10-13 01:25:02 -07:00
device_host_converter_test.go
dex.go Make ignorewarnings optional in optimize 2022-08-04 13:23:47 +09:00
dex_test.go Make ignorewarnings optional in optimize 2022-08-04 13:23:47 +09:00
dexpreopt.go Remove obsolete dexpreopt config option UseArtImage. 2022-04-27 13:36:47 +01:00
dexpreopt_bootjars.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
dexpreopt_bootjars_test.go
dexpreopt_check.go Update dexpreopt_check to check all system server jars. 2021-12-21 12:51:36 +00:00
dexpreopt_config.go Pass --preloaded-classes to boot image compilation. 2022-03-15 14:28:38 +00:00
dexpreopt_test.go
droiddoc.go AIDL source generation accounts for Bazel paths 2022-08-25 14:47:41 -04:00
droiddoc_test.go
droidstubs.go Pass --sdk-extensions-{root,info} to metalava 2022-09-07 16:13:49 +02:00
droidstubs_test.go Pass --sdk-extensions-{root,info} to metalava 2022-09-07 16:13:49 +02:00
fuzz.go Don't package host cross modules in javaFuzzPackager 2022-06-28 15:16:15 -07:00
fuzz_test.go Add jni support to java_fuzz_host 2022-04-26 18:49:02 +00:00
gen.go AIDL source generation accounts for Bazel paths 2022-08-25 14:47:41 -04:00
genrule.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
genrule_test.go bp2build converts java_genrule and java_genrule_host 2022-01-21 17:50:40 +00:00
hiddenapi.go hiddenapi: Prevent libraries for Q/R from include S+ flags. 2022-04-29 14:08:30 +00:00
hiddenapi_modular.go Add hidden API properties to java_sdk_library modules 2022-08-19 16:45:38 +00:00
hiddenapi_monolithic.go
hiddenapi_singleton.go
hiddenapi_singleton_test.go
jacoco.go
jacoco_test.go
java.go convert .aidl srcs for java_library 2022-08-25 14:47:41 -04:00
java_resources.go convert java_resources with bp2build 2022-05-10 14:32:52 +00:00
java_test.go AIDL source generation accounts for Bazel paths 2022-08-25 14:47:41 -04:00
jdeps.go Export Java library dependency information 2022-04-18 10:23:28 +08:00
jdeps_test.go
kotlin.go Use the current java version for -jvm-target 2022-06-28 16:06:16 -07:00
kotlin_test.go Treat kotlin-annotations the same as kotlin-stdlib 2022-05-04 19:07:32 +00:00
legacy_core_platform_api_usage.go Remove ethernet-service jar dependency. 2022-03-16 00:52:40 +00:00
lint.go Merge "Allow libcore to have NewApi warnings" 2022-08-19 14:32:57 +00:00
lint_defaults.txt Revert^2 "Promote ExtraText lint warning to an error"" 2022-08-11 17:21:45 +00:00
lint_test.go
OWNERS Adding metalava team to OWNERS to be able to disable metalava checks that will break platform build. 2022-01-28 18:34:08 +00:00
platform_bootclasspath.go Push Hidden_api inside HiddenAPIFlagFileProperties 2022-08-19 13:29:47 +00:00
platform_bootclasspath_test.go Make sure dist files have license metadata. 2022-06-01 21:07:25 -07:00
platform_compat_config.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
platform_compat_config_test.go
plugin.go emulate java_library static_deps with Bazel exports 2022-03-30 18:58:38 +00:00
plugin_test.go
prebuilt_apis.go Add custom java_sdk_library info to the SDK info file 2022-05-16 17:09:10 +00:00
prebuilt_apis_test.go Add support for sdk extensions in prebuilt_apis 2022-02-21 16:43:43 +00:00
proto.go Clean up some bp2build technical debt 2022-05-13 19:47:48 -04:00
proto_test.go add support for java stream protos in protoDeps 2022-02-07 22:39:38 +00:00
robolectric.go Add lint test property 2022-08-11 12:26:51 -07:00
rro.go Merge "copy JNI from AAR files to android_app APK" am: fb845984df 2022-08-03 13:31:01 +00:00
rro_test.go Merge "Remove InstallBypassMake and ToMakePath" am: f1228f570a am: a9f335cf5a am: fd865c6688 am: 8ef2179a6e 2021-12-17 07:36:53 +00:00
sdk.go Add experimental option to target Java 17 2022-05-24 13:05:17 +01:00
sdk_library.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
sdk_library_external.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
sdk_library_test.go Add custom java_sdk_library info to the SDK info file 2022-05-16 17:09:10 +00:00
sdk_test.go Rename core-current-stubs-system-modules to be more consistent 2021-11-03 16:58:29 +00:00
support_libraries.go
system_modules.go
system_modules_test.go
systemserver_classpath_fragment.go Add apexes property to sdk 2022-07-06 15:58:43 +00:00
systemserver_classpath_fragment_test.go Add entries for STANDALONE_SYSTEMSERVER_JARS to systemserverclasspath.pb 2021-11-30 10:51:10 +00:00
testing.go Merge changes I046d75db,Ie13817dc am: d2aa190bdc am: f2c86c8c76 am: 1a3ea67458 2022-04-12 00:58:51 +00:00
tradefed.go