Merge "Stop requiring apex_available on java_library members of sdks"
This commit is contained in:
10
java/java.go
10
java/java.go
@@ -1760,11 +1760,6 @@ func (j *Module) DepIsInSameApex(ctx android.BaseModuleContext, dep android.Modu
|
||||
if staticLibTag == ctx.OtherModuleDependencyTag(dep) {
|
||||
return true
|
||||
}
|
||||
// Also, a dependency to an sdk member is also considered as such. This is required because
|
||||
// sdk members should be mutated into APEXes. Refer to sdk.sdkDepsReplaceMutator.
|
||||
if sa, ok := dep.(android.SdkAware); ok && sa.IsInAnySdk() {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -2513,11 +2508,6 @@ func (j *Import) DepIsInSameApex(ctx android.BaseModuleContext, dep android.Modu
|
||||
if staticLibTag == ctx.OtherModuleDependencyTag(dep) {
|
||||
return true
|
||||
}
|
||||
// Also, a dependency to an sdk member is also considered as such. This is required because
|
||||
// sdk members should be mutated into APEXes. Refer to sdk.sdkDepsReplaceMutator.
|
||||
if sa, ok := dep.(android.SdkAware); ok && sa.IsInAnySdk() {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user