Merge "enable exportable check" into main am: d3a0ea94ba

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2989053

Change-Id: Icf264db1cc4aec61b4a28bb35ca1a06d7a0f05d8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2024-03-06 01:48:48 +00:00
committed by Automerger Merge Worker

View File

@@ -92,12 +92,12 @@ func (callbacks *JavaAconfigDeclarationsLibraryCallbacks) GenerateSourceJarBuild
if !isModeSupported(mode) { if !isModeSupported(mode) {
ctx.PropertyErrorf("mode", "%q is not a supported mode", mode) ctx.PropertyErrorf("mode", "%q is not a supported mode", mode)
} }
// TODO: uncomment this part after internal clean up
//if mode == "exported" && !declarations.Exportable { if mode == "exported" && !declarations.Exportable {
// // if mode is exported, the corresponding aconfig_declaration must mark its // if mode is exported, the corresponding aconfig_declaration must mark its
// // exportable property true // exportable property true
// ctx.PropertyErrorf("mode", "exported mode requires its aconfig_declaration has exportable prop true") ctx.PropertyErrorf("mode", "exported mode requires its aconfig_declaration has exportable prop true")
//} }
ctx.Build(pctx, android.BuildParams{ ctx.Build(pctx, android.BuildParams{
Rule: javaRule, Rule: javaRule,