diff options
author | Jaewoong Jung <jungjw@google.com> | 2021-05-10 15:30:00 -0700 |
---|---|---|
committer | Jaewoong Jung <jungjw@google.com> | 2021-05-10 15:30:00 -0700 |
commit | 476b9d6d17aa57fe34b6c46c23bfda1e73efa4ec (patch) | |
tree | 4870f7b1465d6f6e4af36f886c6d32085e01f2ef /java/java.go | |
parent | d8561166eb3c360ecd6cfbbc1356bfc70e67c0b2 (diff) |
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
Diffstat (limited to 'java/java.go')
-rw-r--r-- | java/java.go | 14 |
1 files changed, 14 insertions, 0 deletions
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") |