From 476b9d6d17aa57fe34b6c46c23bfda1e73efa4ec Mon Sep 17 00:00:00 2001 From: Jaewoong Jung Date: Mon, 10 May 2021 15:30:00 -0700 Subject: Strict updatability linting against dependencies. Propagate strict_updatability_linting to transitive dependencies using a top-down mutator. Test: lint_test.go Bug: 182349282 Change-Id: Ifc9e58f1a597e3c7725ee49b4027afb6f42f45cb --- java/java.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'java/java.go') diff --git a/java/java.go b/java/java.go index d74bf6825..9a5fbfc35 100644 --- a/java/java.go +++ b/java/java.go @@ -1222,6 +1222,13 @@ func (j *Import) LintDepSets() LintDepSets { return LintDepSets{} } +func (j *Import) getStrictUpdatabilityLinting() bool { + return false +} + +func (j *Import) setStrictUpdatabilityLinting(bool) { +} + func (j *Import) DepsMutator(ctx android.BottomUpMutatorContext) { ctx.AddVariationDependencies(nil, libTag, j.properties.Libs...) @@ -1545,6 +1552,13 @@ func (j *DexImport) IsInstallable() bool { return true } +func (j *DexImport) getStrictUpdatabilityLinting() bool { + return false +} + +func (j *DexImport) setStrictUpdatabilityLinting(bool) { +} + func (j *DexImport) GenerateAndroidBuildActions(ctx android.ModuleContext) { if len(j.properties.Jars) != 1 { ctx.PropertyErrorf("jars", "exactly one jar must be provided") -- cgit v1.2.3