summaryrefslogtreecommitdiff
path: root/sdk/exports_test.go
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2024-03-06 14:04:36 +0000
committer Spandan Das <spandandas@google.com> 2024-03-20 21:41:57 +0000
commita5e26d3cd6ce66d7b3eab9ab19c3fd57deee938b (patch)
treed4184a363c1315f2e3e58acf09e4cc05a0bef23a /sdk/exports_test.go
parent159b264873828b870685ff9af19bbbf417bbaccd (diff)
Add an apex_contributions_defaults module to module sdk
This metadata module will contain a flattened list of all the soong modules contributed by this module to the rest of the build. This is supported in V and above. Bug: 326246905 Test: m art-module-host-exports Test: unzip -p out/soong/mainline-sdks/art-module-host-exports-current.zip Android.bp | grep -A 15 apex_contributions_defaults apex_contributions_defaults { name: "art-module-host-exports.contributions", contents: [ "prebuilt_art.module.api.annotations", "prebuilt_dex2oat", "prebuilt_dex2oatd", "prebuilt_dexdump", "prebuilt_hiddenapi", "prebuilt_oatdump", "prebuilt_profman", "prebuilt_veridex", "prebuilt_libartpalette", "prebuilt_libartbase", ], } Change-Id: Iba43a9da5430adfc0a5fd9b5dc27b5d89c5eacb8
Diffstat (limited to 'sdk/exports_test.go')
-rw-r--r--sdk/exports_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/sdk/exports_test.go b/sdk/exports_test.go
index 2605fd141..9d0a24210 100644
--- a/sdk/exports_test.go
+++ b/sdk/exports_test.go
@@ -46,6 +46,11 @@ func TestModuleExportsSnapshot(t *testing.T) {
checkAndroidBpContents(`
// This is auto-generated. DO NOT EDIT.
+apex_contributions_defaults {
+ name: "myexports.contributions",
+ contents: ["prebuilt_myjavalib"],
+}
+
java_import {
name: "myjavalib",
prefer: false,