platform_build_soong/java
Zyan Wu b7550aa09a Don't panic if no certificates found
Getting the first certificate will panic if there are no certificates,
which can happen when AllowMissingDependencies is set and the
certificate property is a module reference to a missing module.
Only get the first certificate if the list is not nil.

Use mainCertificate since it handles the logic already.

Test: TestAppMissingCertificateAllowMissingDependencies
Bug: 283102635
Change-Id: I8b27f65aa7d071041171ad45ac52bf47fa31bf2b
2023-05-18 15:46:31 +08:00
..
config Utilize from text core platform api surface jar in build 2023-04-06 18:34:32 +00:00
core-libraries Create core-lambda-stubs from .txt files 2023-04-03 23:42:08 +00:00
aapt2.go Add soong support for resource shrinking 2022-09-23 19:11:11 +02:00
aar.go Delete android/rules.bzl file 2023-05-10 15:33:10 +00:00
aar_test.go copy JNI from AAR files to android_app APK 2022-08-02 16:12:06 -04:00
Android.bp Prepare tests for dexpreopt changes. 2023-05-11 18:24:44 +01:00
android_manifest.go target_sdk_version replacement should respect REL branches 2023-04-28 16:23:53 +00:00
android_resources.go
androidmk.go Fix Soong code, remove dead code, and clean up code for Java fuzz 2023-05-17 19:07:16 +00:00
androidmk_test.go Specify jnilib partition in Android-<target>.mk 2022-10-04 03:26:05 +00:00
app.go Don't panic if no certificates found 2023-05-18 15:46:31 +08:00
app_builder.go Add soong support for resource shrinking 2022-09-23 19:11:11 +02:00
app_import.go Enable prebuilt apk checks 2023-05-04 12:38:24 -07:00
app_import_test.go Enable prebuilt apk checks 2023-05-04 12:38:24 -07:00
app_set.go Add skip-sdk-check to extract_apks 2023-03-21 08:13:25 -07:00
app_set_test.go Add skip-sdk-check to extract_apks 2023-03-21 08:13:25 -07:00
app_test.go Don't panic if no certificates found 2023-05-18 15:46:31 +08:00
base.go Utilize from text core platform api surface jar in build 2023-04-06 18:34:32 +00:00
boot_jars.go
bootclasspath.go
bootclasspath_fragment.go Dexpreopt ART jars and framework jars together. 2023-05-11 19:04:17 +01: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 Expand preprocessed flag to work on android_app_imports 2023-04-25 15:04:58 -07:00
classpath_element.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
classpath_fragment.go Update max_sdk_version from SdkSpec to ApiLevel 2023-03-23 19:38:56 +00:00
device_host_converter.go Bp2build support for sdk_version and java_version. 2023-04-11 21:05:48 -04:00
device_host_converter_test.go
dex.go Ensure outputs correctly declared for proguard config in R8 2023-05-12 12:30:07 +02:00
dex_test.go Revert^2 "Generate app profiles even if dexpreopt is disabled." 2023-05-08 21:29:23 +01:00
dexpreopt.go Revert^2 "Generate app profiles even if dexpreopt is disabled." 2023-05-08 21:29:23 +01:00
dexpreopt_bootjars.go Dexpreopt ART jars and framework jars together. 2023-05-11 19:04:17 +01:00
dexpreopt_check.go
dexpreopt_config.go Dexpreopt ART jars and framework jars together. 2023-05-11 19:04:17 +01:00
dexpreopt_config_test.go Revert^2 "Generate a boot image extension for mainline BCP... 2023-03-16 08:46:29 +00:00
dexpreopt_config_testing.go Dexpreopt ART jars and framework jars together. 2023-05-11 19:04:17 +01:00
dexpreopt_test.go Prepare tests for dexpreopt changes. 2023-05-11 18:24:44 +01:00
droiddoc.go Update max_sdk_version from SdkSpec to ApiLevel 2023-03-23 19:38:56 +00:00
droiddoc_test.go
droidstubs.go Prevent dynamically created java_api_contribution from inheriting 2023-02-04 00:29:33 +00:00
droidstubs_test.go Prevent dynamically created java_api_contribution from inheriting 2023-02-04 00:29:33 +00:00
fuzz.go Fix Soong code, remove dead code, and clean up code for Java fuzz 2023-05-17 19:07:16 +00:00
fuzz_test.go Fix Soong code, remove dead code, and clean up code for Java fuzz 2023-05-17 19:07:16 +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
hiddenapi.go Update min_sdk_version from SdkSpec to ApiLevel 2023-03-22 20:15:45 +00:00
hiddenapi_modular.go Utilize from text core platform api surface jar in build 2023-04-06 18:34:32 +00:00
hiddenapi_monolithic.go
hiddenapi_singleton.go
hiddenapi_singleton_test.go Prepare tests for dexpreopt changes. 2023-05-11 18:24:44 +01:00
jacoco.go add jacocoagent by default to Java modules 2022-09-09 16:50:38 -04:00
jacoco_test.go
java.go Fix Soong code, remove dead code, and clean up code for Java fuzz 2023-05-17 19:07:16 +00:00
java_resources.go
java_test.go Prepare tests for dexpreopt changes. 2023-05-11 18:24:44 +01:00
jdeps.go Consider only preferred modules for jdeps 2023-01-11 13:26:04 +09: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 transitive Java deps for r8 2023-01-20 17:05:14 -05:00
legacy_core_platform_api_usage.go Utilize from text core platform api surface jar in build 2023-04-06 18:34:32 +00:00
lint.go Android Lint: allow local override of --exitcode flag 2023-03-22 17:52:56 +00:00
lint_defaults.txt Disable new lint checks from Android Studio 2023-03-09 14:11:47 +00:00
lint_test.go Give lint the correct api levels database for the current module 2023-02-28 21:18:17 -08:00
platform_bootclasspath.go Dexpreopt ART jars and framework jars together. 2023-05-11 19:04:17 +01:00
platform_bootclasspath_test.go Prepare tests for dexpreopt changes. 2023-05-11 18:24:44 +01:00
platform_compat_config.go Stop module types being SdkAware 2022-12-12 17:33:06 +00:00
platform_compat_config_test.go
plugin.go bp2build for java_library with .kt srcs or common_srcs 2022-11-15 20:01:29 +00:00
plugin_test.go
prebuilt_apis.go Merge "Map prebuilt_apis labels to Bazel's manually generated ones." 2023-05-10 18:23:51 +00:00
prebuilt_apis_test.go Tweak logic for when extension txt is latest 2022-09-21 11:51:21 +00:00
proto.go Bp2build support for sdk_version and java_version. 2023-04-11 21:05:48 -04:00
proto_test.go
resourceshrinker.go Add soong support for resource shrinking 2022-09-23 19:11:11 +02:00
resourceshrinker_test.go Support testing for resource shrinking 2022-09-28 09:46:35 -07:00
robolectric.go Set test config of Robolectric tests to LOCAL_FULL_TEST_CONFIG 2023-02-15 03:18:55 +08:00
rro.go Update max_sdk_version from SdkSpec to ApiLevel 2023-03-23 19:38:56 +00:00
rro_test.go Allow overriding rro category in override_runtime_resource_overlay 2022-10-07 18:21:34 +00:00
sdk.go Create core-lambda-stubs from .txt files 2023-04-03 23:42:08 +00:00
sdk_library.go Use stubs from .txt files for hiddenapi 2023-03-30 00:34:36 +00:00
sdk_library_external.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
sdk_library_test.go Call hook in java_sdk_library after droidstubs generation 2023-02-07 18:45:38 +00:00
sdk_test.go
support_libraries.go
system_modules.go Stop module types being SdkAware 2022-12-12 17:33:06 +00:00
system_modules_test.go
systemserver_classpath_fragment.go Stop module types being SdkAware 2022-12-12 17:33:06 +00:00
systemserver_classpath_fragment_test.go
testing.go Unify installDirOnHost and installDirOnDevice. 2023-05-11 18:25:18 +01:00
tradefed.go