platform_build_soong/java
Jihoon Kang 246690a400 Modify LOCAL_DROIDDOC_* to export the exportable artifacts
LOCAL_DROIDDOC_STUBS_SRCJAR is used to copy entries to OUT_DOCS in
build/make/core/soong_droiddoc_prebuilt.mk, which defines the copy rules
to generate the docs. When generating the documentation, the exportable
stubs should be set as dependencies, so that disabled flagged apis are
not exposed. Thus, this change modifies the entries passed to
LOCAL_DROIDDOC_STUBS_SRCJAR from the everything stubs to the exportable
stubs.

Likewise, all other LOCAL_DROIDDOC_* entries are copied to dist during
sdk builds. Therefore, this change replaces the everything artifacts to
the exportable artifacts.

This change also config-guards the exportable stubs generation, so that
the exportable stubs are not generated when the droidstubs module does
not generate the stubs.

Test: m docs dist && inspect ninja file to verify that everything stubs are not exported
Bug: 323261972
Change-Id: Ic04fb47ad311aefafc2f1a7b8bb15525050ecd2e
2024-02-02 18:21:27 +00:00
..
config Remove HideFlaggedApi() related logic and the related product variables 2024-01-16 20:20:27 +00:00
core-libraries Enable hiddenapi check for exportable stubs 2024-01-12 01:03:10 +00:00
aapt2.go Add aconfig flag support for android_app 2023-12-07 23:01:26 +00:00
aar.go Fix data race in propagateRROEnforcementMutator 2024-01-18 13:23:06 -08:00
aar_test.go Convert ModuleProvder to generic providers API 2023-12-14 16:12:22 -08:00
Android.bp Revert "Revert "Limit System SDK to 34 for Java modules in the v..." 2024-01-04 23:20:42 +00:00
android_manifest.go add manifest_values application id property to soong 2023-10-23 18:26:53 +00:00
android_manifest_test.go Remove sdkPreSingleton and overlaySingleton 2023-11-01 15:29:09 -07:00
android_resources.go Remove sdkPreSingleton and overlaySingleton 2023-11-01 15:29:09 -07:00
androidmk.go Modify LOCAL_DROIDDOC_* to export the exportable artifacts 2024-02-02 18:21:27 +00:00
androidmk_test.go
app.go Replace panic with ModuleErrorf 2024-01-09 22:53:52 +00:00
app_builder.go Reapply "Use R8 for resource shrinking" 2023-11-29 05:07:50 +00:00
app_import.go Disable prebuilt apps without an apk later 2024-01-12 17:02:58 -08:00
app_import_test.go Disable prebuilt apps without an apk later 2024-01-12 17:02:58 -08:00
app_set.go
app_set_test.go
app_test.go Enforce one aconfig_declaration per aconfig package 2024-01-10 01:53:49 +00:00
base.go Revert "Ensure sscp jars get copied to $OUT/soong/system_server_dexjars" 2024-01-25 04:25:38 +00:00
boot_jars.go
bootclasspath.go
bootclasspath_fragment.go Add defaults support for bootclasspath_fragment module type 2024-01-12 01:02:45 +00:00
bootclasspath_fragment_test.go Enable hiddenapi check for exportable stubs 2024-01-12 01:03:10 +00:00
builder.go Update released flagged apis rule 2024-01-10 00:59:12 +00:00
classpath_element.go Convert OtherModuleProvider to generic providers API 2023-12-14 16:12:22 -08:00
classpath_fragment.go Convert SetProvider to generic providers API 2023-12-14 16:12:20 -08:00
code_metadata_test.go Write raw files to disk instead of the ninja file 2023-12-19 16:33:46 -08:00
device_host_converter.go Replace panic with ModuleErrorf 2024-01-09 22:53:52 +00:00
device_host_converter_test.go
dex.go Merge "Revert^7 "Enable dex container (DEX v41) for the whole system"" into main 2024-01-15 11:10:45 +00:00
dex_test.go transitive r8 flags for installable {android,java}_libraries 2023-10-31 18:59:04 +00:00
dexpreopt.go Revert "Ensure sscp jars get copied to $OUT/soong/system_server_dexjars" 2024-01-25 04:25:38 +00:00
dexpreopt_bootjars.go Fix data race in dex_bootjars 2024-01-17 16:10:37 -08:00
dexpreopt_check.go Change OnlyPreoptBootImageAndSystemServer to OnlyPreoptArtBootImage. 2023-11-09 16:50:58 +00:00
dexpreopt_config.go Use the correct prof file when multiple prebuilt apexes exist 2023-12-19 22:37:29 +00:00
dexpreopt_config_test.go
dexpreopt_config_testing.go Fix data race in dex_bootjars 2024-01-17 16:10:37 -08:00
dexpreopt_test.go Move dexpreopt processing from java_*_import to prebuilt_apex 2023-12-18 23:17:26 +00:00
droiddoc.go Error when WITHOUT_CHECK_API=true in from-text stub build 2024-01-24 01:21:47 +00:00
droiddoc_test.go
droidstubs.go Modify LOCAL_DROIDDOC_* to export the exportable artifacts 2024-02-02 18:21:27 +00:00
droidstubs_test.go Remove HideFlaggedApi() related logic and the related product variables 2024-01-16 20:20:27 +00:00
fuzz.go Convert OtherModuleProvider to generic providers API 2023-12-14 16:12:22 -08:00
fuzz_test.go
gen.go Remove ConvertWithBp2build implementations 2023-12-08 13:51:05 -08:00
generated_java_library.go Remove ConvertWithBp2build implementations 2023-12-08 13:51:05 -08:00
generated_java_library_test.go Remove ConvertWithBp2build implementations 2023-12-08 13:51:05 -08:00
genrule.go Remove ConvertWithBp2build implementations 2023-12-08 13:51:05 -08:00
genrule_test.go
hiddenapi.go Add better error handling to bootDexJar function 2024-01-17 20:59:43 +00:00
hiddenapi_modular.go Merge "Add better error handling to bootDexJar function" into main 2024-01-18 20:38:13 +00:00
hiddenapi_monolithic.go Convert OtherModuleProvider to generic providers API 2023-12-14 16:12:22 -08:00
hiddenapi_singleton.go Convert OtherModuleProvider to generic providers API 2023-12-14 16:12:22 -08:00
hiddenapi_singleton_test.go Enable hiddenapi check for exportable stubs 2024-01-12 01:03:10 +00:00
jacoco.go Use merge_zips instead of ziptime for resetting timestamps in jacoco outputs 2023-11-01 14:41:48 -07:00
jacoco_test.go
java.go Merge "Add better error handling to bootDexJar function" into main 2024-01-18 20:38:13 +00:00
java_resources.go
java_test.go Merge "Replace panic with ModuleErrorf" into main 2024-01-10 00:16:52 +00:00
jdeps.go Convert ModuleProvder to generic providers API 2023-12-14 16:12:22 -08:00
jdeps_test.go
kotlin.go Enable restat for kapt stubs rules 2023-09-20 09:53:39 -07:00
kotlin_test.go
legacy_core_platform_api_usage.go
lint.go Add per-module phony targets for lint checks 2024-01-05 21:09:20 +00:00
lint_defaults.txt Merge "303434307: Enable flagged API checking" into main 2023-12-11 18:14:56 +00:00
lint_test.go Don't implicitly pick up lint-baseline.xml 2024-01-04 10:39:33 -08:00
platform_bootclasspath.go Use the correct bootjars for hiddneapi when multiple prebuilts exist 2024-01-02 17:56:14 +00:00
platform_bootclasspath_test.go Add srcjar output for platform_bootclasspath 2023-09-28 13:21:21 +00:00
platform_compat_config.go Remove ConvertWithBp2build implementations 2023-12-08 13:51:05 -08:00
platform_compat_config_test.go
plugin.go Remove ConvertWithBp2build implementations 2023-12-08 13:51:05 -08:00
plugin_test.go
prebuilt_apis.go Remove ConvertWithBp2build implementations 2023-12-08 13:51:05 -08:00
prebuilt_apis_test.go
proto.go Remove ConvertWithBp2build implementations 2023-12-08 13:51:05 -08:00
proto_test.go
robolectric.go Convert OtherModuleProvider to generic providers API 2023-12-14 16:12:22 -08:00
rro.go Use an option struct in aapt.buildActions & manifestMerger 2023-10-10 14:31:03 +00:00
rro_test.go Remove sdkPreSingleton and overlaySingleton 2023-11-01 15:29:09 -07:00
sdk.go Implicitly bump up Java target to 1.8 2024-01-15 16:38:46 +00:00
sdk_library.go Prepare to generate "runtime" stubs in droidstubs 2024-01-23 00:29:25 +00:00
sdk_library_external.go
sdk_library_test.go Enable hiddenapi check for exportable stubs 2024-01-12 01:03:10 +00:00
sdk_test.go
sdk_version_test.go Revert "Revert "Limit System SDK to 34 for Java modules in the v..." 2024-01-04 23:20:42 +00:00
support_libraries.go Handle Android.bp files in subdirectories of androidx 2023-10-23 13:25:13 -04:00
system_modules.go Merge "Change target platform to LINUX-OTHER" into main 2023-12-21 17:30:08 +00:00
system_modules_test.go Convert ModuleProvder to generic providers API 2023-12-14 16:12:22 -08:00
systemserver_classpath_fragment.go Stop collecting path entry for module_bp_java_deps.json from each module type 2023-11-15 11:40:48 -08:00
systemserver_classpath_fragment_test.go
test_spec_test.go Write raw files to disk instead of the ninja file 2023-12-19 16:33:46 -08:00
testing.go Enable hiddenapi check for exportable stubs 2024-01-12 01:03:10 +00:00
tradefed.go Change deps of ctx.Install* from Paths to InstallPaths 2023-11-17 19:06:43 -08:00