diff options
author | 2022-07-16 01:12:36 +0000 | |
---|---|---|
committer | 2022-07-16 01:23:49 +0000 | |
commit | 548f88469beededd5cc134e05ea883beec12f44b (patch) | |
tree | f538fe6a898588e9cf6afa84b5b9521bf1b97e2f /apex | |
parent | a52fb81d26950af4a0acd09e7dc3e881c3066ec6 (diff) |
Dedup *fragments information common to apex and sdk
Previously, both the sdk and apex had to specify the same *fragments
property to ensure that building a system image from a prebuilt
version of the module (both APEX and sdk snapshots) would work.
This change avoids the duplication by adding the apex to the sdk which
allows the sdk to automatically export any APIs and related information
provided by the APEX. At the moment that just includes information from
*fragments properties but may expand in future.
Ignore-AOSP-First: sdk is not present in AOSP
Bug: 232401814
Test: # Build snapshots with a fixed build number
BUILD_NUMBER=fixed packages/modules/common/build/mainline_modules_sdks.sh
# Remove api diff files as they contain file stamps of generated files so
# differ every time they are generated.
find out/dist/mainline-sdks -name \*txt | xargs rm
# Save the snapshots away.
mv out/dist/mainline-sdks before-changes
# Apply this change.
# Repeat the first two steps above and then run the following to verify
# that this change had no effect on the generated snapshot contents.
meld before-changes out/dist/mainline-sdks
Change-Id: I875b16f4deddda08295caaa97e00c7b01501566d
Diffstat (limited to 'apex')
-rw-r--r-- | apex/Android.bp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apex/Android.bp b/apex/Android.bp index 3026a4ce01..6d0d50a116 100644 --- a/apex/Android.bp +++ b/apex/Android.bp @@ -97,8 +97,11 @@ android_app_certificate { sdk { name: "btservices-module-sdk", - bootclasspath_fragments: ["com.android.btservices-bootclasspath-fragment"], - systemserverclasspath_fragments: ["com.android.btservices-systemserverclasspath-fragment"], + apexes: [ + // Adds exportable dependencies of the APEX to the sdk, + // e.g. *classpath_fragments. + "com.android.btservices", + ], } // Encapsulate the contributions made by the com.android.bluetooth to the bootclasspath. |