platform_build_soong/java
Harshit Mahajan 5b8b730cdd Enforce mainline modules to have latest target sdk version by default.
Due to GMS target SDK requirements (https://docs.partner.android.com/gms/policies/preview/mba#min-target-sdk)
we need to ensure all the  mainline packages to target latest API
level. Currently, the team chases each module to bump their target
API level.

Updating the build code to make sure that mainline modules
(i.e updatable modules) target the latest sdk version by default.
It would be by default set to 10000 before SDK finalization and updated to the new API level after finalization.

Effectively it would mean:
1. '10000' in aosp and internal master
2. Finalized number in development branches like "33" in "tm-dev"
3. As sdk hasn't been finalised in "udc-dev", it would be "10000"
which would be automatically updated to finalized version after sdk finalization.

For local development if the target sdk version is required to be set,
users would need to set Updatable flag to false.
Enforce_default_target_sdk_version flag needs to be used in bp file,
if this feature needs to be tested locally when updatable: false.

Bug: b/227460469
Test: m nothing
Change-Id: I05e0ae74ae44fd73df75e91b926bcc924446253f
2022-09-21 19:09:38 +00:00
..
config Increase javac heap to 4096M 2022-09-14 11:33:58 +01: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 Enforce mainline modules to have latest target sdk version by default. 2022-09-21 19:09:38 +00: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 Enforce mainline modules to have latest target sdk version by default. 2022-09-21 19:09:38 +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 Enforce mainline modules to have latest target sdk version by default. 2022-09-21 19:09:38 +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 Move AllowMissingDependencies handling into processMainCert 2022-09-14 12:48:17 -07:00
app_import_test.go Move AllowMissingDependencies handling into processMainCert 2022-09-14 12:48:17 -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 Enforce mainline modules to have latest target sdk version by default. 2022-09-21 19:09:38 +00:00
base.go Merge "Enable aidl#generate_traces by default for some Java SDK kinds" 2022-09-12 21:00:35 +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 Remove special case for test-only module 2022-09-16 18:44:28 +00:00
bootclasspath_fragment_test.go Merge "Revert "bootclasspath_fragment: Treat some specific modules as test"" 2022-09-16 18:24:49 +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 Merge "Move AllowMissingDependencies handling into processMainCert" 2022-09-20 20:15:43 +00: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 add jacocoagent by default to Java modules 2022-09-09 16:50:38 -04:00
jacoco_test.go
java.go add jacocoagent by default to Java modules 2022-09-09 16:50:38 -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 Enforce mainline modules to have latest target sdk version by default. 2022-09-21 19:09:38 +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 add jacocoagent by default to Java modules 2022-09-09 16:50:38 -04:00
tradefed.go