Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3a0ea94 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "enable exportable check" into main

parents dc2b51f2 e11319d4
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -92,12 +92,12 @@ func (callbacks *JavaAconfigDeclarationsLibraryCallbacks) GenerateSourceJarBuild
	if !isModeSupported(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 is exported, the corresponding aconfig_declaration must mark its
	//	// exportable property true
	//	ctx.PropertyErrorf("mode", "exported mode requires its aconfig_declaration has exportable prop true")
	//}

	if mode == "exported" && !declarations.Exportable {
		// if mode is exported, the corresponding aconfig_declaration must mark its
		// exportable property true
		ctx.PropertyErrorf("mode", "exported mode requires its aconfig_declaration has exportable prop true")
	}

	ctx.Build(pctx, android.BuildParams{
		Rule:        javaRule,