platform_build_soong/java
Paul Duffin c166b68589 Check that API is up-to-date when building java_sdk_library
Previously, the checked in version of an API was only checked to make
sure it was up-to-date when running the checkapi target. This change
adds a validation dependency to the ninja rule that generates the API
from source so that up-to-date check is always performed every time
the API is generated. However, because it is a validation dependency
it does not lengthen the build's critical path.

Bug: 234113632
Test: echo > packages/modules/SdkExtensions/java/android/os/ext/api/current.txt
      m framework-sdkextension
      # Passes without this change even though the checked in API is
      # not up-to-date.
      # With this change the build fails reporting correctly that the
      # checked in API is not up-to-date.
Change-Id: I8e65cf716d94aecd61bd943f1485468664ad4a22
2022-05-27 14:03:44 +00:00
..
config Replace DEX_FLAGS by flags for D8 and R8. 2022-04-25 11:17:07 +02:00
core-libraries Strip annotations from library stubs 2022-05-10 19:41:59 +01:00
aapt2.go
aar.go Document AARImportProperties fields 2022-04-13 02:12:37 +00:00
Android.bp Export provenance metadata for prebuilt APKs and APEXes. 2022-04-05 16:16:16 -07:00
android_manifest.go Revert "Don't add uses_libs/optional_uses_libs to the manifest_fixer." 2022-05-04 12:10:06 +01:00
android_resources.go Initial bp2build converter for android_app. 2021-12-07 09:41:49 -05:00
androidmk.go Merge "Fix prebuilts of overridden apps" 2022-05-17 19:03:42 +00:00
androidmk_test.go Make "overrides" attribute of Android_app overridable 2022-05-16 18:26:52 -07:00
app.go Merge "Revert "Use D8 by default for android_test"" 2022-05-23 05:49:40 +00:00
app_builder.go Move android package on top of remotexec 2021-03-18 16:17:34 -07:00
app_import.go Fix documentation for android_app_import 2022-04-13 21:40:23 +00:00
app_import_test.go Export provenance metadata for prebuilt APKs and APEXes. 2022-04-05 16:16:16 -07: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 "Fix prebuilts of overridden apps" 2022-05-17 19:03:42 +00:00
base.go Merge "disable usage of plugins as static libs" 2022-05-13 17:57:15 +00:00
boot_jars.go Disable boot jars package check if no boot jars have been configured 2021-06-22 14:55:30 +01:00
bootclasspath.go Ensure that *bootclasspath* module types depend on device variants 2022-05-11 15:20:37 +00:00
bootclasspath_fragment.go Ensure that *bootclasspath* module types depend on device variants 2022-05-11 15:20:37 +00:00
bootclasspath_fragment_test.go Fix tests to use correct fixtures for configuring (Apex)BootJars. 2021-08-10 15:35:52 +01:00
builder.go Revert "Use kapt stubs for kotlin header jar for javac" 2022-04-06 07:04:09 +00:00
classpath_element.go Add ClasspathElement support 2021-06-18 21:02:10 +01:00
classpath_fragment.go Remove InstallBypassMake and ToMakePath 2021-12-15 15:22:53 -08: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 Revert "Use D8 by default for android_test" 2022-05-23 04:00:44 +00:00
dex_test.go Don't pass static libs to r8 2022-03-18 20:48:27 +00:00
dexpreopt.go Remove obsolete dexpreopt config option UseArtImage. 2022-04-27 13:36:47 +01:00
dexpreopt.go_v1 Revert "Don't add uses_libs/optional_uses_libs to the manifest_fixer." 2022-05-04 12:10:06 +01:00
dexpreopt_bootjars.go Remove obsolete dexpreopt config option UseArtImage. 2022-04-27 13:36:47 +01:00
dexpreopt_bootjars.go_v1 Revert "Don't add uses_libs/optional_uses_libs to the manifest_fixer." 2022-05-04 12:10:06 +01:00
dexpreopt_bootjars_test.go Build boot images in bootclasspath_fragment/platform_bootclasspath 2021-05-12 21:51:27 +01:00
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_config.go_v1 Revert "Don't add uses_libs/optional_uses_libs to the manifest_fixer." 2022-05-04 12:10:06 +01:00
dexpreopt_test.go Revert^2 "Preopt APEX system server jars." 2021-09-16 06:25:26 +00:00
droiddoc.go Add AIDL enforce_permissions attribute 2022-02-24 10:15:27 +11:00
droiddoc_test.go Remove extraneous calls to TestingBuildParams.RelativeToTop() 2021-03-30 20:03:22 +01:00
droidstubs.go Check that API is up-to-date when building java_sdk_library 2022-05-27 14:03:44 +00:00
droidstubs_test.go Support using api-versions.xml from another module 2022-05-09 12:18:17 +00:00
fuzz.go Make IsSanitizerEnabledForJni return false 2022-05-25 00:13:08 +00:00
fuzz_test.go Add jni support to java_fuzz_host 2022-04-26 18:49:02 +00:00
gen.go Add AIDL enforce_permissions attribute 2022-02-24 10:15:27 +11:00
genrule.go bp2build converts java_genrule and java_genrule_host 2022-01-21 17:50:40 +00: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-28 18:34:48 +01:00
hiddenapi_modular.go hiddenapi: Prevent libraries for Q/R from include S+ flags. 2022-04-28 18:34:48 +01:00
hiddenapi_monolithic.go Separate creation of signature patterns from overlap checking 2021-08-06 13:40:34 +01:00
hiddenapi_singleton.go Merge "Drop "prebuilt_" prefixes from names registered in ApexInfo.InApexXxx." 2021-05-27 17:23:16 +00:00
hiddenapi_singleton_test.go Propagate the dex jar path as an OptionalPath which is either valid or 2021-09-23 17:19:55 +01:00
jacoco.go Added quotes to protect wildcard 2021-06-30 14:29:49 -04:00
jacoco_test.go Added quotes to protect wildcard 2021-06-30 14:29:49 -04:00
java.go Add experimental option to target Java 17 2022-05-24 13:05:17 +01:00
java_resources.go convert java_resources with bp2build 2022-05-10 14:32:52 +00:00
java_test.go Revert "Use D8 by default for android_test" 2022-05-23 04:00:44 +00:00
jdeps.go Export Java library dependency information 2022-04-18 10:23:28 +08:00
jdeps_test.go
kotlin.go Add missing dependency on compose plugin in kapt rules 2022-05-02 14:00:50 -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 Use lint database from api_versions_public 2022-05-09 13:10:24 +00:00
lint_defaults.txt Disable newapi check in defaults 2022-04-25 18:17:11 +00:00
lint_test.go make system server modules use filtered lint database 2021-07-05 16:57:34 +00:00
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 Propagate min and max sdk versions to classpaths.proto configs. 2021-12-01 17:58:41 +00:00
platform_bootclasspath_test.go Ensure that *bootclasspath* module types depend on device variants 2022-05-11 15:20:37 +00:00
platform_compat_config.go Remove InstallBypassMake and ToMakePath 2021-12-15 15:22:53 -08:00
platform_compat_config_test.go Add platform_compat_config to sdk 2021-03-22 19:13:40 +00:00
plugin.go emulate java_library static_deps with Bazel exports 2022-03-30 18:58:38 +00:00
plugin_test.go Replace android.BuildOs with Config.BuildOS 2021-07-20 12:46:48 -07:00
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 Remove InstallBypassMake and ToMakePath 2021-12-15 15:22:53 -08:00
rro.go Add support for excluding libraries from class loader contexts 2022-02-07 14:57:53 +00:00
rro_test.go Remove InstallBypassMake and ToMakePath 2021-12-15 15:22:53 -08:00
sdk.go Add experimental option to target Java 17 2022-05-24 13:05:17 +01:00
sdk_library.go Add custom java_sdk_library info to the SDK info file 2022-05-16 17:09:10 +00:00
sdk_library_external.go
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 Refactor SdkMemberType.AddDependencies() 2021-08-31 17:07:07 +01:00
system_modules_test.go Remove varargs from RunTest(t *testing.T) 2021-03-31 16:03:59 +01:00
systemserver_classpath_fragment.go Dexpreopt standalone system server jars. 2021-12-20 15:07:26 +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 Move proguard test files to java package 2022-04-11 11:44:32 -07:00
tradefed.go