platform_build_soong/sdk
Paul Duffin b9e7a3ca7a Make licenseModule SdkAware
Making licenseModule SdkAware caused two breakages in the build. The
breakages were both caused by having an SdkAware module that was
depended upon by a versioned sdk snapshot but which was not itself
versioned and so did not have the member_name property set.

That occured because some default licenses have been added to the
packages containing prebuilts, e.g. prebuilts_runtime_license in
prebuilts/runtime/Android.bp. They apply to both the versioned and
unversioned members.

Once license support has been added to the sdk most of those will be
removed and replaced with properly versioned license modules. However,
in the meantime it is necessary to support that.

This change avoids the issue by checking to see whether the module is
itself versioned before relying on the member_name property. It also
improves the error message when a panic is recovered to make it easier
to identify where it originates.

Bug: 181569894
Test: m nothing
Change-Id: I0e7da2e0c4a30a6f814c2faab821b185aaed2135
2021-05-06 23:13:06 +01:00
..
Android.bp Replace boot image with bootclasspath fragment in sdk package 2021-04-21 23:54:17 +01:00
bootclasspath_fragment_sdk_test.go Move configuration checks from getBootImageJar 2021-04-30 12:06:28 +01:00
bp.go Handle property structs and BpPropertySets as values to AddProperty. 2020-09-25 00:33:04 +01:00
bp_test.go Replace AssertPanic with AssertPanicMessageContains 2021-03-20 12:08:51 +00:00
cc_sdk_test.go Make sdk tests more realistic 2021-05-06 23:13:06 +01:00
compat_config_sdk_test.go Filter duplicate modules in platform_compat_config_singleton 2021-03-25 12:53:25 +00:00
exports.go Extract sdk registration code into function for reuse 2021-03-09 23:03:45 +00:00
exports_test.go Migrate sdk tests away from checkAndroidBpContents 2021-04-16 18:48:20 +01:00
java_sdk_test.go Make sdk tests more realistic 2021-05-06 23:13:06 +01:00
sdk.go Make licenseModule SdkAware 2021-05-06 23:13:06 +01:00
sdk_test.go Add baseline test for sdk snapshot env variables 2021-05-06 10:50:00 +01:00
testing.go Add exported_bootclasspath_fragments to prebuilt_apex/apex_set 2021-04-23 12:12:37 +01:00
update.go Pass module to SdkMemberTypeDependencyTag.SdkMemberType 2021-04-27 23:23:20 +01:00