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
This commit is contained in:
14
java/java.go
14
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")
|
||||
|
Reference in New Issue
Block a user